Operating System - HP-UX
1845923 Members
3745 Online
110250 Solutions
New Discussion

lpstat command ... printers.

 
Manuales
Super Advisor

lpstat command ... printers.

can I get printer ports assigned to each queue?
how can i do that?
Please let me know, thanks ...
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: lpstat command ... printers.

If by port you mean mean the parallel or serial port device nodes associated with each queue then:
lpstat -v
will do it. However, for network/remote printers the device will be /dev/null and now "port" means a tcp port. For remote printers (those using the LPR/LPD protocol), the lpstat -v will report a line "remote to xxxx on yyyyy" where xxxx is the queue on the remote host yyyyy and the port will always be 515 For Network printer (ie, those using HP's JetDirect protocol) the port will almost always be 9100 but sometimes 9101,9102, or 9103. You have to examine the interface file for the printer to know for sure.
If it ain't broke, I can fix that.
skt_skt
Honored Contributor

Re: lpstat command ... printers.

remote printer uses 515 and network one uses 9100.

Please cross check.

try
telnet IP 515
telnet IP 9100