Hi!

It looks like the password issue, maybe password is incorrect or not set properly?


This value (16) can be stored on the device.

Did you try to reboot host.example.com and see the value of usmStatsWrongDigest counter?

23.04.17 6:30, lee пишет:
Hi,

Net::SNMP only gives a useless error message "ERROR: Received
usmStatsWrongDigests.0 Report-PDU with value 16 during synchronization."
with the number (16) increasing by 1 every time I run the program?

What is this supposed to tell me?  How is it possible for the number to
be increased by 1 every time? Where is the last number being remembered?


#!/usr/bin/perl

use strict;
use warnings;

use Net::SNMP;

my ($session, $error) = Net::SNMP->session(
                                           -hostname     => 'host.example.com',
                                           -version      => 'snmpv3',
                                           -username     => 'user',
                                           -authpassword => 'secret',
);

if (!defined $session) {
    printf "ERROR: %s.\n", $error;
    exit 1;
}
[...]


'snmpget -v 3 -u user host.example.com 1.3.6.1.4.1.25506.8.35.18.1.17.0' works
fine.  I'm simply trying to do the same with perl.

I shouldn't need a password because I don't need one with snmpget.


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to