Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to grab total pages printed from printers

Status
Not open for further replies.

n3tw0rkadm1n1strat0r

IS-IT--Management
Aug 29, 2006
119
US
Does anyone know of a script that will grab the total pages printed from a printer?
 
What printer? Does it have an on board OS? Does it interface with some host OS on a print server? Which register? (monthly, daily weekly, yearly, total)????

Give a little, it helps a lot ;-)

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
There are over 50 models of printers on the print server, most of them are HP's. I'm trying to get a total number of pages printed from each printer. The print server is windows 2003. I've got some other scripts but the problem with them is that it relys on the event log or the spooler. The event log can only hold so much information and it gets cleared out from time to time; the spooler resets itself after the print server is rebooted and clears out the total pages printed.
 
Unless the printer is what you might call a 'serviceable' model, as in a service company can read off registers, the only real way to check would be poll the various printers through the event logs on a regular basis.

Each print job will have sufficient characteristcs, date, time , name etc so if you dump these into a database you could then run any reports on it

See here for pointers on reading the event log

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Right I can read from the event log, but it does not contain everything since it gets cleared out from time to time. I found this, which looks like it telnet's into the printer and can get information...but I dont know how to do this, maybe you can help:
 
It looks like this only works with PJL printers, pretty much all of ours are PCL.
 
If you logon to the server every say 10-15 minutes (or whatever's a reasonable time frame, take a dump of the file, read the last record stored on the DB, and process only records newer than that, and you should be fine.

If your logs are cycling quicker than that, you need to allocate more disk space to your logs

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top