lpadmin

–ifile

Copy the named file to be the new printer model file for the printer.

–mmodel

Copy the named printer model file to be the new printer model file for the printer.

 

The argument must be an existing model file name within the

 

/usr/spool/lp/model/ directory. List that directory to see the model files

 

available. For example, –mpcl" selects printer model file

 

/usr/spool/lp/model/pcl ".

–rclass

Remove the printer from the named class. If the printer was the last member of

 

that class, the class is removed.

–vlu

Set the LU number of the printer device (0 to 255). This value is ignored for

 

remote printers. If not specified, the LU is 0.

The following setopts are used for remote printers and network peripherals.

–ormhost Identify the name of the remote machine where a remote printer resides. For network peripherals, such as those on JetDirect cards, this is the name of the network peripheral. In general, this is the name in the /etc/hosts file that may be mapped to the IP address of the remote host or network peripheral.

–orpprinter Identify the name of a remote printer as known on the remote machine, that is, the name by which the printer is known on the remote host. This name may be a class name on the remote host. The name will be converted to all lowercase characters, and may be up to 14 characters long. If not specified, the local printer name will also be used as the remote name. For network peripherals, no value for this option is required because this name is not used in this case. However, entering a meaningful name that adds to the information shown by the lpstat -v option report is suggested. For example, entering –orpjetdirect" for a network peripheral on a JetDirect card causes •lpstat –v" to print:

device for np: remote to jetdirect on npname

Only one of the -e, -i, or -m options may be specified in a runstring to select the appropriate printer model file. If a new printer is added without specifying one of these options, a default model name will be used. For local printers the default is generic; for remote printers the default is rhpux.

Once a new destination, either a printer or a class, is added to the spool system, the accept program must be run to allow requests to be entered for that destination. A new printer must also be enabled for printing by running the enable program. Initially, a new destination will reject attempts to enter a print request for that destination with reason •new destination". A new printer that has not yet been enabled will not print requests queued for it; lpstat will report that the printer is disabled for reason •new printer". The printer should only be enabled once the physical printer is connected and ready to print.

You must be a superuser to run lpadmin.

The lpadmin and lpfence programs are identical executables. Only one of these program files needs to be a type 6 executable; the other may be, for example, a symbolic link to the type 6 file or a prototype ID segment for the type 6 file.

LP Spool System 219