hmm, thanks - but no dice I'm afraid.

I tried modifying my call to the sub to be more specific (skipping the scalars), and inserting a print "OID:$oid\n"; just before the get_table() call. This produced the following output:

OID:1.3.6.1.4.1.3309.1.4.17.5 ERROR: Received noError(0) error-status at error-index 1 OID:1.3.6.1.4.1.3309.1.4.4
(there are two separate calls currently - the first fails, the second succeeds).
I then tried a manual snmpwalk using the OID printed - ie. the same one that was passed to get_table(), which produced:
snmpwalk -v1 -c XXXXXX x.x.x.x 1.3.6.1.4.1.3309.1.4.17.5 SNMPv2-SMI::enterprises.3309.1.4.17.5.1.2.1 = Counter32: 1 SNMPv2-SMI::enterprises.3309.1.4.17.5.1.4.1 = IpAddress: 61.115.200.69 SNMPv2-SMI::enterprises.3309.1.4.17.5.1.6.1 = IpAddress: 61.115.200.99 SNMPv2-SMI::enterprises.3309.1.4.17.5.1.10.1 = INTEGER: 1

So, based on the above (and your earlier comments in the CB), I'm fairly convinced now that the problem lies with the get_table() method.

My next approach will be to investigate using get_next_request instead, as you suggested in the CB. (unless you have any other suggestions? ;)

Thanks again for your help :)


In reply to Re^2: Net:SNMP get_table() method failing by McDarren
in thread Net:SNMP get_table() method failing by McDarren

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.