Operating System - HP-UX
1753855 Members
7518 Online
108808 Solutions
New Discussion

Re: what hppi command can i use to determine the port # a printer is attached to?

 
Bob_16
Frequent Advisor

what hppi command can i use to determine the port # a printer is attached to?

Is there a command-line command i can use to determine the port # a printer is attached to on a multi-port jetdirect print server?
1 REPLY 1
Bill Hassell
Honored Contributor

Re: what hppi command can i use to determine the port # a printer is attached to?

JetDirect uses the proprietary ports 9100 and higher for communication. port 0 is 9100, port 1 is 9101 and port 2 is 9102. hppi doesn't have any tools to report on the port that is in use for a specific job except when adding or modifying a printer queue. Check the printjob hierarchy and you should see hpnpf as the lowest level child process which talks to the printer. There will be an option -p for the port (if specified).

The port number is hardcoded into the generic hpnp script for each JetDirect printer so you can search for non-zero ports by:

grep xPORT /etc/lp/interface/*

Port 9100 is the default (xPORT=) and other ports will have the port number (ie, xPORT=9101) stored in the script.


Bill Hassell, sysadmin