ikkeniet has asked for the wisdom of the Perl Monks concerning the following question:
In normal counters $temp returns the value, but with a Gigabit switch it seems to be of type Counter64 and the value of $temp is always 64. I am sure I am missing something pretty easy but I just keep breaking my head on it.my ($session, $error) = Net::SNMP->session( -hostname => shift || $SNMP_host, -community => shift || $SNMP_community, -port => shift || $SNMP_port, ); my $result = $session->get_request( -varbindlist => [".1.3.6.1.2.1.2.2.1.10.1"] ); my $temp=$result->{".1.3.6.1.2.1.2.2.1.10.1"} ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl NET::SNMP - Counter64
by fullermd (Vicar) on Aug 25, 2009 at 11:05 UTC | |
|
Re: Perl NET::SNMP - Counter64
by Sewi (Friar) on Aug 25, 2009 at 12:42 UTC |