setnetlp(1M) setnetlp(1M)
NAME [Toc] [Back]
setnetlp - configure the LP spooling system for lpd or ftp network
printers
SYNOPSIS [Toc] [Back]
/usr/sbin/setnetlp
/usr/sbin/setnetlp -p printer [options]
/usr/sbin/setnetlp -x destination
DESCRIPTION [Toc] [Back]
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.
-p printer Names a printer to which all of the options below
refer. If printer does not exist, it will be
created.
-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
order.
-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
option.
-orm machine The name of the remote machine or IP address of
the network printer is machine.
-orp printer The name of the printer to use on the network
printer is printer. This option is not allowed to
use with -ftp option.
-om model Selects a model interface program for printer.
model is one of the model interface names supplied
with the LP software ( see lpadmin(1M) Models).
Hewlett-Packard Company - 1 - HP-UX 11i Version 2.0 : Jul 2003
setnetlp(1M) setnetlp(1M)
EXAMPLES [Toc] [Back]
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 the command:
/usr/sbin/setnetlp -ftp -p ftpc -orm lps1 -om LPS
causes the spool system to use the local printer ftpc and the local
model file LPS
WARNINGS [Toc] [Back]
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.
FILES [Toc] [Back]
/var/spool/lp/*
/usr/lib/lp/*
SEE ALSO [Toc] [Back]
lpadmin(1M)
Hewlett-Packard Company - 2 - HP-UX 11i Version 2.0 : Jul 2003 [ Back ] |