snmpAddTrapVariable (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

All NX devices

Firmware version:

1.60.00


Add a SNMP variable to the variable list of a trap. When sending the trap, the list of trap variables is sent with the trap.

 

Input:

Trap : SYSHANDLE

The handle to the trap created with snmpCreateTrap.

 

Data : snmpVariable

Trap variable to add. See snmpVariable.

 

 

Returns: INT

1

- Success.

0

- This function is not supported.

-3

- Cannot add more variables, limit reached. See limitations on overview page.

-5

- Trap is not registered.

-9

- Illegal input variable type.

-10

- Invalid input OID.

-12

- General error.

 

Declaration

FUNCTION snmpAddTrapVariable : INT;
VAR_INPUT
  trap     : MANDATORY SYSHANDLE;
  data     : ACCESS snmpVariable;
END_VAR;

 

Example:

// Please see the example at Examples - SNMP Client.