Coding Thread, SNMP Noob in Coding and Web Development; I would like a web-based printer monitor. Looks like SNMP is the best method to use, but I've not used ...
-
1st June 2009, 04:19 PM #1 SNMP Noob
I would like a web-based printer monitor. Looks like SNMP is the best method to use, but I've not used it before. Most of our printers are HP, but we have a few Dell's and some photocopiers. Anyone know of any good guides for SNMP noobs? Any good resources for help programming my own monitor? (PHP/Perl preferrable).
Thanks.
-
-
IDG Tech News
-
1st June 2009, 04:55 PM #2 
Originally Posted by
Gerry
Any good resources for help programming my own monitor? (PHP/Perl preferrable).
I simply wrote a script that used the shell to run snmpget, but I'm sure there's SNMP libraries for Perl or PHP available - the Wikipedia article on SNMP has a list of libraries at the end:
[ame=http://en.wikipedia.org/wiki/Simple_Network_Management_Protocol]Simple Network Management Protocol - Wikipedia, the free encyclopedia[/ame]
For HP printers I found the following:
snmpget -v 2c -c public 10.0.0.166 hrPrinterStatus.1
gives you the status of a printer at IP address 10.0.0.166. snmpwalk lets you see every SNMP variable returned by the printer, e.g.:
snmpwalk -v 2c -c public 10.0.0.166
So you can turn the printer on, record the "okay" settings, then pull the paper tray out or something and record the "not okay" settings and do a diff of the two.
--
David Hicks
-
2 Thanks to dhicks:
Arthur (2nd June 2009), Gerry (1st June 2009)
-
2nd June 2009, 10:53 PM #3 If I get the time I would quite like to setup Cacti to monitor printers via SNMP. It looks really good.
-
-
3rd June 2009, 08:07 PM #4
- Rep Power
- 7

Originally Posted by
Gerry
I would like a web-based printer monitor. Looks like SNMP is the best method to use, but I've not used it before. Most of our printers are HP, but we have a few Dell's and some photocopiers. Anyone know of any good guides for SNMP noobs? Any good resources for help programming my own monitor? (PHP/Perl preferrable).
Thanks.
Haven't studied any of these
PHP: SNMP - Manual
Net-SNMP
and perhaps something to do some prototyping with
NSNMP - fast, flexible, low-level, pure-Perl SNMP library - search.cpan.org
-
-
3rd June 2009, 10:28 PM #5 
Originally Posted by
Gerry
I would like a web-based printer monitor. Looks like SNMP is the best method to use, but I've not used it before. Most of our printers are HP, but we have a few Dell's and some photocopiers. Anyone know of any good guides for SNMP noobs? Any good resources for help programming my own monitor? (PHP/Perl preferrable).
Thanks.
Use Nagios. Plenty of threads on here about it. It uses plugins, that in turn uses SNMP to get the information you need.
-
SHARE:
Similar Threads
-
By pooley in forum Thin Client and Virtual Machines
Replies: 1
Last Post: 19th January 2009, 11:14 PM
-
By Small_Pig_Dancing in forum Windows
Replies: 7
Last Post: 14th November 2008, 12:24 PM
-
Replies: 15
Last Post: 24th October 2006, 08:58 PM
-
By browolf in forum Windows
Replies: 1
Last Post: 11th May 2006, 09:26 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules