[AGENT++] SNMP++ snmpget for snmp v3

Anurag Jain anuragjain026 at hotmail.com
Mon Sep 5 22:00:02 CEST 2005


Hello ,
Attached  is the log : (this is a working log ) , I had to comment out the 
following below  from uxsnmp.cpp

Basically 3 retries were not being tried and the code returned out from nt 
Snmp::snmp_engine before the time window was properly setup .

Please take a look and confirm or give an alternative solution .

Thanks
Anurag


1741c1741
<       else
---
>       else if(maxloops==3)
1756,1757c1756,1757
<     debugprintf(1,"received oid: %s with value: %s",
<                 first_vb.get_printable_oid(), 
first_vb.get_printable_value());
---
>     debugprintf(1,"received oid: %s with value: %s status=%d",
>                 first_vb.get_printable_oid(), 
>first_vb.get_printable_value(),status);
1788c1788
<         return (status == SNMPv3_MP_OK) ? SNMP_CLASS_SUCCESS : status;
---
>         //return (status == SNMPv3_MP_OK) ? SNMP_CLASS_SUCCESS : status;
1794c1794
<         return (status == SNMPv3_MP_OK) ? SNMP_CLASS_SUCCESS : status;
---
>         //return (status == SNMPv3_MP_OK) ? SNMP_CLASS_SUCCESS : status;


>From: Jochen Katz <katz at agentpp.com>
>To: agentpp at agentpp.org
>Subject: Re: [AGENT++] SNMP++ snmpget for snmp v3
>Date: Sun, 04 Sep 2005 15:03:08 +0200
>
>Hi,
>
> > snmpGet 172.17.0.20  -v3  -snanurag2 -sha -des -uaanurag  -upanurag  
>-sl3
> >
> > (tried sha and md5 as well ) , snmpget works for authnopriv but does not
> > work wuth autpriv sec level ( it fails with a time out) the same set of
> > authpriv v3 security  paramaters setup in the MGSoftw MIB Broswer ( snmp
> > tool ) works successfully and get the data .
>
>a timeout is a strong indication for a problem on the agent side. Even
>if the agent is not able to decrypt the pdu, a report has to be sent back.
>
> > On running a sniffer it seems that there is an issue with engine boot
> > time being sent to the snmp aganet from snmp++ but it could be some
> > other issue as well ?
>
>Why do you think it is a problem with engine boot counter? The console
>examples do not store the boot/time values of agents, so each call to
>snmpGet will result in a complete engine id and engine time discovery:
>first request will result in "unknown engine id report" and the second
>(sent with engine boot = engine time = 0) will result in a "not in time
>window report". The third request should be answered with the requested
>values.
>
>Do you get any logging output from the agent that says why the request
>is dropped?
>
>Regards,
>   Jochen
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/agentpp

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: snmplog.txt
Url: http://lists.agentpp.org/pipermail/agentpp/attachments/20050905/efe3eeeb/attachment.txt 


More information about the AGENTPP mailing list