Weird SNMP (snmpwalk vs. snmpget) issues with HP Officejet H611a printer
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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 for the input. Yeah - I already did try the OID. Same behavior like above. K/Y/C (cartridges 1..3) working like a charm, magenta not at all (error in packet) :-/
Just can't figure it out. Could that be a bug in the firmware/embedded snmp implementation? I don't get it ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.