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

Setting Up the lp Spooler Using SAM

Page 56 highlights

Printers # lpfence myprinter 5 4. Restart the lp spooler: # lpsched A print request's priority is either assigned with the -p option of the lp command or is automatically assigned the printer's default request priority. You can change a print request's priority by using the lpalt command. A printer's default request priority can be set using the lpadmin command (SAM allows a default request priority other than 0 to be set when a printer is added, but cannot change a printer's default request priority). To change the default request priority, follow these steps: 1. Become superuser with the su command or login as root. 2. Stop the lp spooler: # lpshut 3. Change the priority. For example: # lpadmin -pmyprinter -g7 If you do not specify the -g option, the default request priority is set to 0. 4. Restart the lp spooler: # lpsched If multiple print requests are waiting to be printed on a specific printer and all have priorities high enough to print, the printer will print the next print request with the highest priority. If more than one print request has the same priority, those print requests will print in the order they were received by the lp spooler. Setting Up the lp Spooler Using SAM Adding a Local Printer 1. Physically connect the printer(s) to your system. Refer to the instructions shipped with your printer. You should always shut down your system and turn off the power when you are changing the hardware configuration of your system. 2. Gather the following information: ! The name you are giving to this printer or plotter. Printer names can be up to 14 characters in length; characters must be alphanumeric (A-Z, a-z, 0-9), though the underscore (_) is also allowed. ! The name of the device file the printer or plotter will use. SAM creates the device file for you. SAM uses the default device file named lp_printer-name. You can override the default device file name by specifying your device file name when filling in the printer information. ! The model script from the /usr/spool/lp/model directory; for example, laserjetIIISi for an HP LaserJet IIISi. ! The print request priority for this printer. The default is 0. ! The class to which the printer or plotter will be added (optional). Printer class names can be up to 14 characters in length; characters must be alphanumeric (A-Z, a-z, 0-9), though the underscore (_) is also allowed. ! In addition, decide whether to make this device your system's default printer. 3. Run SAM. 4. Highlight Printers and Plotters and activate the Open control button. 51

  • 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
51
# lpfence
myprinter
5
4.
Restart the
lp
spooler:
# lpsched
A print request±s priority is either assigned with the
-p
option of the
lp
command or is automatically
assigned the printer±s default request priority. You can change a print request±s priority by using the
lpalt
command. A printer±s default request priority can be set using the
lpadmin
command (SAM allows a
default request priority other than
0
to be set when a printer is added, but cannot change a printer±s default
request priority).
To change the default request priority, follow these steps:
1.
Become
superuser
with the
su
command or login as
root
.
2.
Stop the
lp
spooler:
# lpshut
3.
Change the priority. For example:
# lpadmin –p
myprinter
–g7
If you do not specify the
-g
option, the default request priority is set to
0
.
4.
Restart the
lp
spooler:
# lpsched
If multiple print requests are waiting to be printed on a specific printer and all have priorities high enough
to print, the printer will print the next print request with the highest priority. If more than one print request
has the same priority, those print requests will print in the order they were received by the
lp
spooler.
Setting Up the lp Spooler Using SAM
Adding a Local Printer
1.
Physically connect the printer(s) to your system. Refer to the instructions shipped with your printer.
You should always shut down your system and turn off the power when you are changing the hardware
configuration of your system.
2.
Gather the following information:
!
The name you are giving to this printer or plotter. Printer names can be up to 14 characters in
length; characters must be alphanumeric (
A-Z, a-z, 0-9
), though the underscore (
_
) is also
allowed.
!
The name of the device file the printer or plotter will use. SAM creates the device file for you.
SAM uses the default device file named
lp_
printer-name
.
You can
override
the
default device file
name by specifying your device file name when filling in the printer information.
!
The model script from the
/usr/spool/lp/model
directory; for example,
laserjetIIISi
for an HP
LaserJet IIISi.
!
The print request priority for this printer. The default is
0
.
!
The class to which the printer or plotter will be added (optional). Printer class names can be up to
14 characters in length; characters must be alphanumeric (
A-Z, a-z, 0-9
), though the underscore
(
_
) is also allowed.
!
In addition, decide whether to make this device your system±s default printer.
3.
Run SAM.
4.
Highlight
Printers and Plotters
and activate the
Open
control button.