<< Back to man.lupaworld.com

23.        Error Status Values

When the SNMP++ return value for a member function returns a value of “SNMP_CLASS_ERR_STATUS_SET”, an additional error status value can be obtained via the Pdu::get_error_status() member function. These values represent the actual SMI PDU error status values found in RFC 1905. These values may be passed into the Snmp::error_msg() member function for a friendly description.

 

Pdu Error Status Macro

Value

Description

SNMP_ERROR_TOO_BIG    

1

Pdu Too Big, see error index

SNMP_ERROR_NO_SUCH_NAME      

2

No Such Variable Binding name, see returned error index

SNMP_ERROR_BAD_VALUE        

3

Bad Variable Binding Value, see returned error index

SNMP_ERROR_READ_ONLY       

4

Variable Binding is read only, see returned error index

SNMP_ERROR_GENERAL_VB_ERR   

5

General Variable Binding error, see returned error index

SNMP_ERROR_NO_ACCESS        

6

Operation Failure, No Access

SNMP_ERROR_WRONG_TYPE      

7

Operation Failure, Bad Type

SNMP_ERROR_WRONG_LENGTH    

8

Operation Failure, Bad Length

SNMP_ERROR_WRONG_ENCODING   

9

Operation Failure, Wrong Encoding

SNMP_ERROR_WRONG_VALUE     

10

Operation Failure, Wrong Value

SNMP_ERROR_NO_CREATION     

11

Operation Failure, No Creation

SNMP_ERROR_INCONSIST_VAL   

12

Operation Failure, Inconsistent Value

SNMP_ERROR_RESOURCE_UNAVAIL

13

Operation Failure, Resource Unavailable

SNMP_ERROR_COMITFAIL       

14

Operation Failure, Commit Failure

SNMP_ERROR_UNDO_FAIL       

15

Operation Failure, Undo Failure

SNMP_ERROR_AUTH_ERR        

16

Operation Failure, Authorization Error

SNMP_ERROR_NOT_WRITEABLE   

17

Operation Failure, Not Writable

SNMP_ERROR_INCONSIS_NAME   

18

Operation Failure, Inconsistent Name