setnetlp - configure the LP spooling system for lpd or ftp network
/usr/sbin/setnetlp -p printer [options]
/usr/sbin/setnetlp -x destination
setnetlp configures LP spooling systems to describe printers supported
lpd protocol or accepted ftp output requesting, and those are
connected with network by TCP/IP. It is used to add and remove
destinations, change configuration of destination if the destination
exists. setnetlp is shell procedure, and invokes lpadmin(1M) command
from the procedure.
Exactly one of the -p, -x options or no options must be present for
every legal invocation of setnetlp.
If setnetlp is invoked with no option, it's executed interactively.
For datails of setnetlp interactive operations, refer to the online
-p printer Names a printer to which all of the options below
refer. If printer does not exist, it will be
-x destination Removes destination destination from the LP
system. No other options are allowed with -x.
The following options are only useful with -p and can appear in any
-ftp To accept ftp output requesting instead of lpd
protocol and this configure LP spooling system.
Or, by default, it would configure for lpd
protocol. Some special interface files should be
available for this option to configure by this
-orm machine The name of the remote machine or IP address of
the network printer is machine. This option is
not allowed to use with -ftp option.
-orp printer The name of the printer to use on the network
printer is printer.
-om model Selects a model interface program for printer.
model is one of the model interface names supplied
with the LP software ( see lpsched(1M) Models).
Hewlett-Packard Company - 1 - HP-UX 11i : Oct 2000
Assuming a LIPS printer supported lpd protocol on a network as remote
printer host name lphost and remote printer name lipslp the command:
/usr/sbin/setnetlp -p netlp -orm lphost -orp lipslp -om LIPS3
causes the spool system to use the local printer netlp and the local
model file LIPS3.
Assuming a LPS system contoroler supported ftp output requesting on a
network as remote printer hostname lps1 and remote printer name sysp
/usr/sbin/setnetlp -p ftpc -ftp lps1 -orp sysp -om LPS
causes the spool system to use the local printer ftpc and the local
model file LPS
When installing printers on a diskless cluster, can not install from
diskless server. setnetlp should be executed on each cluster machine
to configure spooling system by setnetlp on cluster machine.
Hewlett-Packard Company - 2 - HP-UX 11i : Oct 2000