Adding Remote Printers Without Sam on HP-UX 9 Systems

Introduction / Philosophy

You can use sam, but for speed and especially in remsh wrapper scripts doing the same action to multiple systems, manually installing printers is a lot easier.

Note there is a script for adding a large number of printers to large number of hosts. It is located at:

host: te16
directory: /root/bin
file: install_some_printers_on_some_hosts

Procedure

Note that the print server must be disabled for this to work. The command sequence is given below.

# /usr/lib/lpshut
sheduler stopped
/usr/sbin/lpadmin -p<local_printer_name> -v/dev/null -mrmodel -ocmrcmodel -osmrsmodel -ob3 -orm<printer_server> -orp<remote_printer_name>
# /usr/lib/lpsched
scheduler is running
# /usr/lib/accept <local_printer_name>
destination "<local_printer_name>" now accepting requests
# /usr/bin/enable <local_printer_name>
printer "<local_printer_name>" now enabled
#

$Header: /home/ct/serco/ahuxley/docs/html/serco-faq/new/network-services/printing/RCS/adding-printer-hpux9.html,v 1.2 1997/08/14 10:02:09 ahuxley Exp ahuxley $