snmpDestroyTrap (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

All NX devices

Firmware version:

1.60.00


Free all resources involved with a trap. That is trap variables that have been added, and the SYSHANDLE is reset so that it can be used again.

 

Input:

None.

 

Output:

Trap : SYSHANDLE

The handle to the trap, created with snmpCreateTrap, to free.

 

 

Returns: INT

1

- Success.

0

- This function is not supported.

-5

- Trap is not registered.

-12

- General error.

 

Declaration

FUNCTION snmpDestroyTrap : INT;
VAR_INPUT
  trap     : ACCESS SYSHANDLE;
END_VAR;

 

Example:

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