Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm just getting started with HP Web Jetadmin 10.2 and I've set up e-mail notifications for errors. I'd also like to set up a monthly e-mail notification of the current page count, so that I can calculate the number of pages printed during the previous month and see if that number is increasing or decreasing. However, there doesn't appear to be a way to configure any sort of schedule. Am I missing something, or am I asking too much of this free utility?

EDIT: Thanks to RobW for pointing me towards a solution. I'm going to try and describe it here so that others can benefit. My solution uses snmptools and blat (links in the accepted answer).

I wrote a script called pagecount.bat which looks like this:


@FOR /F "tokens=*" %%i IN ('C:\SNMPTools\snmptools.exe /v /query /h: /o:') DO set deviceName=%%i
@FOR /F "tokens=*" %%i IN ('C:\SNMPTools\snmptools.exe /v /query /h: /o:') DO set pageCount=%%i
ECHO %deviceName% %pageCount% > C:\SNMPTools\results.txt

@FOR /F "tokens=*" %%i IN ('C:\SNMPTools\snmptools.exe /v /query /h: /o:') DO set deviceName=%%i
@FOR /F "tokens=*" %%i IN ('C:\SNMPTools\snmptools.exe /v /query /h: /o:') DO set pageCount=%%i
ECHO %deviceName% %pageCount% >> C:\SNMPTools\results.txt

The first block uses the > operator to overwrite the file results.txt and subsequent blocks use the >> operator to append to the file. At the bottom of the file I have the following line:

C:\blat276\full\blat.exe C:\SNMPTools\results.txt -to -subject "Printer page counts"

And the results are sent to the specified e-mail address.

Prior to running this script, I have configured blat on the server using the command

blat -install
This configuration only needs to be done once so it's not part of the script.

After some testing and being satisfied with the results, I set up a scheduled task to run the script at 12:05 AM on the first day of every month. Once I have two months-worth of data, the numbers can be subtracted from each other to determine the total pages printed during the month for each device. These results can then be multiplied by their respective cost per page and summed to get the total printing costs for the month.

We have a maintenance agreement on our photocopiers, so the cost per page is listed on the quarterly invoice. For our regular printers, the cost per page can be calculated by dividing the cost of a toner cartridge by the specified yield of that cartridge.

After you have your first set of monthly printing costs, the challenge is to try to reduce the costs next month. One possibility is to switch the locations of some printers so that the cheaper to operate printers are in the higher volume areas.

BTW: All this math is being done in an Excel spreadsheet.

share|improve this question
up vote 1 down vote accepted

I dont think Web Jetadmin can do this.

I solved this problem with SNMP and Blat.

Your HP Printer offers SNMP counters of many types of printer statistics. Usings tools like snmpwalk.exe and getif.exe, and snmptools.exe you can get to these counters. Blat.exe can mail this report to you. Schedule a task to do it monthly.

SNMP stores data in structures called an OID. Each step in the OID represents a different branch. The page count OID for most printers is: Each step stands for:

If you know your OID, command line tools like snmptools.exe can extract the data:

c:\> snmptools.exe /v /query /h: /o:

On my HP Lasterjet, the printed page count is 25892.

share|improve this answer
Thanks very much for pointing me in the right direction. I've added details regarding my finished solution. – Scott Nov 17 '11 at 18:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.