1843696 Members
4814 Online
110223 Solutions
New Discussion

Printers, lpstat.

 
Manuales
Super Advisor

Printers, lpstat.

Hi ..
I have a list of printers for being audited, i mean i need to verify the following:
- Number of jobs
i can do that lpstat $a | grep priority | wc -l
- Ip address
i can get it if the printer responds
- users
lpstat $a | grep priority | awk '{ print $2 }'

Also i need to verify if i can reach to the printer with HP WebJetadmin and also through http (link).
I'd like to know if i can do that from unix, i mean, if i run lpstat and it is showed
/usr/sbin/rlpstat: Connection to PRINTER1.PATITO.COM is down i understand that i can not reach the ip address of the printer, can i know with this one that i could not reach the printer through WebJetadmin using the browser? and what about http? is the same ....?
I mean, i want to use a script that reports this one withouth going to the browser and get the error, etc, there are 3000 printers for being verified and i need to get the answer quick through the script.
I have built a script, buth i need to avoid lost time going to browser and go to WebJetadmin and http, could you please let me know if i can do that revision from unix...

1 REPLY 1
Bill Hassell
Honored Contributor

Re: Printers, lpstat.

lpstat is a very crude tool, designed primarily for serial and parallel printers, not HP JetDirect network printers or for remote printers located on other servers. WebJetAdmin has a lot of information but other than using lynx or other command-line http tool, the web interface is all manual. You can query every HP JetDirect printer using hpnpadmin (see the man page). Use hpnpadmin -v for a complete information list for the printer. See the man page for many different options to obtain the details you need. But this is just the printer, not the spooler


Bill Hassell, sysadmin