+ Post New Thread
Results 1 to 5 of 5
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 ...
  1. #1
    Gerry's Avatar
    Join Date
    Jun 2007
    Location
    North Wales
    Posts
    431
    Thank Post
    60
    Thanked 38 Times in 35 Posts
    Rep Power
    24

    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.

  2. #2

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,647
    Thank Post
    1,256
    Thanked 781 Times in 678 Posts
    Rep Power
    236
    Quote Originally Posted by Gerry View Post
    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

  3. 2 Thanks to dhicks:

    Arthur (2nd June 2009), Gerry (1st June 2009)

  4. #3


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,006
    Thank Post
    230
    Thanked 2,693 Times in 1,988 Posts
    Rep Power
    791
    If I get the time I would quite like to setup Cacti to monitor printers via SNMP. It looks really good.

  5. #4

    Join Date
    Feb 2009
    Posts
    45
    Thank Post
    1
    Thanked 5 Times in 5 Posts
    Rep Power
    12
    Quote Originally Posted by Gerry View Post
    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

  6. #5
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,011
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108
    Quote Originally Posted by Gerry View Post
    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:
+ Post New Thread

Similar Threads

  1. esxi - noob help needed
    By pooley in forum Thin Client and Virtual Machines
    Replies: 1
    Last Post: 19th January 2009, 10:14 PM
  2. Another noob question I'm afraid!
    By Small_Pig_Dancing in forum Windows
    Replies: 7
    Last Post: 14th November 2008, 11:24 AM
  3. nix noob needs help
    By alan-d in forum *nix
    Replies: 15
    Last Post: 24th October 2006, 08:58 PM
  4. snmp on isa2004
    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
  •