Operating System - HP-UX
1823064 Members
3155 Online
109645 Solutions
New Discussion юеВ

How to figure out Jet Direct port after configuration of printer?

 
SOLVED
Go to solution
Debbie Fleith
Regular Advisor

How to figure out Jet Direct port after configuration of printer?

I have several dot matrix printers attached to HP Jet Direct multi-port servers configured on an HP-UX 11.11 server.

When configuring them, I had to select which port of the multi-port jet direct they were attached to.

What file(s) contains this port info now that I need that info and don't see it in lpstat results? I also didn't see a reference to the port in /etc/lp/interface files.
8 REPLIES 8
RAC_1
Honored Contributor

Re: How to figure out Jet Direct port after configuration of printer?

hpnpadmin -v "ip_adress_of_printer"

Does it show anything?? Also, through SAM, choose printer and details.
There is no substitute to HARDWORK
Debbie Fleith
Regular Advisor

Re: How to figure out Jet Direct port after configuration of printer?

hpnpadmin does not show the port

Where in SAM can I see printer details? I can't find it.
Rick Garland
Honored Contributor

Re: How to figure out Jet Direct port after configuration of printer?

printer ports are typically 515 and 9100

Can use 'lsof' to determine.
Debbie Fleith
Regular Advisor

Re: How to figure out Jet Direct port after configuration of printer?

Thanks for your replies, but I'm still stuck.

Jet Direct printer ports are only 9100 if they are connected to Port 1 on a multi-port jet direct. If they are connected to port 2, it would be 9101, Port 3 is 9102.

lsof isn't available on my system.

Still looking for a solution if anyone knows.
Rick Garland
Honored Contributor

Re: How to figure out Jet Direct port after configuration of printer?

If there are no modifications to your port services, then you are correct in the 9100, 9101, 9102, etc.

To be absolutely certain you need to investigate your system.

The utility 'lsof' is a very good utility for showing listings on ports. This tool is available from the software porting archive (I use http://gatekeep.cs.utah.edu).

Debbie Fleith
Regular Advisor

Re: How to figure out Jet Direct port after configuration of printer?

Thanks for the input.

Does anyone know any other way to get this info without having to install lsof? Seems as if it should be in an lp config file somewhere since the information was supplied at the time printers were configured.
Rick Garland
Honored Contributor

Re: How to figure out Jet Direct port after configuration of printer?

telnet to the IP address of the JetDirect.

Depending on the age of the hardware;

The newer printers (example, laserjet 4200) provide a wealth of info. Input the '/' character and lots of info will appear. In this info will be the IP address, the gateway, TCP/IP options, SNMP info, firmware, MAC address, etc. Most importantly will be the port info you are looking for.

On the older printers not as much info is provided. Firmware and MAC address you can obtain from this method but the rest of the info you can obtain from the JetAdmin menu.

Bill Hassell
Honored Contributor
Solution

Re: How to figure out Jet Direct port after configuration of printer?

The port in this case refers to one of 3 possible connectors on a JetDirect EX box, not a network port as such. When the interface script runs hpnpf (the program that does all the network communication), the -p option is specified in the interface script. So, just grep the variable xPORT from all the scripts:

grep xPORT /etc/lp/interface/*

That will show you which printers have a port configured (xPORT= means the default port 9100, the other ports will be explicitly coded). The numbers 9100, 9101 and 9102 are connectors 1 2 and 3 on the JetDirect box. These are also the network communication port numbers.


Bill Hassell, sysadmin