[AGENT++] SNMP++ snmpget for snmp v3
Jochen Katz
katz at agentpp.com
Sun Sep 11 18:35:40 CEST 2005
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
More information about the AGENTPP
mailing list