Gerry Posted June 1, 2009 Posted June 1, 2009 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.
dhicks Posted June 1, 2009 Posted June 1, 2009 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
Arthur Posted June 2, 2009 Posted June 2, 2009 If I get the time I would quite like to setup Cacti to monitor printers via SNMP. It looks really good.
mrwITch Posted June 3, 2009 Posted June 3, 2009 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
ChrisH Posted June 3, 2009 Posted June 3, 2009 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now