Operating System - HP-UX
1844525 Members
4044 Online
110233 Solutions
New Discussion

How to find a print server for a print queue

 
SOLVED
Go to solution
M Zubair_1
Advisor

How to find a print server for a print queue

I am running HP-UX 10.20 ans would like to know if there is a way to find out the name of print server for a print queue. I tried using SAM and "lpstst -p" command but neither gives me that info.
Please advice.
Thx
4 REPLIES 4
Jeff Schussele
Honored Contributor

Re: How to find a print server for a print queue

Hi Mohammad,

It's contained in the /var/spool/lp/pstatus file.
This is a binary file so you'll have to use the strings command on it.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steve Steel
Honored Contributor

Re: How to find a print server for a print queue

Hi

Otherwise try using the sam option to save your printer config and look in

pg /var/sam/lp/lpinfo


belgo138:remote:belgo138 on ruby.belgium.hp.com
belgo161:remote:belgo161 on ruby.belgium.hp.com


Ascii info

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
RAC_1
Honored Contributor

Re: How to find a print server for a print queue

If the printer are added with Jetdirect, the interface scripts will also have the ip_address.

Check /etc/lp/interface/print_queue

Anil
There is no substitute to HARDWORK
Jeff Schussele
Honored Contributor
Solution

Re: How to find a print server for a print queue

I should add that

lpstat -v

will also give you the print server name or IP depending on how it was added.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!