[AGENT++] COMITFAILED from an snmp set command
Jochen Katz
katz at agentpp.com
Mon Jun 5 21:19:48 CEST 2006
Hi,
> In the header file "uxsnmp.h" the return value of the synchronous set
> operation is specified as being 0 or negative. To my supprise I got a 14
> as the result of a set operation.
are you sure that Snmp::set() returned this status and not
Pdu::get_error_status()? Was this a SNMPv3 message?
> When checking the snmp_engine function the pdu result is returned:
> status = snmpmsg.load( pdu, community_string,(snmp_version) version);
>
> if ( status != SNMP_CLASS_SUCCESS)
> {
> debugprintf(0, "snmp message load error!");
> return status;
> }
> <<
> The result of this call is that the two error ranges (class and pdu are
> mixed).
snmpmsg.load() should never return values between 1 and 18, so this code
is OK.
Regards,
Jochen
More information about the AGENTPP
mailing list