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)
-ocmremcancel Specifies that the local model remcancel is used to cancel requests to remote
printers.
-ormmachine The name of the remote machine is machine.
-orpprinter The name of the printer to use on the remote machine is printer.
-orc Restricts users to canceling only their own requests. Default is to not restrict the
cancel command.
-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 charac-
ters A-Z, a-z
, 0-9 and _ (underscore).
Models
Model interface programs are supplied with the
LP software. They are shell procedures, C programs, or
other executable programs that interface between lpsched(1M) 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:
id request id returned by lp(1).
user login name of the user who made the request.
title optional title specified with the -t option of lp(1).
copies number of copies to be printed.
options blank-separated list of class-dependent or printer-dependent options specified with the
-o option of lp(1). Options from a BSD system have the character sequence BSD
attached to the beginning of the option (for example, BSDl).
file full pathname of the file to be printed.
Given the command line arguments and the output directed to the device, interface programs can format
their output in any way they choose.
When printing is completed, it is the responsibility of the interface program to exit with a code indicative of
the success of the print job. Only return values of 0 indicating that the job completed successfully, or
values of positive 1 through 127 indicating that some error was encountered that does not affect future
print jobs should be used. Negative values and positive values greater than 127 are reserved for system
use and should not be used by interface programs. lpsched(1M) notifies users by mail when there is an
error in printing the request. If problems are detected that are likely to affect future print jobs, the inter-
face program should disable the printer so that other pending print requests are not lost.
The cancel and status model interface programs perform the actual communication with the remote system
to cancel requests or get the status of requests. See rcancel(1M) and rlpstat(1M) for command line argu-
ments.
HP-UX Release 11i: December 2000 2 Section 1M417
___
___