2123.a better waytoprint.universal print

55
A Better Way to Print Using the New Citrix Presentation Server 4 Universal Printer Driver Gary Barton Sr. Software Engineer Citrix Systems, Inc. Scott Lane Sales Engineer Citrix Systems, Inc. Dave Fiske Citrix Architect Eschelon Telecom, Inc.

Upload: sumit-tambe

Post on 05-Sep-2014

939 views

Category:

Technology


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: 2123.a better waytoprint.universal print

A Better Way to Print

Using the New Citrix Presentation Server 4 Universal Printer Driver

Gary BartonSr. Software EngineerCitrix Systems, Inc.

Scott LaneSales EngineerCitrix Systems, Inc.

Dave FiskeCitrix ArchitectEschelon Telecom, Inc.

Page 2: 2123.a better waytoprint.universal print

2 © 2005 Citrix Systems, Inc.—All rights reserved.

Today’s Agenda

• Presentation Server 4 printing enhancements

– Reengineered printing subsystem

– Session Printers Policy rule

– Advanced Universal Printing

• Technical details

– UPD performance

– Printing subsystem customization

– Deploying and troubleshooting

• Customer case study

– Eschelon Telecom, Inc.

Page 3: 2123.a better waytoprint.universal print

3 © 2005 Citrix Systems, Inc.—All rights reserved.

Rising to the Challenge – Citrix Presentation Server 4.0

• Reengineered printing subsystem

– Policy driven, secure, centralized session printer management

• Session printers policy rule

– Connect network printers using policy rules and filters

• Advanced universal printing

– New EMF based UPD supporting ALL device printing options

Page 4: 2123.a better waytoprint.universal print

4 © 2005 Citrix Systems, Inc.—All rights reserved.

Reengineer Printing Subsystem - Why ?• Security

– Designed in rather than band-aid

• Performance– More aggressive print data compression

• Robustness– Correct long-standing design issues

• Reliability, Scalability, Extensibility– Getting out of the kernel

– Eliminate dependence on spooler for printer state

– Clean modular design that is easily extended

• Features, Features, Features…

Page 5: 2123.a better waytoprint.universal print

5 © 2005 Citrix Systems, Inc.—All rights reserved.

Friendly Client Printer Names

• Same convention as Windows terminal services

• Names are session unique

• The identifiable part of the name is visible in smaller dialog boxes

Page 6: 2123.a better waytoprint.universal print

6 © 2005 Citrix Systems, Inc.—All rights reserved.

Pass through Client Printer Names

ICA Session ICA Session

Presentation Server 4

Presentation Server 3 and predecessors

Page 7: 2123.a better waytoprint.universal print

7 © 2005 Citrix Systems, Inc.—All rights reserved.

Secure Client Printing

• No misrouting of print jobs due to client name collisions

• Auto-created client printers accessible only within session

• Limited MANAGE access for regular users

Page 8: 2123.a better waytoprint.universal print

8 © 2005 Citrix Systems, Inc.—All rights reserved.

Enhanced print data compression

`CTXCPM

CTXTWICTXCCM

CTXTW

{ICA Session}

• User-mode pageable memory

• Larger history buffer (up to 8MB)

• History buffer reused by subsequent print jobs

Page 9: 2123.a better waytoprint.universal print

9 © 2005 Citrix Systems, Inc.—All rights reserved.

Extended Printer Properties

• Printer properties retained on client or server-side user profile

• Printer Properties Retention policy controls where properties are retained

• Provides for exchange of device specific printer settings with client

– Requires identical drivers installed on client and server

Page 10: 2123.a better waytoprint.universal print

10 © 2005 Citrix Systems, Inc.—All rights reserved.

Policy based management

• Policies– Prioritized collections of

enabled and disabled rules

• Rule– Control for a specific system

setting

• Filters– Policy assignment criteria

Printer management accomplished through Presentation Server policies

Page 11: 2123.a better waytoprint.universal print

11 © 2005 Citrix Systems, Inc.—All rights reserved.

Presentation Server policy filters

Page 12: 2123.a better waytoprint.universal print

12 © 2005 Citrix Systems, Inc.—All rights reserved.

Session Printers Policy

• Import a single print queue

2. Browse for Print server

3. Select Print Server

4. Select the specific Print queue to import

1. Enable Session Printers Policy

Page 13: 2123.a better waytoprint.universal print

13 © 2005 Citrix Systems, Inc.—All rights reserved.

Session Printers Policy

• Customize printer workspace based on policy– User’s default printer can be set per policy

Page 14: 2123.a better waytoprint.universal print

Advanced Universal Printing

Page 15: 2123.a better waytoprint.universal print

15 © 2005 Citrix Systems, Inc.—All rights reserved.

Driver management headaches

• Native Windows server drivers– Availability

– Substituting older model native drivers

– Maintaining print driver mappings

• Vendor provided drivers– Availability for Windows Server

– Terminal services compatibility

– Version change

– Replicating drivers throughout server farm

Page 16: 2123.a better waytoprint.universal print

16 © 2005 Citrix Systems, Inc.—All rights reserved.

Citrix Universal Printing Evolution

• The first Universal Printer Driver– MetaFrame XP Presentation Server FR1

– Based on HP LaserJet II

– 300 dpi monochrome

• Universal Printer Driver, Generation 2– MetaFrame XP Presentation Server FR3

– Based on HP Color LaserJet 4500

– Added color printing capabilities at 600 dpi

Page 17: 2123.a better waytoprint.universal print

17 © 2005 Citrix Systems, Inc.—All rights reserved.

Limitations of UPD I and II

• Printer device specific functions– Limited form set & multi-tray support

– 600 dpi max resolution

– No access to duplex, stapling, and other finishing options..

• Client prints page size, high-res images– Large spool files on client (slows printing)

– Some memory constrained printers may not handle large images

Result: Still might need other print drivers !!!

Page 18: 2123.a better waytoprint.universal print

18 © 2005 Citrix Systems, Inc.—All rights reserved.

A Real World Dilemma

• Sacrifice Printer Functionality?

• Manage a complex printer driver environment?

• Purchase a 3rd party universal driver?

• Or will the user be able to print at all?

Page 19: 2123.a better waytoprint.universal print

19 © 2005 Citrix Systems, Inc.—All rights reserved.

UPD v.3, Changing Your Strategy

• Ending headaches with “new printers”

• No more printer compatibility lists

• Eliminates the need to install standard drivers – No more driver replication

– No more driver testing and certification

• Full printer functionality - any print device

• Full support for home users

Page 20: 2123.a better waytoprint.universal print

20 © 2005 Citrix Systems, Inc.—All rights reserved.

Thinner, Faster, Better!

• Using Enhanced Metafile spool format– Device independent

– No translation required on server

– Very efficient handling on client

• EMF UPD prints faster– Prints two to four times faster

– Reduced overhead on both client and server

Page 21: 2123.a better waytoprint.universal print

21 © 2005 Citrix Systems, Inc.—All rights reserved.

Manage device specific settings

Server side check box... ..opens a client side printer properties dialog box.

Without the driver installed on the server!

Page 22: 2123.a better waytoprint.universal print

22 © 2005 Citrix Systems, Inc.—All rights reserved.

Print Preview Application

• Client side application– Handles printing of

EMF spool files

– Optional U/I to preview printed pages on screen

– Print dialog support in U/I allows

• Selective page printing• Printing multiple times• Rerouting the print job to

any other client printer

Page 23: 2123.a better waytoprint.universal print

23 © 2005 Citrix Systems, Inc.—All rights reserved.

Presentation Server 4 Printing - Under the Hood

• In-depth– UPD printing performance

– Print data compression

– Client printer security

• Tips & tricks– Customizing print environment

– Retained and restored client printers

– Troubleshooting

Page 24: 2123.a better waytoprint.universal print

24 © 2005 Citrix Systems, Inc.—All rights reserved.

In-Depth – Advanced Universal Printing

• EMF – Enhanced MetaFile– Windows native graphics metafile format

– A recording of graphics GDI (DDI) calls

• Windows EMF spool file format – Job header and document settings

– EMF records for each page

– Embedded fonts

• Win32 network print provider also spools EMF

Page 25: 2123.a better waytoprint.universal print

25 © 2005 Citrix Systems, Inc.—All rights reserved.

In Depth – Universal printing architecture

• Windows spool file is routed intact to the client– GDI creating spool file

– CPPROC.DLL intercepts spool file

– CPMON.DLL routes spool data to CPSVC.EXE

– CPSVC.EXE compresses and sends to client

– WFICA32.EXE uncompresses and writes to temp file

– CPVIEWER.EXE prints/previews job

GDI

SpoolFile

Print Processor

Redirect to

Port Monitor

CpSvc.exe

NetworkICA

ClientWfica32

CpViewer

Page 26: 2123.a better waytoprint.universal print

26 © 2005 Citrix Systems, Inc.—All rights reserved.

0

100

200

300

400

500

600

Secs

DocA DocB DocC DocD

Time to print

UPD I

UPD II

UPD III

Std (PCL6)

Std (PS)

In Depth – UPD Print Speed Improvement

Sample docs:

DocA – 12 pg mono text only

DocB – 15 pg MS Word white paper w/logo, charts, & spot color

DocC – 8 pg PDF report with logos, color, graphics, & fonts

DocD – 15 slide PPT with b/g image & extensive graphics

Page 27: 2123.a better waytoprint.universal print

27 © 2005 Citrix Systems, Inc.—All rights reserved.

In depth – UPD Print Speed Improvement

Reasons:

• Server-side: No rendering to PCL– EMF spool file sent directly to client

• ICA Client: No rasterization– PCL image translation avoided

– Much smaller client-side spool files

– EMFs handled very efficiently on client

New UPD prints 2-4x faster than the old !!!

Page 28: 2123.a better waytoprint.universal print

28 © 2005 Citrix Systems, Inc.—All rights reserved.

0

50

100

150

200

250

300

350

KB

Raw MPS3 CPS4 CPS4 #2

DocA

UPD1 (PCL4)

UPD2 (PCL5)

UPD3 (EMF)

PCL6

Postscript0

1000

2000

3000

4000

5000

KB

Raw MPS3 CPS4 CPS4 #2

DocB

UPD1 (PCL4)

UPD2 (PCL5)

UPD3 (EMF)

PCL6

Postscript

0

5000

10000

15000

20000

25000

KB

Raw MPS3 CPS4 CPS4 #2

DocD

UPD1 (PCL4)

UPD2 (PCL5)

UPD3 (EMF)

PCL6

Postscript

In depth – Print data and compression

0

1000

2000

3000

4000

5000

KB

Raw MPS3 CPS4 CPS4 #2

DocC

UPD1 (PCL4)

UPD2 (PCL5)

UPD3 (EMF)

PCL6

Postscript

Page 29: 2123.a better waytoprint.universal print

29 © 2005 Citrix Systems, Inc.—All rights reserved.

In depth – Client Printer Security

Default security descriptor:

• CpSvc account (Ctx_SmaUser)– Ownership & full rights

• Login Session SID– Full rights (almost)

• Admin group– No rights by default !

– Registry override to give administrators full access

Page 30: 2123.a better waytoprint.universal print

30 © 2005 Citrix Systems, Inc.—All rights reserved.

Printing Customization – Admin client printer permissions

• As needed– Take ownership and adjust

permissions (may be scripted)

• Automatically– Add registry key on server:

HKLM\Software\Citrix\Print

– Add a REG_DWORD value “DefaultPrnFlags”

– Set bit 0x00004000

Add admin group access for client printers:

Page 31: 2123.a better waytoprint.universal print

31 © 2005 Citrix Systems, Inc.—All rights reserved.

Printing Customization – Overriding other defaults

• DefaultPrnFlags bit flags are documented in Advanced Concepts Guide (ACG)

• Examples:

– Enable UPD Preview on client setting by default:

• Set bit 0x00008000

– To disable printer auto-creation failure event log entries:

• Set bit 0x08000000

– To enable generic UPD printer auto-creation:

• Set bit 0x00000020

Page 32: 2123.a better waytoprint.universal print

32 © 2005 Citrix Systems, Inc.—All rights reserved.

Printing Customization – Generic UPD printer auto-creation

• Single session printer that can print to any printer on the client

• Not bound to any specific client printer

– Avoids capabilities and settings exchange with client

– Generic settings only… no U/I adjustment for printer capabilities

• Preview always enabled to:

– Select client printer for output

– Adjust device specific settings

Citrix UNIVERSAL printer in session xx

Page 33: 2123.a better waytoprint.universal print

33 © 2005 Citrix Systems, Inc.—All rights reserved.

Printing Customization – Retained client printers

• Users browse and connect client printers not selected by Auto-creation policy

• Connection is remembered and printer is Auto-created for subsequent logins

• Connection is forgotten if session printer is deleted

• Relies on printer properties retention mechanism

Users can self-provision their own client printers as needed

Page 34: 2123.a better waytoprint.universal print

34 © 2005 Citrix Systems, Inc.—All rights reserved.

Printing Customization – Restored client printers

• Admin or Power User constructed print queues attached to standard client printer ports

• Printer definition and all printer state are saved during logout

• Printer is recreated during subsequent logins

• Printer definition forgotten when printer is deleted

Use any printer name, driver, print processor, special attributes, etc.

Page 35: 2123.a better waytoprint.universal print

35 © 2005 Citrix Systems, Inc.—All rights reserved.

Tips and Tricks – Limit printer creations

• Unnecessary printer creations hurt scalability and may limit user density

• Consider turning down Auto-creation policy to Default printer only or None plus – Deploy generic UPD printer -or-

– Allow users to provision client printers as needed with retained printers feature

Page 36: 2123.a better waytoprint.universal print

36 © 2005 Citrix Systems, Inc.—All rights reserved.

Tips And Tricks – Known issues and Hotfixes

• McAfee Enterprise 8.0i anti-virus

– File system filter driver prevents spool file access on client

– CTX106698

• Embedded fonts (Acrobat v6/v7)

– Resolved in 9.1 client

• Recent hotfixes: PSE400W2K3015, PSE400W2K013

– Resolve failure to set default printer

– Resolve potential CpSvc, Spooler, UPD driver U/I traps

Page 37: 2123.a better waytoprint.universal print

37 © 2005 Citrix Systems, Inc.—All rights reserved.

Tips and Tricks – Troubleshooting Auto-creation

• CTX107137- Troubleshooting Printing Problems In Presentation Server 4.0

• Client version:– Avoid Tech Preview, EAP clients

– UPD III must use 9.x client

• Citrix Print Manager service running ?

– CTX106661

• Ctx_SmaUser account have correct permissions?

– CTX106629, CTX106393, CTX106683

Page 38: 2123.a better waytoprint.universal print

38 © 2005 Citrix Systems, Inc.—All rights reserved.

Tips and Tricks – Troubleshooting Auto-creation

• Examine Auto-creation failed events in the event log

• Verify required drivers are installed and – not excluded by driver compatibility list

– not remapped (client printers only)

• Try manual printer connection within session. If success, examine policies

• When all else fails, use CDF to trace printer creation process. Trace components: – MF_Service_Cpsvc

– MF_DLL_Cpmon

– MF_DLL_Cpprov

Page 39: 2123.a better waytoprint.universal print

Eschelon Telecom Inc. -Advanced Universal Printing Rollout

Dave FiskeCitrix ArchitectEschelon Telecom, Inc.

Page 40: 2123.a better waytoprint.universal print

40 © 2005 Citrix Systems, Inc.—All rights reserved.

Eschelon TelecomWho are we and why Citrix?

• Telecommunications provider to 56,000+ customers

• Coverage in 8 states

• 1200 Employees

• Centralized IT Dept

http://www.eschelon.com

NASDAQ: ESCH

Page 41: 2123.a better waytoprint.universal print

41 © 2005 Citrix Systems, Inc.—All rights reserved.

Eschelon TelecomCitrix Server Overview

• Presentation Server 4

– 20 - Windows 2003

– 40 - Windows 2000

• Web Interface 3

– 3 - Windows 2003 Web Ed

• Secure Gateway 2.0

– RSA keyfobs

• Server Specs

– HP Proliant BL20p• Windows 2003• 4 GB Memory• 8 GB Pagefiles• 2 x 3.6 Ghz

– Dell 1655r, 2550 and 2650• Windows 2000• 2 GB Memory• 2 x 933 - 1.6 Ghz

Page 42: 2123.a better waytoprint.universal print

42 © 2005 Citrix Systems, Inc.—All rights reserved.

Eschelon TelecomCitrix Client Overview

• Client Specs

– Windows XP and 2000 Pro

– Mac OS X

– Wyse CE WBT Winterms

– ICA 6.x-9.x clients

– Internet Kiosks

– Java 9.x clients for failback only

– Who knows what other OS’s

• Printer Specs

– HP

– Canon

– Epson

– Xerox

– Dell

– Okidata

– Lexmark

– Who knows what else!!

Page 43: 2123.a better waytoprint.universal print

43 © 2005 Citrix Systems, Inc.—All rights reserved.

Eschelon TelecomCitrix Application Overview

• Published Applications– 300+ Published Applications

• Nortel Access Care• Metasolv TBS• Onyx Employee Portal• Microsoft Office 97/2000/2003• Web Apps (IE 5.5, 6 and Netscape 4.72)

– 750+ Concurrent Users

– 2100+ Concurrent Sessions

• Published Desktops

Page 44: 2123.a better waytoprint.universal print

44 © 2005 Citrix Systems, Inc.—All rights reserved.

Eschelon TelecomWhy we upgraded

• Printing, Printing, Printing– Corporate Laser Printers

– Home legacy printers

– Home USB printers

– Multifunctional printers

• CPU Management

• Memory Management

• Isolation Environments

Why Presentation Server 4?

Page 45: 2123.a better waytoprint.universal print

45 © 2005 Citrix Systems, Inc.—All rights reserved.

Eschelon TelecomUPD Rollout - Phase I

• Create Active Directory Group

– CitrixPolicy UPD

• Create Citrix PS 4 Policy

– UPD_Only

– Set Priority high

• Migrate to 9.x client

How we implemented UPD III

Page 46: 2123.a better waytoprint.universal print

46 © 2005 Citrix Systems, Inc.—All rights reserved.

Eschelon TelecomUPD Rollout - Phase II

• Get all users on 9.x client

• Add servers to Citrix PS 4 UPD_Only Policy

• Remove AD Group from UPD_Only Policy

• Remove AD Group

• Add the disabling of print driver installation to UPD_Only Policy!

Next Steps

Page 47: 2123.a better waytoprint.universal print

47 © 2005 Citrix Systems, Inc.—All rights reserved.

Eschelon TelecomUPD Benefits

• Helpdesk

• Citrix Administrators

• End Users

• Our Customers

Who benefits from UPD technology

Page 48: 2123.a better waytoprint.universal print

48 © 2005 Citrix Systems, Inc.—All rights reserved.

Eschelon Telecom Inc.Cost Analysis

• As with any project cost associated with upgrade– What are the costs?

• Subscription Advantage• IT Time plus end user testing time

– How did we justify spending the time since MPS3 was working just fine?

• 96 field technicians x 1 hr/day x hourly rate = a lot of money saved by the company each day

• Potentially serving more customers per day• Techs can create a more logical route thus eliminating

excess road time

Page 49: 2123.a better waytoprint.universal print

49 © 2005 Citrix Systems, Inc.—All rights reserved.

Eschelon TelecomIssues with PS4

• One application won’t print with UPD– Don’t allow UPD on the servers that host that application

• If something is broken it must be the upgrade right and not a coincidence?– Citrix Print Manager Service randomly hanging

• Figure out what printer is hanging this?• Have to kill process and restart service• Wasn’t a bad print driver but bad network segment to a

mapped printer• Users couldn’t print to it from their clients either

Page 50: 2123.a better waytoprint.universal print

50 © 2005 Citrix Systems, Inc.—All rights reserved.

Eschelon TelecomEnd User Feedback

• Test users loved how fast printing was and that it worked

• Easy to install for the Home users

• One tech said he’d never give up the new printer ability

Page 51: 2123.a better waytoprint.universal print

51 © 2005 Citrix Systems, Inc.—All rights reserved.

Upgrade Now to Citrix Presentation Server 4.0!

• Compelling reasons– Reduce or eliminate printing

help desk calls

– Improve document security

– Improve environment scalability

– Mobilize your workforce

– Increase functionality

It all adds up to $avings and efficiency…

Page 52: 2123.a better waytoprint.universal print

52 © 2005 Citrix Systems, Inc.—All rights reserved.

Technology Lab

• Learn first-hand how Citrix leads the industry in access products that deliver the best access experience.

• Located in Ballroom I

• Hours

– Monday, October 10

• 12:00 PM - 3:00 PM

– Tuesday, October 11

• 10:00 AM - 4:00 PM

• “Meet the Architects”

– Monday & Tuesday

• 1:00 PM – 3:00PM

Page 53: 2123.a better waytoprint.universal print

53 © 2005 Citrix Systems, Inc.—All rights reserved.

Reminders

• Related breakout sessions:– 2103: Upgrading to Citrix Presentation Server 4.0

– 2117: Control Connection Settings with Citrix Presentation Server 4.0 Policies

• Session surveys are available online at www.citrixiforum.com Tuesday, October 11 (please provide feedback)

• Breakout session handouts are located at the Breakers Registration Desk South

Page 54: 2123.a better waytoprint.universal print

54 © 2005 Citrix Systems, Inc.—All rights reserved.

Page 55: 2123.a better waytoprint.universal print