On 19/06/07, Ajay Chenampara <[EMAIL PROTECTED]> wrote:
> [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)[

Does this script actually attempt to send an SNMP request?



> 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

I suspect that this is part of the initial engineID probing, rather than
a full SNMP request.

(Note that the dump is displaying a "Report" packet, containing the varbind
SNMP-USER-BASED-SM-MIB::usmStatsUnknownEngineIDs.0)

What happens if you actually try to send a real query?

Dave

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

Reply via email to