Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Configuring a Workgroup
Configuring Printers for a Workgroup
Chapter 4 437
a. Edit /etc/services (on remote system), and if necessary,
uncomment the line beginning with printer by removing the #.
b. Ensure no systems are restricted from access by
/var/adm/inetd.sec.
c. Make sure rlpdaemon is running.
Using HP-UX
Commands
Step 1. Ensure that you have superuser capabilities.
Step 2. Stop the LP spooler:
/usr/sbin/lpshut
For more information, see “Stopping and Restarting the LP Spooler” on
page 703.
Step 3. Add the remote printer.
If the remote printer is on an HP-UX system, enter:
lpadmin -p
local_printer
-v /dev/null -mrmodel \
-orm
remote_machine
-orp
remote_dest
-ocmrcmodel \
-osmrsmodel
If the remote printer is
not
on an HP-UX system, enter:
lpadmin -p
local_printer
-v /dev/null -mrmodel \
-orm
remote_machine
-orp
remote_dest
-ocmrcmodel \
-osmrsmodel -ob3
See lpadmin (1M) for details on the options. Also see “Printer Model
Files” on page 109 for information to provide to the -m option.
Step 4. Allow print requests to be accepted for the newly added remote printer.
For example:
/usr/sbin/accept
local_printer
Step 5. If the printer being added will be the default printer, execute the
following:
/usr/sbin/lpadmin -d
local_printer