Thanks for the reply Wes,
I tried what Wes suggested and I still dont see the SecName being passed to the
router.....
has anyone had success with Net-SNMP for snmpv3? Im just wondering if this is
maybe unsupported and I might be putting in some unproductive hours :)
PERL Script:
-----------------
[EMAIL PROTECTED] cricket]$ cat test.pl
#!/usr/bin/perl
use SNMP;
use vars qw($debug);
my $sess;
$sess = new SNMP::Session(DestHost => '10.100.24.20',
Version => 3,
SecName => 'readuser',
SecLevel => 'noAuthNoPriv');
print $sess;
OUTPUT
--------------
[EMAIL PROTECTED] cricket]$ perl -w test.pl
SNMP::Session=HASH(0x9d83bdc)[
but, at the ROUTER. a debug snmp headers shows: (still no username)
Jun 19 13:22:28.132: v3 packet security model: v3 security level: noauth
Jun 19 13:22:28.136: username:
Jun 19 13:22:28.136: snmpEngineID: 800000090300001759DF1AB0
Jun 19 13:22:28.136: snmpEngineBoots: 0 snmpEngineTime: 0
Jun 19 13:22:28.136: SNMP: Report, reqid 444128513, errstat 0, erridx 0
internet.6.3.15.1.1.4.0 = 77
Jun 19 13:22:28.140: SNMP: Packet sent via UDP to
I know this is incorrect, coz, when I do an snmpwalk or snmpget, the user id
shows up in the router debugs..
eg:
Incoming SNMP packet
Jun 19 13:26:54.310: v3 packet security model: v3 security level: noauth
Jun 19 13:26:54.310: username: readuser
Jun 19 13:26:54.310: snmpEngineID: 800000090300001759DF1AB0
Jun 19 13:26:54.310: snmpEngineBoots: 4 snmpEngineTime: 429820
Jun 19 13:26:54.310: SNMP: Response, reqid 855911189, errstat 0, erridx 0
ifPhysAddress.2 = 00 17 59 DF 1A B1
Jun 19 13:26:54.314: SNMP: Packet sent via UDP to 10.65.0.55
Appreciate all help/suggestions to troubleshoot!
Ajay
Wes Hardaker <[EMAIL PROTECTED]> wrote: >>>>> "AC" == Ajay Chenampara writes:
AC> When I print these variables in SNMP.pm, my values appear correctly.
AC> $this->{SessPtr} = SNMP::_new_v3_session($this->{Version},
AC> $this->{DestHost},
AC> $this->{Retries},
That's not how you should create a session. The _new_v3_session
function is not one you should use.
Instead, create it like:
$sess = new SNMP::Session(DestHost => 'localhost',
Version => 3,
SecName => 'me',
SecLevel => 'noAuthNoPriv');
For a complete list of parameters passed, see the perldoc page for the
SNMP module.
--
Wes Hardaker
Sparta, Inc.
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders