Operating System - HP-UX
1833029 Members
2344 Online
110049 Solutions
New Discussion

Copying JetDirect config for a single printer

 
Matt Hearn
Regular Advisor

Copying JetDirect config for a single printer

Hey all! We have two servers that are running, among other things, several dozen printers connected via JetDirect. These boxes are older than dirt; we don't use JetDirect anymore for anything else, so I have no idea how to configure it at all.

We have discovered (after a failover) that one server has a certain printer configured, but the other server does not, and I need to get it configured. I tried using SAM to "add a network printer," but it took me through a bunch of steps that meant nothing to me, and changed nothing. I tried viewing the config on the server with the working printer, but can't find a complete config setup (with model, options, etc.). Is there any way to copy this information from one server to another? I tried to copy the interface file and a copy of the entry in model.orig, but that doesn't actually add the printer, and probably confuses things more.

Thanks!
5 REPLIES 5
Bill Hassell
Honored Contributor

Re: Copying JetDirect config for a single printer

There is a simple command called addqueue that will configure a JetDirect printer. If these boxes are older than dirt (meaning they are not Y2K compliant), then the directory for the addqueue (and jetadmin) commands is: /usr/hpnp/bin, otherwise, the directory for addqueue (and hppi) is /opt/hpnpl/bin. You can configure a dozen printers in just a few seconds with addqueue. All you need is the IP address of the printer and the name you'd like to use for the printer:

cd /opt/hpnp/bin
./addqueue -h 12.34.56.78 -q printer1
./addqueue -h 12.34.56.77 -q printer2
./addqueue -h 12.34.56.76 -q printer3
...

and so on. Just put in the IP address for each printer and pick a local name for the queue in your machine.


Bill Hassell, sysadmin
Bill Hassell
Honored Contributor

Re: Copying JetDirect config for a single printer

One other note: if the printers are older than dirt (ie, LaserJet II or III or printers that can't answer back with their model number), you'll need to specify a printer script to use. addqueue -l shows you the models and ID numbers. The man page for addqueue will show you the other options that can be used with each printer.


Bill Hassell, sysadmin
Matt Hearn
Regular Advisor

Re: Copying JetDirect config for a single printer

Thanks for the replies! Unfortunately, our box doesn't seem to have the addqueue function anywhere:

box1:/opt/hpnp/bin
(root)# ll
total 1944
-rwxr-xr-x 1 bin bin 16433 Apr 29 1996 fsize
-rwxr-xr-x 1 bin bin 20568 Apr 29 1996 hpnpadmin
-rwxr-xr-x 1 bin bin 24702 Apr 29 1996 hpnpadmin1
-rwx------ 1 root bin 24666 Apr 29 1996 hpnpd
-rwx------ 1 root bin 16433 Apr 29 1996 hpnpdr
-rwxr-xr-x 1 bin bin 45223 Apr 29 1996 hpnpf
-rwxr-xr-x 1 bin bin 16439 Apr 29 1996 hpnps
-rwxr-xr-x 1 bin bin 24687 Apr 29 1996 hpnptyd
-rwxr-xr-x 1 bin bin 16438 Apr 29 1996 ip2long
-rwxr-xr-x 1 bin bin 16445 Apr 29 1996 ishpnp
lrwxr-xr-x 1 root sys 25 Mar 17 1997 jetadmin -> /opt/hpnp//admin/jetadmin
-rwxr-xr-x 1 bin bin 396100 Apr 29 1996 jetprint
-rwxr-xr-x 1 bin bin 16438 Apr 29 1996 lshpnp
-rwxr-xr-x 1 bin bin 16446 Apr 29 1996 psbr
-rwxr-xr-x 1 bin bin 20574 Apr 29 1996 psbsm
-rwx------ 1 root bin 28858 Apr 29 1996 rfp
-rwxr-xr-x 1 bin bin 172594 Apr 29 1996 xjdm
-rwsr-sr-x 1 root bin 90525 Apr 29 1996 xjjm
-rwxr-xr-x 1 bin bin 16437 Apr 29 1996 xjmore

I did a find for addqueue on the entire box and it didn't come up at all. Any thoughts?

Thanks!
Matt Hearn
Regular Advisor

Re: Copying JetDirect config for a single printer

Thanks for the replies! Unfortunately, our box doesn't seem to have the addqueue function anywhere:box1:/opt/hpnp/bin(root)# lltotal 1944-rwxr-xr-x 1 bin bin 16433 Apr 29 1996 fsize-rwxr-xr-x 1 bin bin 20568 Apr 29 1996 hpnpadmin-rwxr-xr-x 1 bin bin 24702 Apr 29 1996 hpnpadmin1-rwx------ 1 root bin 24666 Apr 29 1996 hpnpd-rwx------ 1 root bin 16433 Apr 29 1996 hpnpdr-rwxr-xr-x 1 bin bin 45223 Apr 29 1996 hpnpf-rwxr-xr-x 1 bin bin 16439 Apr 29 1996 hpnps-rwxr-xr-x 1 bin bin 24687 Apr 29 1996 hpnptyd-rwxr-xr-x 1 bin bin 16438 Apr 29 1996 ip2long-rwxr-xr-x 1 bin bin 16445 Apr 29 1996 ishpnplrwxr-xr-x 1 root sys 25 Mar 17 1997 jetadmin -> /opt/hpnp//admin/jetadmin-rwxr-xr-x 1 bin bin 396100 Apr 29 1996 jetprint-rwxr-xr-x 1 bin bin 16438 Apr 29 1996 lshpnp-rwxr-xr-x 1 bin bin 16446 Apr 29 1996 psbr-rwxr-xr-x 1 bin bin 20574 Apr 29 1996 psbsm-rwx------ 1 root bin 28858 Apr 29 1996 rfp-rwxr-xr-x 1 bin bin 172594 Apr 29 1996 xjdm-rwsr-sr-x 1 root bin 90525 Apr 29 1996 xjjm-rwxr-xr-x 1 bin bin 16437 Apr 29 1996 xjmoreI did a find for addqueue on the entire box and it didn't come up at all. Any thoughts?Thanks!
Bill Hassell
Honored Contributor

Re: Copying JetDirect config for a single printer

Wow, that version of JetAdmin 10 years old!!!! The JetAdmin package was obsolete in 1999 due to Y2K issues and was replaced by HPPI (HP Printer Installer). Depending on the version of HP-UX, you can download the latest version of HPPI from:

10.20
http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?locale=en_US&pnameOID=18923&taskId=135&prodTypeId=18972&prodSeriesId=27350&swEnvOID=6

11.xx
http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?locale=en_US&pnameOID=18922&taskId=135&prodTypeId=18972&prodSeriesId=27349〈=en&cc=us

NOTE: HP-UX 10.20 has been obsolete and unsupported since 2001.

Now if your machine is running 10.01 or 10.10 or earlier, HPPI won't work so you can get the last version of JetAdmin from:

ftp://contrib:9unsupp8@hprc.external.hp.com/jetadmin/


Bill Hassell, sysadmin