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

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/!!!intro.1m
________________________________________________________________
___ ___
l
lpadmin(1M) lpadmin(1M)
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If LANG is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG.
If any internationalization variable contains an invalid setting, lpadmin behaves as if all internationaliza-
tion variables are set to "C" (see environ(5)).
EXAMPLES
Assuming an existing Hewlett-Packard HP2934A line printer named lp1, it will use the hp2934a model
interface through /dev/lp after the command:
/usr/sbin/lpadmin -plp1 -mhp2934a -v/dev/lp
Assuming a printer lp on a remote system system2, the command:
/usr/sbin/lpadmin -plp3 -v/dev/null -mrmodel -ocmrcmodel -osmrsmodel
-ob3 -ormsystem2 -orplp -v/dev/null
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 three-digit sequence numbers, the remote system name
system2 and the remote printer
lp 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 (though 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
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).
Section 1M418 3 HP-UX Release 11i: December 2000
___
___