SNMP Error Codes

Header: snmp.h

[SNMP is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use Windows Remote Management, which is the Microsoft implementation of WS-Man.]

Microsoft implements the following SNMP error codes that are defined by the SNMPv2C specification.

SymbolicCodeDescription
SNMP_ERRORSTATUS_NOERROR0The agent reports that no errors occurred during transmission.
SNMP_ERRORSTATUS_TOOBIG1The agent could not place the results of the requested SNMP operation in a single SNMP message.
SNMP_ERRORSTATUS_NOSUCHNAME2The requested SNMP operation identified an unknown variable.
SNMP_ERRORSTATUS_BADVALUE3The requested SNMP operation tried to change a variable but it specified either a syntax or value error.
SNMP_ERRORSTATUS_READONLY4The requested SNMP operation tried to change a variable that was not allowed to change, according to the community profile of the variable.
SNMP_ERRORSTATUS_GENERR5An error other than one of those listed here occurred during the requested SNMP operation.
SNMP_ERRORSTATUS_NOACCESS6The specified SNMP variable is not accessible.
SNMP_ERRORSTATUS_WRONGTYPE7The value specifies a type that is inconsistent with the type required for the variable.
SNMP_ERRORSTATUS_WRONGLENGTH8The value specifies a length that is inconsistent with the length required for the variable.
SNMP_ERRORSTATUS_WRONGENCODING9The value contains an Abstract Syntax Notation One (ASN.1) encoding that is inconsistent with the ASN.1 tag of the field.
SNMP_ERRORSTATUS_WRONGVALUE10The value cannot be assigned to the variable.
SNMP_ERRORSTATUS_NOCREATION11The variable does not exist, and the agent cannot create it.
SNMP_ERRORSTATUS_INCONSISTENTVALUE12The value is inconsistent with values of other managed objects.
SNMP_ERRORSTATUS_RESOURCEUNAVAILABLE13Assigning the value to the variable requires allocation of resources that are currently unavailable.
SNMP_ERRORSTATUS_COMMITFAILED14No validation errors occurred, but no variables were updated.
SNMP_ERRORSTATUS_UNDOFAILED15No validation errors occurred. Some variables were updated because it was not possible to undo their assignment.
SNMP_ERRORSTATUS_AUTHORIZATIONERROR16An authorization error occurred.
SNMP_ERRORSTATUS_NOTWRITABLE17The variable exists but the agent cannot modify it.
SNMP_ERRORSTATUS_INCONSISTENTNAME18The variable does not exist; the agent cannot create it because the named object instance is inconsistent with the values of other managed objects.
19 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.