23
4
Test the configuration. At the command line, type:
ping
host
lp -d
printer file
where:
host
is the name of the NetportExpress print server from step 2
above.
printer
is the name of the printer queue.
file
is the name of a file.
To set up a workstation to print with lpr/lpd on HP-UX
1
Log in to your HP-UX workstation as root.
2
In the /etc/hosts file, add a unique host name and IP address for
each NetportExpress print server you want to configure.
3
Set up the print queue and remote printer.
4
Type:
lpshut
5
Type on one line:
lpadmin -p
printer -v/dev/null -ormhost orpport
-ob3
where
printer
is the print queue on the local system.
host
is the NetportExpress print server.
port
defines the remote printer attached to the NetportExpress
print server. It can be
LPT1_PASSTHRU or LPT1_TEXT (for parallel port 1 or the
internal card)
LPT2_PASSTHRU or LPT2_TEXT (for parallel port 2)
COM1_PASSTHRU or COM1_TEXT (for the serial port)
Note: Use PASSTHRU for PCL, PostScript, or application files
and TEXT for standard UNIX text files.
6
Type:
accept
printer
enable
printer
lpsched
where
printer
is the name of the printer queue on the local system.