Re: SNMP module to query net-snmp



milaus schreef:

my ($result) = $sess->get(["$oid", "$cb"]) || 'get doesn\'t
work...';

I checked the SNMP-documentation, and I don't think that ["$oid", "$cb"]
is one of the "Acceptable variable fomats".
Maybe you need to use SNMP::VarList. Read also `perldoc -q always`.


The "|| 'get doesn\'t work...'" looks strange, I would change that to

or die "get doesn't work: ". $sess->ErrorStr ;


While testing, I would also do an $SNMP::verbose = 1 or $SNMP::debugging
= 1 at the start.


In the trouble shooting section of `perldoc SNMP` it says:
"If you cannot resolve the problem you can post to
news:comp.lang.perl.modules or net-snmp-users(AT)lists.sourceforge.net
please give sufficient information to analyze the problem (OS type,
versions for OS/Perl/UCD/compiler, complete error output, etc.)"


So there is a mailing list net-snmp-users@xxxxxxxxxxxxxxxxxxxxx
with an archive at
http://sourceforge.net/mailarchive/forum.php?forum_id=4959

--
Affijn, Ruud

"Gewoon is een tijger."


.