Operating System - HP-UX
1834447 Members
2319 Online
110067 Solutions
New Discussion

Help w/ installing printers (other than using SAM or Jetadmin).

 
SOLVED
Go to solution
scott vick
Advisor

Help w/ installing printers (other than using SAM or Jetadmin).

I have a large number of printers that need to be added to about 18 HP-UX 11.0 servers. Does anybody know a way (other than SAM or Jetadmin) to add all of the printers at one time? Jetadmin and SAM are both too slow and tedious.
Too ugly to live, too weird to die, too stupid to know the difference.
3 REPLIES 3
S.K. Chan
Honored Contributor

Re: Help w/ installing printers (other than using SAM or Jetadmin).

This is the "command line" way of adding remote printers. I suppose you can write a simple script to go through all your printers in a for loop and ran the script on the server you want the printer to be configured.

1. Shut down the printer spooler
# /usr/sbin/lpshut
2. Add a remote printer with lpadmin command.
# lpadmin -premlaser -v/dev/null -mrmodel -ocmrcmodel -osmrsmodel -ormpsd1 -orplaser

In the command lpadmin you must specify the following options:
-p Name of the remote printer in the local spooler
-v No serial/parallel device file for the printer is needed
-m Model script that runs the command /usr/sbin/rlp [10.x]
-ocm What should be done if a job is to be cancelled
=> contains /usr/sbin/rcancel [10.x]
-osm What is to be done on the command lpstat
=> contains /usr/sbin/rlpstat [10.x]
-orm Name of remote print server
-orp Name of printer on the remote print server

Additional options from lpadmin under:
# man lpadmin

3. Activate printer at the spooler input
# /usr/sbin/accept remlaser

4. Activate printer at the spooler output
# /usr/bin/enable remlaser

5. Start spooler
# /usr/sbin/lpsched

6. The rlpdaemon on the printer server on which the printer is configured locally, must be active!
Marco Paganini
Respected Contributor

Re: Help w/ installing printers (other than using SAM or Jetadmin).

Hello Scott,

Try lpadmin! You can create printers using the command line.

Then, make 17 hosts equivalent to a 'master' host and use a loop with remsh to do the creation.

For more details, consult the lpadmin man page.

Regards,
Paga
Keeping alive, until I die.
Deshpande Prashant
Honored Contributor
Solution

Re: Help w/ installing printers (other than using SAM or Jetadmin).

HI
If you have jetadmin software installed on all machines command "addqueue" will help you creating printerqueues connected with jetdirect interface cards.

#/opt/hpnp/bin/addqueue -q -h

Thanks.
Prashant.
Take it as it comes.