| United States-English |
|
|
|
![]() |
HP 9000 Networking: Advanced Server/9000 Administrator's Guide > Chapter 3 PrintingAS/U Spooler Service |
|
The AS/U spooler service was designed with a limited administrator definable interface to the HP-UX spooler. In addition to the native HP-UX lp spoolers, the following HP-UX spoolers have been tested for co-existence with AS/U: OpenSpool/UX and HPDPS.The following subsections show the AS/U lanman.ini entries for the HP-UX native lp spooler, OpenSpool/UX spooler, and the HPDPS spooler: Following are the lanman.ini entries for the AS/U spooler with their default values for operation with the HP-UX native lp spooler. [spooler] cancelcmd = LANG=C /usr/bin/cancel %s Fully qualified path to HP-UX command to cancel job-id %s. cancelkey = cancelled Upon the canceling of a print job, the output (stdout) of the cancel command is checked for this entry. The cancel operation succeeds if this string is found. lpcmd = LANG=C /usr/bin/lp -d%s Fully qualified path to HP-UX command to submit destination %s. lpcopiesopt = -n%d HP-UX switch to be used with lpcmd to specify number of copies to print, where %d is number of copies. lpkey = request id is %s Upon submittal of a job to print, the output (stdout) of the command is scanned for this string, where %s will be the position of the space delimited job-id returned by the HP-UX spooler. lptitleopt = -t"%s" HP-UX switch to be used with lpcmd to specify the title of a print job, where %s is the title. statjcmd = LANG=C /usr/bin/lpstat %s Fully qualified path to HP-UX command to check for the status of a job, given its job-id %s. Note that this job-id must be the same as that which was returned and scanned in by the entry lpkey. statjkey = %[^-\n]-%[0-9] Upon execution of statjcmd, the output (stdout) of the command is scanned for this entry. The above fscanf(3S) regular expression searches for xxx-yyy, where yyy are digits. statjpkey = \ on \ Upon execution of statjcmd, the output (stdout) of the command is scanned for this entry. Note that the \ characters serve to include spaces on both side of "on". If this is found, the job is considered printing by the AS/U spooler. statjskey = - This entry specifies the delimiter which separates the printer name and job number in the job-id returned by the HP-UX spooler. This entry must reflect the delimiter in the entry statjkey. For example, the default works for the HP-UX lp spooler's designation lj3_2-726 for a print job. statpcmd = LANG=C /usr/bin/lpstat -p%s Fully qualified path to HP-UX command to check for existence of the printer %s. statpkey = printer Upon execution of the statpcmd, the output (stdout) of the command is scanned for this entry. If entry exists, the printer exists. Technically, the *cmd entries are used as the format for fprintf(3S) calls in the AS/U spooler. The *key entries are used as the format for fscanf(3S).
Following are the AS/U lanman.ini entries for the HP-UX OpenSpool/UX spooler: [spooler]
AS/U supports HPDPS printers in one of two modes: LP emulation and native HPDPS. AS/U and HPDPS in LP emulation mode: AS/U supports HPDPS printers via the LP commands without changing the AS/U configuration. To use an HPDPS print destination under LP emulation with AS/U, simply add the printer to HPDPS, then add this printer to AS/U via the commands while the AS/U server is running: net share asu_queue1=hpdps_lp1 /print or alternatively: net share asu_queue1 # net print asu_queue1 /route:hpdps_lp1 AS/U sees the printer hpdps_lp1 in exactly the same way as LP spooler printers in this mode. AS/U and HPDPS in native mode: AS/U may support HPDPS exclusively with the following settings in the [spooler] section of the lanman.ini file:
The AS/U server must be restarted after the above entries are changed. Note that the entries above must be entered exactly. Incorrect values for the [spooler] entries will prevent the AS/U server from functioning properly. HPDPS printers may now be added to AS/U in the usual manner: # net share asu_queue1=hpdps_lp1 /print or alternatively: # net share asu_queue1 # net print asu_queue1 /route:hpdps_lp1 In HPDPS native mode support, AS/U will not be able to print to any other spoolers' destinations (LP spooler, OpenSpool/UX, for example). LP emulation mode is suggested for systems with multiple spoolers whose printers are used by AS/U. When AS/U is in HPDPS native mode, the print options must be valid HPDPS options. For example, AS/U queues with the options set by the command: # net print asu_queue1 /parms:"types=-oduplex" /options will cause the AS/U device to which the queue is routed to enter an error state since the HPDPS command to print does not understand -oduplex. The correct options must be specified for HPDPS: # net print asu_queue1 /parms:"types=-xsides=2" /options As with LP options, use a comma instead of a space in the /parms: "types=" parameter. For example, use: # net print asu_queue1 /parms:"types=-xsides=2,-xdocument-format=ps" /options instead of: # net print asu_queue1 /parms:"types=-xsides=2 -xdocument-format=ps" /options HPDPS and Remote HP-UX LP Printers: The way AS/U routes HPDPS printers to remote HP-UX LP destinations is governed by HPDPS's support of the remote LP printers. Currently HPDPS printers routed to HP-UX remote LP printers will not send the -tjob name (-tjob title in HPDPS LP emulation) to the remote LP printers. Until this is fixed by HPDPS, remote LP printer destinations for HPDPS printers will not have the AS/U client's name on their jobs' banner pages. The -xprinter-pass-through= options may be used to send extra LP options to remote LP printers from HPDPS native printers. For example, the LP emulation mode command for HPDPS printer rlp to a remote LP printer: # lp -dhpdps_rlp1 -oraw pclfilename # lp -dhpdps_rlp2 -onb pclfilename is equivalent to the HPDPS native command: # pdpr -phpdps_rlp1 -xprinter-pass-through=raw pclfilename # pdpr -phpdps_rlp2 -xprinter-pass-through=nb pclfilename and if AS/U is in HPDPS native mode, the queue would be configured by: # net print asu_queue1=hpdps_rlp1 /print # net print asu_queue1 /parms:"types=-printer-pass-through=raw" /options # net print asu_queue2=hpdps_rlp2 /print # net print asu_queue2 /parms:"types=-xprinter-pass-through=nb" /options Printing with more than one remote LP option is not currently available via native HPDPS. Jobs sent from HPDPS to remote LP printers will be considered printed by HPDPS the moment they leave HPDPS, even if their remote LP printer destinations are disabled and queueing all incoming jobs. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||