What version of Net::SNMP are you using? RPMFind has it as an RPM package at version 5.4.1-6fc8 as the latest version, but there's an earlier version listed. The newest I found on CPAN is 5.2.0, though.

I know this is an odd question, but do you have IPv4 enabled on your new server, or only IPv6? Another odd one for you -- can your web server open a UDP socket under either? Is there an application-level firewall involved?

When I rigged up the missing parts of your program quickly, I got the message about not being able to communicate with the device. That's expected, since I pointed it to a device with no SNMP server running. I didn't get any errors about permission denied or any other session-related errors. I'm running 5.10.0 with Net::SNMP 5.2.0 on Mandriva 2008.


In reply to Re: Perl NET::SNMP by mr_mischief
in thread Perl NET::SNMP by Jabber

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.