HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)
l
lpadmin(1M) lpadmin(1M)
-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 250 characters and must consist entirely of the characters
A-Z,
a-z, 0-9 and _ (underscore). The character set limitation is not applicable for the printer name passed as
an argument to the -orp option. It is recommended that printer and class names consist of a maximum of
14 characters to ensure compatibility with other products that work with the LP spooling system.
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.
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.
-senable Enable email notification.
-sdisable Disable email notification. This email notification setting is ignored if the print
request is queued using the lp command and the -w or -m option. See lp(1).
Models
Model interface programs are supplied with the LP software. They are shell procedures, C programs, or
other executable programs that interface between
lpsched and devices. All printer models reside in
directory /usr/lib/lp/model and can be used without modification with lpadmin -m. All cancel
models reside in directory
/usr/lib/lp/cmodel and can be used without modification with lpad-
min -ocm
. All status models reside in directory /usr/lib/lp/smodel and can be used without
modification with
lpadmin -osm. Models should have 644 permission if owned by lp and bin, or 664
permission if owned by bin and bin. Model file names must not exceed 14 characters. Alternatively, LP
administrators can modify copies of models then use lpadmin -m to associate them with printers.
The LP model interface program does the actual printing on the device that is currently associated with the
printer. The LP spooler sets standard input to /dev/null and standard output and standard error out-
put to the device specified in the -v option of lpadmin. The interface program is then invoked for
printer P from the directory /etc/lp as follows:
interface/ P id user title copies options file ...
where arguments are as follows:
450 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: February 2007