Phaylon |
12-13-2013 04:49 PM |
Weird SNMP (snmpwalk vs. snmpget) issues with HP Officejet H611a printer
Dear forum members!
While I'm trying to monitor the supply levels of a (brand new) HP Officejet 6100 printer I ran into some strange SNMP behaviour (which in fact prevents pulling magenta levels).
All other printers - inkjet as well as laser - from different manufacturers are all being monitored perfectly.
Monitoring-Server is a CentOS release 5.10 (Final) box, all updates as well as all necessary mibs are installed. (at least I think IANA-printer-mibs v1 and v2 along with the HP vendor specific mibs should do the trick for such a basic inkjet)
Anyways - snmpwalk looks perfectly as expected:
Code:
[root@server]# snmpwalk -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSupplies
Printer-MIB::prtMarkerSuppliesDescription.0.1 = STRING: "black ink"
Printer-MIB::prtMarkerSuppliesDescription.0.2 = STRING: "yellow ink"
Printer-MIB::prtMarkerSuppliesDescription.0.3 = STRING: "cyan ink"
Printer-MIB::prtMarkerSuppliesDescription.0.4 = STRING: "magenta ink"
Printer-MIB::prtMarkerSuppliesMaxCapacity.0.1 = INTEGER: 109
Printer-MIB::prtMarkerSuppliesMaxCapacity.0.2 = INTEGER: 39
Printer-MIB::prtMarkerSuppliesMaxCapacity.0.3 = INTEGER: 43
Printer-MIB::prtMarkerSuppliesMaxCapacity.0.4 = INTEGER: 45
Printer-MIB::prtMarkerSuppliesLevel.0.1 = INTEGER: 107
Printer-MIB::prtMarkerSuppliesLevel.0.2 = INTEGER: 39
Printer-MIB::prtMarkerSuppliesLevel.0.3 = INTEGER: 43
Printer-MIB::prtMarkerSuppliesLevel.0.4 = INTEGER: 45
but snmpget does the job right only for cartridge (1..3)
Code:
[root@server]# snmpget -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSuppliesDescription.1.1
Printer-MIB::prtMarkerSuppliesDescription.1.1 = STRING: "black ink"
[root@server]# snmpget -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSuppliesDescription.1.2
Printer-MIB::prtMarkerSuppliesDescription.1.2 = STRING: "yellow ink"
[root@server]# snmpget -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSuppliesDescription.1.3
Printer-MIB::prtMarkerSuppliesDescription.1.3 = STRING: "cyan ink"
[root@server]# snmpget -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSuppliesDescription.1.4
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: Printer-MIB::prtMarkerSuppliesDescription.1.4
[root@server]# snmpget -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSuppliesMaxCapacity.1.1
Printer-MIB::prtMarkerSuppliesDescription.1.1 = INTEGER: 109
[root@server]# snmpget -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSuppliesMaxCapacity.1.2
Printer-MIB::prtMarkerSuppliesDescription.1.2 = INTEGER: 39
[root@server]# snmpget -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSuppliesMaxCapacity.1.3
Printer-MIB::prtMarkerSuppliesDescription.1.3 = INTEGER: 43
[root@server]# snmpget -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSuppliesMaxCapacity.1.4
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: Printer-MIB::prtMarkerSuppliesMaxCapacity.1.4
[root@server]# snmpget -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSuppliesLevel.1.1
Printer-MIB::prtMarkerSuppliesDescription.1.1 = INTEGER: 107
[root@server]# snmpget -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSuppliesLevel.1.2
Printer-MIB::prtMarkerSuppliesDescription.1.2 = INTEGER: 39
[root@server]# snmpget -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSuppliesLevel.1.3
Printer-MIB::prtMarkerSuppliesDescription.1.3 = INTEGER: 43
[root@server]# snmpget -v1 -c prn_read 172.68.20.39 Printer-MIB::prtMarkerSuppliesLevel.1.4
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: Printer-MIB::prtMarkerSuppliesLevel.1.4
Google and the forum search didn't provide any useful hints: Does anybody have an idea why snmpwalk shows magenta and snmpget doesn't? (I even tried "snmpget -Dparse-mibs")
Thanks Lots!
Markus
|