HP-UX Reference (11i v2 07/12) - 1M System Administration Commands A-M (vol 3)

l
lpadmin(1M) lpadmin(1M)
-orc Restricts users to canceling only their own requests. Default is to not restrict the
cancel command.
-ob3 Uses three-digit request numbers associated with the printer directory. Use this
option while configuring remote printer queues to BSD systems.
The following options are only useful with
-p and can appear in any order. They are provided with sys-
tems that provide remote spooling.
-ormmachine The name of the remote machine is machine.
-orpprinter The name of the printer or printer class to use on the remote machine is printer.
-ociremcancel Specifies that the local command remcancel is used to cancel requests to remote
printers. To ensure that the correct command is used, specify the full path name.
-ocmremcancel Specifies that the local model remcancel is used to cancel requests to remote
printers.
-osiremstatus Specifies that the command remstatus is used to obtain the status of requests to
remote printers. To ensure that the correct command is used, specify the full path
name.
-osmremstatus Specifies that the model remstatus is used to obtain the status of requests to
remote printers.
Restrictions
When creating a new printer, the -v option and one of the -e,
-i or -m options must be specified. Only
one of the
-e, -i or -m options can be specified. The
-h and -l key letters are mutually exclusive.
Printer and class names must not exceed 14 characters and must consist entirely of the characters
A-Z, a-
z, 0-9 and _ (underscore).
For a remote printer, only one of -oci or -ocm can be specified. If neither of them is specified, the
default remote cancel model
/usr/lib/lp/cmodel/rcmodel
is used. Similarly, only one of -osi or
-osm can be specified. If neither of them is specified, the default remote status model
/usr/lib/lp/smodel/rsmodel
is used.
All local printers use four-digit request numbers. All remote printers use three-digit request numbers for
contact with BSD systems.
Long Destination Name Support
You can increase the destination name length limitation of 14 characters to 250 characters by using
lpad-
min
with the following set of options:
/usr/sbin/lpadmin -q
[s|l|c]
Note that these options are specific to this release.
-q Prints whether long destination name support is enabled or disabled.
-ql Enables long destination name support. See also WARNINGS.
-qs Disables long destination name support. This results in the removal of printers and
classes with names greater than 14 characters. Even remote printers with a remote
destination name (argument to -orp) greater than 14 characters are removed. Pend-
ing print requests to these destinations are also removed.
-qc Lists all destinations that will be removed when long destination name support is dis-
abled.
No print related activity should happen during the enabling or disabling of long destination name support.
Enabling and Disabling Email Notification
Email notification is enabled by default. To modify or query the email notification status, use lpadmin
with the following options:
/usr/sbin/lpadmin -s[enable|disable]
Following is a description of each of these options:
-s Print the email notification status.
508 Hewlett-Packard Company 2 HP-UX 11i Version 2: December 2007 Update