tfNgDeleteTrapEntry
Table of Contents >> SNMP Programmer's Reference
| #include <trapi.h> |
| int tfNgDeleteTrapEntry | (ttNgSnmpTrapParmsPtr entryPtr); |
Function Description
This function lets the user delete an entry from the list of trap sinks. The user can call this function any time prior to starting the agent, or during the run time. If this entry is the only one left in the pool, it cannot be deleted. The input argument is the pointer to the struct ttNgSnmpTrapParms defined in trconsts.h.
Parameters
- entryPtr
- Input parameter, pointer to the ttSnmpTrapParms to be deleted.
Returns
- TM_ENOERROR
- Success.
- TM_ALLOCATION_ERROR
- Failure to allocate memory for the agent global variables.
- TM_PORT_TOOLARGE
- Failure, port specified in stpDestIp is larger than 65535
- TM_COMMUNITY_TOOLONG
- Failure, stpCommunity is too long
- TM_COMMUNITY_NOT_PRINTABLE
- Failure, stpCommunity contains unprintable characters
- TM_RECORD_LOCKED
- Failure, trap sinks list is locked
- TM_RECORD_NOTFOUND
- Failure, entry is not found.
- TM_DEFAULT_NOTDELETED
- Failure, the last trap entry cannot be deleted