Hi everyone,
Im trying to get some help for using cricket with snmpv3 and have posted 
messages in the cricket-users and net-snmp developers list. I am hoping someone 
here has tried running cricket with snmpv3 before.

My problem:
Though I get snmpwalk etc to work correctly with snmpv3, I am unable to get the 
perl script snmpUtils.pm to query the router over snmpv3.
Thing I have done so far:
1. Linked  the snmpUtils.pm from /alter/net-snmp to the /lib in cricket's 
directories
2. included variables in the 'sub opensnmp' to handle the snmpv3 params - like 
SecName/SecLevel etc
3. edited the target file so that the snmp string is constructed so:
snmp = [EMAIL 
PROTECTED]:%snmp-port%:%snmp-timeout%:%snmp-retries%:%snmp-backoff%:%snmp-version%:%auth-proto%:%auth-pass%:%priv-proto%:%priv-pass%:%sec-name%:%sec-level%

running the collector and looking at snmp debug on the router indicates that 
the SecName, SecLevel etc are not being  passed to the router. 


So I tried with this simple perl script, and i still dont see the username 
being passed to the router.

[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;


OUTPUTS:::
[EMAIL PROTECTED] cricket]$ perl -w test.pl
SNMP::Session=HASH(0x8344bdc)

ON THE  ROUTER::::
Jun 19 17:45:39.465: SNMP: Packet received via UDP from 10.65.0.55 on 
FastEthernet0/0
Jun 19 17:45:39.465:
Incoming SNMP packet
Jun 19 17:45:39.465: v3 packet  security model: v3       security level: noauth
Jun 19 17:45:39.465: username:
Jun 19 17:45:39.469: snmpEngineID: 800000090300001759DF1AB0
Jun 19 17:45:39.469: snmpEngineBoots: 0 snmpEngineTime: 0
Jun 19 17:45:39.469: SNMP: Report, reqid 1183863370, errstat 0, erridx 0
 internet.6.3.15.1.1.4.0 = 80
Jun 19 17:45:39.473: SNMP: Packet sent via UDP to 


Appreciate any pointers to help troubleshoot. 
Can someone please confirm that Net-snmp supports snmpv3?
I am running this version : snmptest -V
NET-SNMP version: 5.0.9

Thanks again!
Ajay
 
---------------------------------
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.
-------------------------------------------------------------------------
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-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to