snmpCreateTrap (Function) |
Top Previous Next |
Establish the basic trap to which SNMP variables can be added with snmpAddTrapVariable. Send the trap with snmpSendTrap.
Note: SNMPv1 traps are only for SNMPv1 connections.
Input: OID : STRING The trap OID.
Uptime : DINT [0..65535] The sysUpTime that comes with the trap.
Generic : DINT SNMPv1 generic type trap specifier.
Specific : DINT SNMPv1 specific type trap specifier.
Output: Trap : SYSHANDLE The handle to the created trap.
Returns: INT
Declaration FUNCTION snmpCreateTrap : INT;
Example: // Please see the example at Examples - SNMP Client. |