HP-UX Reference (11i v2 07/12) - 1M System Administration Commands A-M (vol 3)
l
lpadmin(1M) lpadmin(1M)
/usr/sbin/lpadmin -plp3 -v/dev/null -mrmodel -ocmrcmodel \
-osmrsmodel -ormsystem2 -orplp
causes the spool system to use the local line printer
lp3 and the model rmodel. The spool system also
uses the model
rcmodel to cancel remote requests and
rsmodel to get status from system2.In
addition, the remote system name
system2 and the remote printer
lp are used.
The following command performs the same operation as above.
/usr/sbin/lpadmin -plp3 -v/dev/null -mrmodel \
-ormsystem2 -orplp
Here the default remote cancel model rcmodel and the default remote status model
rsmodel are used.
WARNINGS
When installing remote printers, use the option
-ocmrcmodel
instead of
-oci/usr/sbin/rcancel
to specify the method used to cancel remote requests. The option
-osmrsmodel should be used instead of
-osi/usr/sbin/rlpstat
to specify the method used for
displaying remote status.
classes must not include remote printers. HP-UX systems do not have the ability to distribute print jobs in
this way. Printing to a class of printers on a remote system (
systemB for example) must be accomplished
by creating the class on the remote system, then identifying that class by using a command resembling the
following (although you might have to change some of the specific values shown in the example):
lpadmin -plocal_name -ormsystemB -orpsystemB_class_name \
-v /dev/null -mrmodel -ocmrcmodel -osmrsmodel
Some products dependent on the lp spooling system may not support printer and class names greater than
14 characters. The behavior of these products is unspecified when Long Destination Name support is
enabled.
FILES
/var/spool/lp/*
/var/adm/lp/*
/etc/lp/*
/usr/lib/lp/*
SEE ALSO
enable(1), lp(1), lpstat(1), nroff(1), accept(1M), lpana(1M), lpsched(1M), rcancel(1M), rlp(1M),
rlpdaemon(1M), rlpstat(1M).
510 Hewlett-Packard Company − 4 − HP-UX 11i Version 2: December 2007 Update