HP-UX System Administrator's Guide: Routine Management Tasks
lpadmin -plocal_printer-v /dev/null -mrmodel \
-ormremote_machine -orpremote_dest-ocmrcmodel \
-osmrsmodel -ob3
See lpadmin(1M) for details on the options. Also see HP-UX System Administrator’s
Guide: Overview for information to provide to the -m option.
4. Allow print requests to be accepted for the newly added remote printer. For
example:
/usr/sbin/accept local_printer
5. If the printer being added will be the default printer, execute the following:
/usr/sbin/lpadmin -dlocal_printer
6. Enable the newly added printer to process print requests. For example:
/usr/bin/enable local_printer
7. Restart the LP spooler to process print requests.
/usr/sbin/lpsched
8. Send a sample print job to the printer.
• If it prints, the remote printing daemon (rlpdaemon) is active on the system
and your task is completed.
• If your print job does not print, the remote printing daemon (rlpdaemon) is
not active yet on the remote machine. Activate the rlpdaemon on the host
system where the remote printer resides, as follows in the next step.
9. Examine the file /etc/inetd.conf and look for the following line:
# printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i
If a # sign appears at the beginning of the line, the rlpdaemon line is commented
out, preventing the printer from printing remotely.
Edit the file /etc/inetd.conf to remove the # sign. Save the file.
10. Check /etc/services and look for:
# printer 515/tcp spooler #remote print spooling
If a # sign appears at the beginning of the line, the service is commented out,
preventing the remote print spooler from serving the printer.
Edit the file to remove the # sign in the first column. Save the file.
11. Reconfigure the Internet daemon inetd, forcing it to reread the
/etc/inetd.conf file. Invoke the following command:
/usr/sbin/inetd -c
Also, check entries in /var/adm/inetd.sec that restrict which systems can send
remote print requests.
Configuring Printers to Use the LP Spooler 173