Net::SNMP ussage
"Pili Muñoz Gargallo" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
i'm trying to make a script using Net::SNMP to use it with MRTG.
What i was trying to do first in read a SNMP OID from a remote host, but it
returns me a
Unable to resolve UDP/IPv4 address '>Q½u' at switchesplantilla.pl line 23.
what i have done is
use Net::SNMP;
my @ARGV = (62.81.189.117 , public);
my ($session,$error) = Net::SNMP->session(Hostname => $ARGV[0],Community =>
$ARGV[1]);
die "session error: $error" unless ($session);
# LQI= .1.3.6.1.4.1.12394.1.1.11.6.2.0
my $result = $session->get_request(".1.3.6.1.4.1.12394.1.1.11.6.2.0");
die "request error: ".$session->error unless (defined $result);
$session->close;
print "LQI: ".$result->{".1.3.6.1.4.1.12394.1.1.11.6.2.0"}."\n";
anyone knows if there is a way to make it runs?
I also have tried to use snmpget or snmpwalk but it complains about
stucture...Anyone could tell me if it is possible to use snmpwalk in a
script and where i could find information about usage?
Thank you very much in advance
Best wishes
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users