Tuesday, May 4, 2010

Vb.net snmp printer toner status

A command line tool that does

Receive an ip address as parameter and a community string (public).
Return a collection of toner information (if the device is a printer)
Also returns the printer status (paper jam, out of paper, ...)

Library in use : http://www.snmpsharpnet.com/

Class toner information contains: 

Toner name, 
Color,
Total toner capacity,
Toner status,
Toner used.
 

For the colors we have used a new set of constants to uniquely define the colors.
 

Example:
Black = 1
Green = 2
...

Works on the major printer brands (with the possibility to extend the function later for other vendors).


3 comments: