Re: SNMP module to query net-snmp
- From: "Dr.Ruud" <rvtol+news@xxxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 14:47:39 +0200
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."
.
- Follow-Ups:
- Re: SNMP module to query net-snmp
- From: milaus
- Re: SNMP module to query net-snmp
- References:
- SNMP module to query net-snmp
- From: milaus
- SNMP module to query net-snmp
- Prev by Date: Re: New Group Cgi:Perl
- Next by Date: Re: New Group Cgi:Perl
- Previous by thread: SNMP module to query net-snmp
- Next by thread: Re: SNMP module to query net-snmp
- Index(es):