Optimizing printing in a desktop virtualization environment

povertywhyInternet και Εφαρμογές Web

18 Νοε 2013 (πριν από 4 χρόνια και 1 μήνα)

653 εμφανίσεις


Citrix Virtual Classroom







Optimizing
printing in a d
esktop
virtualization e
nvironment


Self
-
paced exercise guide





Page
2

Citrix Virtual Classroom

Table of Contents


Table of
Contents

................................
................................
................................
................................
..............

2

Overview
................................
................................
................................
................................
.............................

3

Exercise 1:
Configuring Citrix Printing Policies

................................
................................
...........................

6

Exercise 2: Using Citrix Printing Tools

................................
................................
................................
.......

16

Exercise 3: The Citrix Universal Print Server

................................
................................
.............................

26






















Page
3

Citrix Virtual Classroom

Overview

From any device,
over any network at

any location, users can easily discover network printers or attach a
local USB printer and
easily
print to them
all
with Citrix’s seamless end
-
to
-
end printing solution for virtual
desktops and apps.

In this lab, you wi
ll learn how to
use

Citrix Printing policies to
meet business
objectives in a quick and efficient manner
. You will learn how to use key tools to
manage your printing
environmen
t and
gain hands on experience with the Citrix Universal Print Server
. The Cit
rix Universal
Print Server
allows
host
-
based network printers to utilize the Citrix Universal Print Driver.


Hands
-
on Training Module

This training module has the following details:

Objective



P
rovide hands
-
on experience with
Windows and Citrix printing
concepts



Provide hands
-
on experience with common
printing scenarios and
tools used to administer the environment

Audience



Primary:
Citrix Partners, XenDesktop and XenApp administrators,
and Citrix engineers and architects


Lab Environment Details

This
section is used to describe the lab environment and the virtual machines that are used.


VM Name

Description

AD
.training.lab

Windows Server 2008 R2. Domain controller for training.lab,
DNS,
print, file,
and license server.

SQLServer

Windows Server 2008
R2 and SQL Server

Win7Client

Windows
7. Endpoint VM running Receiver 3.0/13.0

Online
Plug
-
in. Used
to establish connections to the
Xen
Desktop
environment.

PrintSrv

Windows Server 2008 R2. Print server for the environment.

VDA

Windows 7. Dedicated
for User1
. Receiver 3.0/Online Plug
-
in
13.0.

XA1

Windows Server 2008 R2. XenApp 6
.5

server.

Web Interface 5.4.

XA2

Windows Server 2008 R2. XenApp 6
.5

server.

XD

Windows Server 2008 R2.
XenDesktop 5.6
Controller

and
components
.

Web Interface 5.4.



Page
4

Citrix Virtual Classroom

NOTE
:

This is a shared lab environment image and not all virtual machines will be used.

NOTE:
If prompted with a dialog to restart
on any virtual machine, always select Restart Later.

Required Lab Credentials

Below
are

the

login credentials
required
to connect to the
workshop system

and complete the lab
exercises.

Domain

Username

Password

Description

Training.lab

Administrator

Citrix123

Domain Administrator

Training.lab

User1

Citrix123

XenDesktop and XenApp test user

Training.lab

User2

Citrix123

XenDesktop and XenApp test user

The local administrator password is “citrix” on each virtual machine.






Page
5

Citrix Virtual Classroom

How to log into the lab environment

The self
-
paced lab environment is hosted on a cloud
-
based Citrix XenServer. Connecting to your server
from the
portal page is as easy as 1
-
2
-
3.


Step
-
by
-
step login instructions

Step

Action

1.


Once logged in to the self
-
paced portal, click the Start lab button to launch a connection to
published XenCenter.



2.


When XenCenter loads, right
-
click the
XenCenter

node and select
Add…


3.


On the
Add New Server

screen enter the
XenServer

IP address
provided on the portal
and in the
Password
field enter the password provided on the portal. The user name will
always be root.






Exercise 1: Configuring
Citrix
Printing Policies

Page
6

Citrix Virtual Classroom

Exercise
1
:
Configuring Citrix Printing Policies


Overview

Citrix printing policies
,

based on the new policy engine
,

are applicable to both XenDesktop 5
.x

and
XenApp 6
.x
.
These policies help the administrator configure printing to meet business objectives in a
quick and efficient manner without needing to set registry keys or modify complex configuration files.

In
this exercise we will
configure various printing policies a
nd observe the resulting behavior.


Step
-
by
-
step guidance

Estimated time to complete this lab:
30

minutes
.

Step

Action

1.


Begin by
doing a force shutdown on

the
SQLServer2

virtual machine and
then
power on
the
PrintSrv

virtual machine



2.


Click
the

XD

virtual machine, click the
Console

tab and then
logon
as
training
\
administrator

with password
Citrix123

3.


Launch
Desktop Studio

and wait
about 30 seconds for it to load

4.


Expand
HDX Policy

and click

Users
.

C
lick the
New

button to create a new
policy.


NOTE
:

XenDesktop and XenApp policies can be configured in the
ir

respective Citrix
consoles or as GPOs in Active Directory
.

5.


Enter
Printing Policy

for the name and click
Next

6.


On the settings screen, click
Printing

on the left side and take a moment
to explore

the
settings for this node and the sub
-
nodes of
Client Printers, Drivers,
Universal Print
Server,

and
Universal
P
rinting
.


Exercise 1: Configuring
Citrix
Printing Policies

Page
7

Citrix Virtual Classroom

Step

Action

7.


Under
Printing > Client Printers
, c
lick
Add
next
to Direct connections to print
servers
.



NOTE
:
This policy was previously known as print job routing

in earlier product versions.

8.


Click
Disabled

and then click on
OK.

This will prevent
the Citrix printing system from
first trying to
auto
-
connect

client
-
defined network printers to the print server and cause
them to
always
auto
-
create instead.

9.


C
lick
A
dd

on
P
rinter driver map
ping and compatibility

10.


In the settings dialog

click
Add


Exercise 1: Configuring
Citrix
Printing Policies

Page
8

Citrix Virtual Classroom

Step

Action

11.


Type in
Microsoft XPS Document Writer
and

select
Do not create
.
Then

click
OK
.

This will prevent these types of printer objects from auto
-
creating and conserve server
resources.




NOTE
:

T
he
driver
name is not case sensitive for this policy setting.

12.


Click
Add

again and type
HP*

13.


Click
Replace with

and then
Find Driver

14.


Select the
HP LaserJet 2200 Series PCL 5
driver and click
OK



Exercise 1: Configuring
Citrix
Printing Policies

Page
9

Citrix Virtual Classroom

Step

Action

15.


Click
OK

on the two open dialog boxes

to return to the main policy dialog

16.


Click
Add

on
Auto
-
create generic universal printer

17.


Click
Enabled

and then
OK.

This will auto
-
create the generic universal printer

in user
sessions which is based on the Citrix Universal Printer Driver and can reference any client
-
defined printer object
.

18.


Click
Next

to proceed to the filter screen

19.


Click
Add
next to
User or Group

20.


Click the
Add

button, enter
training
\
domain

u
sers

in the
User or group name

field, and
then click
OK

twice


21.


Cli
ck
Next

and
Create

to finish the wizard

and complete the policy

22.


Switch

to the
Win7Client

virtual machine

and logon as
User1
with password
Citrix123

23.


Open
Internet Explorer

and browse

to
http://xd.training.lab


24.


Logon as
user1

with password
Citrix123
and
connect to

the
Win7 Dedicated Desktop

25.


Launch the
legacy_printers_folder

batch file on the Desktop
. This view will directly show
us the printer details such as the comments field.

26.


Notice that the network
printers have
auto
-
created on the VDA as opposed to aut
o
-
connected as network printers per the Direct Connections to
Print Servers policy setting.



Exercise 1: Configuring
Citrix
Printing Policies

Page
10

Citrix Virtual Classroom

Step

Action

27.


Access the properties for both of the HP printers and notice that they are using the
HP
LaserJet 2200 Series PCL 5

driver as per the mapping we configured.


28.


Notice that the client
-
defined
Microsoft XPS Document Writer

h
as not au
to
-
created as
per our policy.
The Microsoft XPS Document Writer shown is the local one on the VDA
.


Exercise 1: Configuring
Citrix
Printing Policies

Page
11

Citrix Virtual Classroom

Step

Action

29.


Open
Event Viewer

on the
VDA
(Start > Search Bar)

and look through the
Application
Log

for event ID 1104 which confirms that the local
Microsoft
XPS Document Writer

didn’t auto
-
create.


30.


Minimize the session
to the
VDA

and open
Devices and Printers

on
Win7Client

31.


Right
-
click on the
default printer

and select
See what’s printing.

32.


Go to
Printer > Pause Printing

33.


Switch back to the session and go to properties of the
Citrix Universal Printer.

34.


Click
Print Test Page

and then close on the confirmation dialog.

35.


S
witch to the
paused default
printer queue on
Win7Client

and notice

that the job was sent.

Un
-
pause the queue to submit the job.


36.


Switch back to the session and c
lick the
Preferences
button on the
Properties

dialog of
the
Citrix
Universal

Printer.

37.


Click
Preview on client

and then click
OK.


Exercise 1: Configuring
Citrix
Printing Policies

Page
12

Citrix Virtual Classroom

Step

Action

38.


Click the
Print Test Page

button again and
notice that this time the
EMF Viewer

application is launched on
Win7Client

with the document to be printed. We can click the
print button in the EM
F Viewer and select any locally
-
defined printer since this
is just like
printing a

local document at this point.

This preview functionality is available for the Citrix
Universal

Printer and any printer which auto
-
creates with the Citrix Universal Print Driver.


39.


Close the
EMF Viewer,

l
ogoff from the
virtual desktop session
,

and switc
h back to the
XD

virtual machine
.

40.


In
Desktop Studio,

select the
Printing Policy

and click
Edit

41.


Under the
Settings

tab, navigate to
Printing > Client Printers > Auto
-
create client
printers

and
click
Add

to configure that setting

42.


Change the value to
Auto
-
create the client’s default printer only

and click
OK

twice
to
close both dialogs

43.


Switch back to the
Win7Client

virtual machine an
d re
-
launch a connection to the

VDA

as
User1

with password
Citrix123.


Exercise 1: Configuring
Citrix
Printing Policies

Page
13

Citrix Virtual Classroom

Step

Action

44.


Go to
Start > Devices and Printers.

Notice that this time the client’s default printer and
the Citrix Universal Printer are the only two which have auto
-
created
. The ports for all
locally
-
defined printers, however, are still accessible

which allows us to add in printers as we
wish.

We wi
ll demonstrate this in the following steps.


45.


Within the session, g
o to
Start > Search Bar

and type in
\
\
c
lient

before pressing Enter.

46.


We’re now looking at all the available printer ports on the endpoint machine through the
virtual channel. Double
-
click the
HP LASERJET 4250 PCL6

to map it in o
ur session.




NOTE
:
Alternatively, we could have used

the Add Printer Wizard
and browsed for

a
network printer type through the
\
\
c
lient

virtual channel
.

47.


Double
-
c
lick the
legacy_printers_folder

sho
rtcut on the desktop of the
VDA

48.


Note

that the
HP

we
just mapped shows as
Auto
R
etained

under the comments field



Exercise 1: Configuring
Citrix
Printing Policies

Page
14

Citrix Virtual Classroom

Step

Action

49.


Logoff from the
virtual desktop
session

50.


Launch the registry editor on
Win7Client

(Start>Search Bar > Regedit)
and navigate to
HKCU
\
Software
\
Citrix
\
PrinterProperties. This i
s the printer property store which
contains settings related to printers used in the Citrix environment. Information for auto
-
retained printers, such as the
HP LaserJet 4250 PCL6
, is also stored here.

Take a momen
t
to
brows
e

through the data at this loca
tion
.


51.


Re
-
launch a connection to
the

VDA

and run the
legacy_printers_
folder

batch file from
the
D
esktop

52.


Notice
that the
HP LaserJet 4250 PCL6

a
uto
-
retained

printer is still present since it

s cached
in the user’s profile on
Win7Client

53.


Logoff from the
virtual desktop session

54.


While auto
-
retaine
d printers can be useful in some

situations, there are other situa
tions in
which it’
s desirable to disable them
. Switch back to the
XD

virtual machine
.

55.


From
Desktop Studio
,

navigate to the
Users

node under
HDX Policy

56.


Click the
Printing Policy

and choose
Edit

57.


From the Settings tab, go to
Printing > Client Printers

and click
Add

next to
Retained
and restored client printers.

58.


Take a moment to read the description for this setting. It will disable both auto
-
retained
and auto
-
restored printers. Auto
-
restored printers are ones that administrators add on the
server and
attach
to client printer port
s

(they tend to be less common t
han auto
-
retained).

59.


Click
Prohibited
and then
OK

twice to return to
Desktop Studio

60.


Switch back to the
Win7Client

virtual machine and re
-
launch a connection to the
VDA

61.


Run the
legacy_printers_
folder

batch
file from the
D
esktop


Exercise 1: Configuring
Citrix
Printing Policies

Page
15

Citrix Virtual Classroom

Step

Action

62.


Notice that with the
new setting applied, the auto
-
reta
ined printer no longer shows.


NOTE
:
The information related to that printer is still cached in the user profile, however,
and could be available at a later date if
the policy setting is reverted to allow auto
-
retained
pri
nters
.

63.


Logoff from the
virtual desktop session

END OF EXERCISE



Summary

Key
Takeaways

The key takeaways for this exercise are:



Citrix policies allow administrators to modify the out
-
of
-
the
-
box printing
behaviors to suit the needs of the environment



Most
Citrix printing policies are per
-
user/per
-
session allowing a variety of
configuration possibilities and preventing the need to create server silos



Creating a policy to only auto
-
create the default printer (or only auto
-
create
non
-
network printers or n
o printers at all) does not prevent users from
manually adding in
Citrix
-
specific client printer connections

themselves
which become auto
-
retained in their profile



Auto
-
retained printers may be disabled by Citrix policy to prevent caching
and reading from
the user profile


Exercise 2: Using Citrix Printing Tools

Page
16

Citrix Virtual Classroom

Exercise
2
:
Using Citrix Printing Tools


Overview

Citrix has developed a few key printing tools
to assist administrators in managing their

printing
environment
. Print Detective (
http://support.citrix.com/article/CTX116474
)
is

run from any Citrix or
non
-
Citrix Windows machine to enumerate, filter, export, and even delete
local and r
emote
print
er

drivers.
StressPrinters (
http://support.citrix.com/article/CTX109374
) allows administrators to stress test and
qualify non
-
native print
er

drivers to assess their multi
-
threaded perf
ormance before introducing them to a
production
XenApp
environment.


Step
-
by
-
step guidance

Estimated time to complete this lab:
20 minutes
.

Step

Action

1.


Logon to the
XA
2

virtual machine as
training
\
administrator

with password
Citrix123.

2.


In

Windows Explorer, launch
Print
Detective
.exe

from C:
\
software
\
PrintDetective
\
x64.


NOTE
:
It is important to always run the respective version for the
platform

you are on
(
e.g.
32
-
bit on 32
-
bit systems and 64
-
bit on 64
-
bit systems).


Exercise 2: Using Citrix Printing Tools

Page
17

Citrix Virtual Classroom

Step

Action

3.


When the program
loads, it automatically enumerates the print
er

drivers on the local
machine. To view only non
-
native/non
-
Citrix drivers, select the appropria
te option under
the
View

menu.


4.


Non
-
native drivers on Windows Server 2008 R2
and Windows 7
are determined based

on
the native driver date

stamp

or version
. In earlier operating systems this is done using the
provider value. Take a moment to browse the printer driver information in the registry at:


HKLM
\
System
\
CurrentControlSet
\
Control
\
Print
\
Environments
\
Windows
x64
\
Drivers
\
Version
-
3
\

5.


Switch back to Print Detective and c
hoose
Reset View

under the
View

menu to return to
the default list of all drivers.

6.


Let’s try removing a print
er

driver with Print Detective. Select the checkbox next to the
native
Lexmark C522

PS (MS)

driver and click the button
Delete Driver(s).

Click
Yes
on the dialog and i
f the driver is not in use it will be deleted.


NOTE
:
Print Detective uses standard Windows A
PIs to properly delete printer
driver
s

just
the same as if you use Print Ser
ver Properties or the Print Management Console.

7.


Notice that the options under the
Edit

menu include the ability to copy the details from
one or more drivers to the clipboard and search for specific text within the driver details.

8.


Under the
File
menu we

have the option to save the output to a

CSV file. Save a file to the
D
esktop that contains the driver name and the provider

columns
.


Exercise 2: Using Citrix Printing Tools

Page
18

Citrix Virtual Classroom

Step

Action

9.


Now let’s enumerate the print
er

drivers on the
XA
1

server. Enter
XA
1

in the
text box
and
click
Enumerate.

The program will make an RPC call to the spooler on the
XA
1

system.


NOTE
:
T
his
process

requires the
GPO
setting for
“Allow Print Spooler to accept client
c
onnections


to be enabled which has previously bee
n configured in the environment.

10.


Let’s try t
o delete the native
Canon
iR C5058/C5068

print
er

driver remotely.

We’ll do this
just as before by clicking next to the driver name and then clicking the button to delete the
driver.

11.


Use Print Detect
ive to remotely connect to the VDA virtual machine
.
Observe the print
er

dri
vers that are installed on this system
.

Close Print Detective when finished.

12.


Print Detective can also be run from a com
mand line which is
useful when scripting. Open
a command prompt and
change the directory to

C:
\
software
\
PrintDetective
\
x64
.

13.


Next run “PrintDetective XA
2
” to enumerate all local print
er

driver information. Press
Enter after the information is displayed to return back to the command prompt.

14.


Print
er

driver information can be output to a text fi
le by simply adding on the relative or
absolute path to the output file such as “PrintDete
ctive XA
2 printdriverinfo.csv” or

“PrintDetective XA
2 c:
\
printdriverinfo.csv
.


Try it out to save a file with all driv
er
information for the local XA
2 server.

15.


Let’s now use a PowerShell script to enumerate and output the print
er

driver information
from both servers in the farm.
From

Windows Explorer at
C:
\
software
\
PrintDetective
\
x64
, d
ouble
-
click the
PDXAScript.ps1

file to view the source
in
Notepad.


Exercise 2: Using Citrix Printing Tools

Page
19

Citrix Virtual Classroom

Step

Action

16.


This scr
ipt starts by loading the Citrix snap
-
ins, then obtains the server information for each
server in the farm, and finally loops through each server calling the Print Detective
executable each time to output the respective print
er

driver information to a CSV
file with
the name of the server.

(A similar script can be made for XenDesktop VDAs)


17.


Since the script is not digitally signed and will be run locally, we need to set the
PowerShell
execution policy higher than
the current setting of
AllSigned to Remot
eSigned. Launch a
new PowerShell prompt
(blue icon on the taskbar)
and run
Set
-
ExecutionPolicy
RemoteSigned
. Press

Y


and Enter to confirm.


18.


Now simply right
-
click the
PDXAScript.ps1

file
in
Windows Explorer

and select
Run
with PowerShell.

19.


After
a
brief
moment,
two CSV files will be generated with the names of the servers in the
farm.

20.


Open the CSV files with
Notepad
or
WordPad

to view the contents

Using StressPrinters


Exercise 2: Using Citrix Printing Tools

Page
20

Citrix Virtual Classroom

Step

Action

1.


Browse to C:
\
software
\
StressPrinters_v1_3_2

and run
StressPrinters64.exe.


NOTE
:
It is important to always run the respective version for the
platform

you are on
(
e.g.
32
-
bit on 32
-
bit systems and 64
-
bit on 64
-
bit systems).


2.


Let’s start by stress testing a native driver to establish a baseline. Click
the Brother DCP
-
129C

drive
r on the left side and check its checkbox.

3.


Next enter 5 for both “The number of concurrent add events” and “The number of times
to repeat the test.”
Also c
heck “Verbose mode”
and

Apply

these settings to all printers


as
shown below. Do not run the test just yet.



Exercise 2: Using Citrix Printing Tools

Page
21

Citrix Virtual Classroom

Step

Action

4.


L
aunch
Task Manager

and under the
Processes

tab ensure that the
CPU
column is
sorted in descending order.


5.


Switch back to StressPrinters and
click
Run

to start the stress test.

6.


Once the test
starts, notice the performance impact on the system in Task Manager. It
sh
ould be minimal and the test should complete within a few seconds.


Exercise 2: Using Citrix Printing Tools

Page
22

Citrix Virtual Classroom

Step

Action

7.


When the test concludes, click
OK

on the dialog
. No errors or warnings should be
gener
at
ed

and the

elapsed time should be around
5

seconds or so
. Click

Close

on the
output log.


8.


Now
uncheck the Brother driver and
click to select the
HP Universal Printing PCL 5
(v5.2)

driver name and check its checkbox.


Exercise 2: Using Citrix Printing Tools

Page
23

Citrix Virtual Classroom

Step

Action

9.


Click
Run

to begin the testing and monitor t
he perf
ormance with Task Manager. T
his
driver will consume excessive CPU and memory before eventually
finishing with errors
and/
or
crashing the print spooler.


NOTE
:

The HP Universal Printer Driver version that we are testing here is an older
version which is known to exhibit performance issues under load.
Newer versions may not
experience the same problems.

10.


When the test fails, close StressPrinters
completely
and
then restart b
oth
the
P
rint
S
pooler
a
nd Citrix Print Manager Service

from the
Services Snap
-
in (Start>Search
Bar>Services.msc)

11.


Let’s now set this non
-
native print
er

driver to be isolated. The Print Management Console
can be used to complete this task; h
owever, it is
not installed on this server so we’ll need to
add it in. Launch the
Server Manager

from the
Taskbar
or under the
Start Menu.

12.


Click
Role
s

on the left pane and then
Add Roles

on the right.

13.


Click
Next

on the first screen.

14.


Select
Print and

Document Services

and click
Next

15.


Proceed through the remainder of the wizard

with default selections. Close the wizard

and
the Server Manager

when done
.

16.


Launch the
Print Management Console

under
Start > Administrative Tools

17.


Expand
Print Servers

and c
lick the
Drivers

node under
XA
2 (local)


Exercise 2: Using Citrix Printing Tools

Page
24

Citrix Virtual Classroom

Step

Action

18.


Right
-
click the
HP Universal Printing PCL 5 (v5.2)

driver name and set the isolation
level to
Isolated.

This will ensure that the problematic driver runs in its own
PrintIsolationHost.exe process space instead of the print spooler’s process space.


NOTE
:

T
he print spooler does not need to be restarted for the change to take effect.

19.


Re
-
launch
the 64
-
bit
StressPrinters

executable
, click and check the
HP Universal Printing
PCL 5 (v5.2)

driver, enter 5 for both the add events and repetitions, select verbose mode,
and run the test.

20.


Monitor the performance with Task Manager. This time you’ll noti
ce that the driver will
consume excessive CPU and memory from both spoolsv.exe and printisolationhost.exe;
however, the test should eventually finish and not
i
mpact the printing
sub
system
or crash
the spooler.

21.


Close

all programs and windows on
XA
2

when finished.

END OF EXERCISE








Exercise 2: Using Citrix Printing Tools

Page
25

Citrix Virtual Classroom



Summary

Key
Takeaways

The key takeaways for this exercise are:



Print Detective can be used with both the GUI and at the command line to
obtain detailed driver information

from local and remote hosts



StressPrinters

helps to test non
-
native printer drivers before introducing
them to production



Print
er

Driver Isolation
helps prevent

problematic printer drivers
from
crashing the print spooler


Exercise 3: The Citrix Universal Print Server

Page
26

Citrix Virtual Classroom

Exercise 3
: The Citrix Universal Print Server


Overview

The Citrix Universal Print Server is a feature
which allows host
-
based network printers to utilize the Citrix
Universal Print Driver. This reduces the need to
install printer drive
r
s which can introduce management
and stability issues.

It also provides enhanced compression capabilities ideal for WAN links while
optimizing document quality.


Step
-
by
-
step guidance

Estimated time to complete this lab:
30

minutes
.

Step

Action

1.


Logon

to the
XD

virtual machine
as
training
\
administrator

with password
Citrix123
and
launch
Desktop Studio

if it is not already running.

2.


Navigate to
HDX Policy > Machines

and click the
Edit
button on the
Unfiltered

policy.


3.


Click the
Settings

tab and then navigate to
Printing > Universal Print Server

4.


Click
Add
next to
Universal Print Server e
nable

5.


Select
Enabled with no fallback to Windows’ native remote printing

a湤n瑨敮⁣汩l欠
OK

twice on the dialogs.



Exercise 3: The Citrix Universal Print Server

Page
27

Citrix Virtual Classroom

Step

Action

6.


Navigate to
HDX Policy > Users

and
click the
Edit
button on the
Unfiltered
policy.

7.


Click the
Settings

tab and then navigate to
Printing >
Drivers

8.


Click
Add
next to
Universal print driver usage

9.


Select
Use universal printing only

and click
OK



NOTE
:

For this exercise we need to ensure that we’re using the Citrix Universal Print
Driver since we’re working with native print drivers and want to ensure usage of the
Universal Print Driver with the new Universal Print Server

10.


Under the
Printing
section, c
lick
Add

next to
Session printers

11.


Click the
Add

button and type in
\
\
PrintSrv
\
HP4100

before clicking
OK

three times on
the open windows.

12.


From XenCenter, restart the
VDA

virtual machine to allow the new machine policy to take
effect
. Wait a moment for
it to come back up to the logon screen.

13.


Switch to the
Win7Client

virtual machine

and launch a connection to the

virtual desktop as
User1

with password
Citrix123

from
http://xd.training.lab


14.


Open
Devices and
Printers

in the session and
click
the “HP LaserJet 4100
Series PCL6

on
printsrv”
to verify

it is

network connected and utilizing the Citrix Universal Printer Driver.


15.


Right
-
click the “HP LaserJet 4100
Series PCL6

on printsrv”
and select
Printer p
roperties


Exercise 3: The Citrix Universal Print Server

Page
28

Citrix Virtual Classroom

Step

Action

16.


Click
Print Test Page

and then close on the confirmation dialog

17.


Switch to the
PrintSrv

virtual machine and
logon as
training
\
administrator

with
password
Citrix123

18.


Navigate to
C:
\
citrix and double
-
click lj4100.pcl to
see the result of the
print job.

This job
was sent from the VDA to the PrintSrv machine using the Citrix Universal Print Driver
(without the Citrix Universal Print Server this would require matching native drivers).



NOTE
:

The printer queue was previously configured to print to
this C:
\
citrix
\
lj4100.pcl
file

19.


Next we’ll analyze the amount of data that is sent from the host (VDA) to the print server
(PrintSrv) versus the actual spool file size. Open
Devices and Printers

on

the
PrintSrv
virtual machine.

20.


Right
-
click on the
HP LaserJet 4100 Series PCL6

printer and select
See what’s printing.

21.


Go to
Printer > Pause Printing

22.


Switch to the
Win7Client
which should still have the virtual desktop session open

23.


Launch
Wireshark

from the Desktop

24.


Go to
Capture > Options


Exercise 3: The Citrix Universal Print Server

Page
29

Citrix Virtual Classroom

Step

Action

25.


In the
Capture Filter

field, enter
tcp port 7229

which will allow us to filter only the print
stream traffic


26.


Click the
Start
button on the dialog to begin the trace

capture

27.


Minimize
Wireshark
and o
pen the Test Document
PDF file
on the Desktop
. This sample
PDF contains several pages with
graphics and text.

28.


Go to
File > Print

29.


Select
\
\
printsrv
\
HP LaserJet 4100 Series PCL6

from the drop
-
down and then click
Print
.

Wait for the print job progress d
ialog to complete.

30.


Switch back to
Wireshark

31.


Go to
Capture > Stop

32.


Go to
Statistics > Summary

33.


Note the bytes captured in your environment. In the screenshot below,
just over 8MB was
captured which indicates how much data was sent to the print
server.


34.


Switch to the
PrintSrv

virtual machine


Exercise 3: The Citrix Universal Print Server

Page
30

Citrix Virtual Classroom

Step

Action

35.


Look at the paused print queue and observe the size of the spool file. In the screenshot
below, the spool file size is 194MB which is significantly greater than the 8MB or so that
was sent over the wire
.


36.


IMPORTANT!

This is the last exercise for this lab. Please go back

to the Self
-
paced
Learning Lab

site and do the following
before you go
:



Provide us feedback by s
elect
ing

the “Take web survey…” link.



After completing the survey, click the “Logout” link towards the bottom right to
close out your lab session.



END OF EXERCISE

Key
Takeaways

The key takeaways for this exercise are:



The Citrix Universal Print Server allows host
-
based network printers
in
XenDesktop and XenApp environments to take advantage of the Citrix
Universal Print Driver



The Citrix Universal Print Server requires additional component installation
and policy configuration



The same great compression capabilities of the Citrix Univers
al Print Driver
are available when using the Citrix Universal Print Server to reduce network
bandwidth consumption and overall print job time





Exercise 3: The Citrix Universal Print Server

Page
31

Citrix Virtual Classroom

Please complete this survey



We value your feedback! Please take a moment to let us know about your self
-
pac
ed
lab experience by completing a brief
survey

on the web portal before you logout.





Page
32

Citrix Virtual Classroom

Revision History

Revision

Change Description

Updated By

Date

1
.
0

Original Version

WW Technical Readiness

October

2012






About Citrix

Citrix Systems, Inc. designs, develops and markets technology solutions that enable information technology (IT)
services. The Enterprise division and the Online Services division
constitute its two segments. Its revenues are
derived from sales of Enterprise division products, which include its Desktop Solutions, Datacenter and Cloud
Solutions, Cloud
-
based Data Solutions and related technical services and from its Online Services di
vision's Web
collaboration, remote access and support services. It markets and licenses its products directly to enterprise
customers, over the Web, and through systems integrators (Sis) in addition to indirectly through value
-
added
resellers (VARs), value
-
added distributors (VADs) and original equipment manufacturers (OEMs). In July 2012, the
Company acquired Bytemobile, provider of data and video optimization solutions for mobile network operators.

http://www.citrix.c
om



© 201
2

Citrix Systems, Inc. All rights reserved.