Operating System - HP-UX
1832871 Members
3568 Online
110048 Solutions
New Discussion

Setting up a printer on a hp server

 
SOLVED
Go to solution
Ray Bell
Regular Advisor

Setting up a printer on a hp server

I have the jetadmin software installing on the printer and I can ping the printer but when I try to set the printer up via SAM it complaining that it not able to communicated to the printer. So I want to install it from the command line. Do soemone have a cook book on adding the printer. The printer name is ana0005 an d a laser jet 4050
3 REPLIES 3
Bill Hassell
Honored Contributor
Solution

Re: Setting up a printer on a hp server

Adding a printer that is not connected with a parallel or serial cable is confusing because there are 3 very different ways to connect a printer on a LAN. The first is a printer that is run by a server such as Windows or Linux or some other system. SAM calls this a "Remote Printer" and you must use this choice to add it. The second is a printer connected to the LAN with a non-HP NIC. These are also "Remote Printers" and added in SAM the same way. They are more complicated because you need an internal printer name which is often missing in the NIC card's documentation.

The third choice is an HP NIC card which is known as a JetDirect card. This is called a "Network Printer" and SAM will call a program called hppi (or jetadmin if you have obsolete software). You install JetDirect printers using the addqueue command, but first check that the printer is working using the hpnpadmin command:

cd /opt/hpnpl/bin
./hpnpadmin -v 12.34.56.78

If you do not have /opt/hpnpl/bin, see if /opt/hpnp/bin exists. If it does, you can cd to that directory as the command exists in that obsolete software directory.

Now pay attention to the first lines of hpnpadmin -- it will state that the printer is an HP JetDirect network printer or that it is not. If not, then the NIC must be a non-HP card or non-functional. Once the printer responds to the hpnpadmin command, you can add it with the addqueue command:

./addqueue -h 12.34.56.78 -q ana0005

The 2 commands are essentially what SAM uses to add the printer.


Bill Hassell, sysadmin
Raj D.
Honored Contributor

Re: Setting up a printer on a hp server

Ray,

You can use addqueue or lpadmin to add the printer :

To use addqueu:
----------------
Syn: addqueue -i printerid -h hostname -q queuename

printer id can be found from # addqueue -l command

example:
# addqueue -i 257 -h BU10-jet-laser -q BU10

BU10-jet-laser should carry the ip in /etc/hosts or can be resolve by dns.
-----------------


Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Ray Bell
Regular Advisor

Re: Setting up a printer on a hp server

I will do the solution you gave me...