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

Anurag Jain anuragjain026 at hotmail.com
Mon Sep 19 22:03:54 CEST 2005


Hello Jochen,

I need help with one more problem regarding a snmp v3 set functiinality.

Basically I used the snmpset command line consoleExnample for snmp++ and 
found that it timesout even though the data i m requesting appears . 
Basically it is set to let the cisco router push its config
via tftp to a server.
./snmpSet 172.17.0.20 1.3.6.1.4.1.9.2.1.55.192.168.24.201 -v3 -md5 -des 
-snprivuser -uaprivuser -upprivuser

This creates an instance and sets a value against it .

The log  is  attached , the same function works through mg soft . Through 
snmp++ too it works i.e the config does apper in the server but the snmpset 
/ snmp++ libraray returns a timeout.

Can you please take a look and advice on a fix.

Thanks
Anurag




>From: Jochen Katz <katz at agentpp.com>
>To: agentpp at agentpp.org
>Subject: Re: [AGENT++] SNMP++ snmpget for snmp v3
>Date: Sun, 11 Sep 2005 18:35:40 +0200
>
>Hi,
>
> > Here are the logs you reuested  , both for seclevel2 (works)and
> > seclevel3 (does not work).
> >
> > Please let me know the correct fix.
>
>the correct fix can only be done by Cisco! The request id of the report
>is set to 0x7fffffff (0 or the id of the request are acceptable values).
>
>The following patch for snmp++ allows this behaviour:
>
>--- mp_v3.cpp.orig      2005-09-11 18:28:19.159514160 +0200
>+++ mp_v3.cpp   2005-09-11 18:30:10.190634864 +0200
>@@ -906,7 +906,8 @@
>        inc_stats_unknown_pdu_handlers();
>        return SNMPv3_MP_UNKNOWN_PDU_HANDLERS;
>      }
>-    if ((!pdu->reqid) && (pdu->command == REPORT_MSG))
>+    if (((pdu->reqid == 0) || (pdu->reqid == 0x7fffffff))
>+       && (pdu->command == REPORT_MSG))
>        pdu->reqid = centry.req_id;
>    }
>
>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: v3setlog.txt
Url: http://lists.agentpp.org/pipermail/agentpp/attachments/20050919/32c5f49f/attachment.txt 


More information about the AGENTPP mailing list