Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I too am trying to wrap my head around SNMP. What version are you using: 1, 2, 3? It sounds quite a bit like you are SNMPv2 when using snmpwalk but SNMPv1 when using Perl. Version 1 doesn't know about Counter64's and it does in fact return noSuchName when it is asked for one. See RFC2089, Mapping SNMPv2 onto SNMPv1 within a bi-lingual SNMP agent. Specifically bullet point 2 under both Section 3.1 Processing an SNMPv1 GET request [] and Section 3.2 Processing an SNMPv1 GETNEXT request [].
    • THANK YOU!!!!!! That was my problem!!!

      Net::SNMP defaults to version 1. I'm using version 2 with snmpwalk. (Actually apparently the formal name is 2c, but Net::SNMP names it "2".)

      I had only thought to be explicit about the version with snmpwalk, which wanted to use 3 by default and failed to work at all, with noisy error messages. Using 1 only silently failed for the Counter64's.

      I owe you a drink sometime, but since I don't buy alcohol, maybe we'll make it a soda and a burger. :) Thank you so much

      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers