snmpSendTrap (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

All NX devices

Firmware version:

1.60.00


Send a trap with a list of accompanying SNMP variables to a SNMP manager indicating an event on the sending RTCU device.

 

Input:

Trap : SYSHANDLE

The handle to the trap created with snmpCreateTrap.

 

Connection : SYSHANDLE

The handle to the connection set with snmpConnect.

 

Output:

None.

 

 

Returns: INT

1

- Success.

0

- This function is not supported.

-1

- Invalid connection handle.

-5

- Trap is not registered.

-12

- General error.

 

Declaration

FUNCTION snmpSendTrap : INT;
VAR_INPUT
  trap       : MANDATORY SYSHANDLE;
  connection : MANDATORY SYSHANDLE;
END_VAR;

 

Example:

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