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:
@ECHO OFF
@FOR /F "tokens=*" %%i IN ('C:\SNMPTools\snmptools.exe /v /query /h:192.168.1.12 /o:1.3.6.1.2.1.1.6.0') DO set deviceName=%%i
@FOR /F "tokens=*" %%i IN ('C:\SNMPTools\snmptools.exe /v /query /h:192.168.1.12 /o:1.3.6.1.2.1.43.10.2.1.4.1.1') DO set pageCount=%%i
ECHO %deviceName% %pageCount% > C:\SNMPTools\results.txt
@FOR /F "tokens=*" %%i IN ('C:\SNMPTools\snmptools.exe /v /query /h:192.168.1.13 /o:1.3.6.1.2.1.1.6.0') DO set deviceName=%%i
@FOR /F "tokens=*" %%i IN ('C:\SNMPTools\snmptools.exe /v /query /h:192.168.1.13 /o:1.3.6.1.2.1.43.10.2.1.4.1.1') 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 [email protected] -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 mail.example.com [email protected]
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.
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: 1.3.6.1.2.1.43.10.2.1.4.1.1. Each step stands for:
If you know your OID, command line tools like snmptools.exe can extract the data:
On my HP Lasterjet, the printed page count is 25892.
Powershell gave me page counts for multiple network printers with a few minutes of work. Open a Powershell with administrative privileges, then add a SNMP commandlet from Microsoft's PowerShell Gallery like this:
You can easily make lists of IP addresses for multiple printers and OID numbers for variables of interest, then print a summary to the console. Here is some quick code that works for an old B&W HP laserjet and two color Xerox network printers:
Console: