HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 49

Changing the Default Printer, Managing Printing on Print Server Systems, lp Spooler Tasks

Page 49 highlights

Printers Changing the Default Printer The command used to set the default printer is lpadmin -dprinter. The destination printer must already exist on the system before it is set as the default destination. When a print request is sent from a print client, the lp daemon determines the request's destination by first looking for the -d option on the command line. If it is present, the print request is sent to that printer. If the -d is not present, then lp checks the user's LPDEST environment variable. If LPDEST is set, then it becomes the default destination. If it is not set, the request is sent to the default. Managing Printing on Print Server Systems Checking the Print Server Status To check the actual status of the remote print server's lp spooler you must remotely access the print server; when a print request is sent to a print server, the local lp system always reports that the request s being processed, regardless of the actual state of the print server's lp spooler. To determine the actual print status of a remote print job, use the lpstat command with a rsh to access the printer server's lp spooler: # /usr/bsd/rsh print_server_hostname lpstat -t where print_server_hostname is the hostname of the remote print server. Canceling Print Server Requests There are two ways to cancel remote print requests using the cancel command. They are: # /usr/bsd/rsh print_server_hostname cancel print_server_name and # /usr/bsd/rsh print_server_hostname cancel request_ID where print_server_hostname is the hostname of the print server to which the requests have been submitted. Using the first form, with the print_server_name, the current print job will be cancelled. Using the second form the print job with request ID of request_ID will be removed from the queue, whether it is being printed or not. HP-UX Print Spooler lp Spooler Tasks Initializing the lp Spooler Before you can use the lp spooler, you need to initialize it as follows: 1. Add at least one printer to the lp spooler. 2. Tell the lp spooler to accept print requests for this printer. 3. Tell the lp spooler to enable the printer for printing. 4. Turn on the lp spooler. NOTE: If you use SAM to add a printer, it will perform the above steps automatically. Specifying the Printer Model File to the lp Spooler When you configure your printer into the lp spooler, you must identify the printer interface script to be used. You can choose printer interface scripts from the /usr/lib/lp/model directory, which contains files 44

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Printers
44
Changing the Default Printer
The command used to set the default printer is
lpadmin -d
printer
. The destination
printer
must already
exist on the system before it is set as the default destination.
When a print request is sent from a print client, the
lp
daemon determines the request±s destination by first
looking for the
–d
option on the command line. If it is present, the print request is sent to that printer. If the
–d
is not present, then
lp
checks the user±s
LPDEST
environment variable. If
LPDEST
is set, then it
becomes the default destination.
If it is not set, the request is sent to the default.
Managing Printing on Print Server Systems
Checking the Print Server Status
To check the actual status of the remote print server±s
lp
spooler you must remotely access the print server;
when a print request is sent to a print server, the local
lp
system always reports that the request s being
processed, regardless of the actual state of the print server±s
lp
spooler. To determine the actual print status
of a remote print job, use the
lpstat
command with a
rsh
to access the printer server±s
lp
spooler:
# /usr/bsd/rsh
print_server_hostname
lpstat –t
where
print_server_hostname
is the hostname of the remote print server.
Canceling Print Server Requests
There are two ways to cancel remote print requests using the
cancel
command. They are:
# /usr/bsd/rsh
print_server_hostname
cancel
print_server_name
and
# /usr/bsd/rsh
print_server_hostname
cancel request_ID
where
print_server_hostname
is the hostname of the print server to which the requests have been
submitted. Using the first form, with the
print_server_name
, the current print job will be cancelled. Using
the second form the print job with request ID of
request_ID
will be removed from the queue, whether it is
being printed or not.
HP-UX Print Spooler
lp Spooler Tasks
Initializing the lp Spooler
Before you can use the
lp
spooler, you need to initialize it as follows:
1.
Add at least one printer to the
lp
spooler.
2.
Tell the
lp
spooler to accept print requests for this printer.
3.
Tell the
lp
spooler to enable the printer for printing.
4.
Turn on the
lp
spooler.
NOTE: If you use SAM to add a printer, it will perform the above steps automatically.
Specifying the Printer Model File to the lp Spooler
When you configure your printer into the
lp
spooler, you must identify the printer interface script to be
used. You can choose printer interface scripts from the
/usr/lib/lp/model
directory, which contains files