Operating System - HP-UX
1825694 Members
3256 Online
109686 Solutions
New Discussion

How to install a jetdirect printer without sam

 
Pepe Jimenez Muñoz
Frequent Advisor

How to install a jetdirect printer without sam

Hi,

Can I install a jetdirect printer using a shell script ?

THANKS
ppviso
7 REPLIES 7
S.K. Chan
Honored Contributor

Re: How to install a jetdirect printer without sam

If you have Jetdirect Printer Installer you can use "addqueue" command. First check if you got addqueue ..
# ll /opt/hpnp/bin/addqueue
If it exists, all you need is create a file (call it "prtlist") which has the list of the printers like so .. (1st field is IP address of printer, 2nd field is the printer queue name).
123.111.10.10 laser1
123.111.10.15 plotter1
.....
Then create your script (call it "addprt")

#!/usr/bin/sh
exec 0while read -r IP PRINTER
do
/opt/hpnp/bin/addqueue -h $IP -q $PRINTER
done

Simply run the script.
# ./addprt
I would suggest try running "addqueue" manually first with just one printer and if it's fine, proceed with the script.
Ernesto Cappello
Trusted Contributor

Re: How to install a jetdirect printer without sam

Hi pepe.
Maybe you must download this self-extractor file,"hpwebjet_hpux11.selfx", for Unix V.11.0 to install "HP Web Jetadmin" from this site:

http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpj07059&locale=en_US&docId=80027

I've installed HP Web Jetadmin on my server and for further information looks my attachment.
Regards
Ernesto
Ceesjan van Hattum
Esteemed Contributor

Re: How to install a jetdirect printer without sam

Use jetadmin (man jetadmin)
or look at:
This is simply done with the command:
/usr/hpnp/bin/addqueue -i TYPE -q QUEUE_NAME -h HOST_ADDRESS
The TYPE option comes from the list of printer types given by jetadmin but is not needed.
To remove a printer you use the related: removequeue
Thnks to: http://home.cox.rr.com/junix/hpux.html#29
Pepe Jimenez Muñoz
Frequent Advisor

Re: How to install a jetdirect printer without sam

Sorry,

my system is a HP-UX 10.20

When I run the command :

/opt/hpnp/bin/addqueue -h 10.72.22.29 -q dirce03

I get the message:

Could not create the queue

THANKS
ppviso
Nick Wickens
Respected Contributor

Re: How to install a jetdirect printer without sam

Hi I had a problem using addqueue with an external Jetdirect module connected to a deskjet on one of my printers but the printer installed fine using SAM.

All of the other HP lasers on my network with internal jet direct cards worked fine with addqueue so I did'nt investigate further.

May be of no help to you other than suggestion try an other printer first.

Hats ? We don't need no stinkin' hats !!
Brian Watkins
Frequent Advisor

Re: How to install a jetdirect printer without sam

On a 10.20 system, you can also try running /opt/hpnp/bin/jetadmin

From there, you'll get a text-menu style interface for adding printers, modifying queues, printer and JetAdmin/JetDirect status, etc.

I'd post a screen capture, but I'm not sure how well it would translate. :)

I'm assuming that you have the software CD that came with the JetDirect and/or printer. They used to bundle the JetAdmin software for HP-UX on the JetDirect CD-ROMs, so if you don't have JetAdmin installed on you HP-UX host, you can get it from the CD.
Sandip Ghosh
Honored Contributor

Re: How to install a jetdirect printer without sam

What is the version of your jetadmin? The latest version is E.10.18. You can download this ver free of cost if you do not have.

If this is your version then
#hppi
should allow you to create the new printer. addqueue also should work. for details look at man addqueue.

Sandip
Good Luck!!!