tfDeleteTrapEntry

Jump to: navigation, search

Table of Contents >> SNMP Programmer's Reference


Note Note: The content on this page has been deprecated.
For the new content, please see tfNgDeleteTrapEntry().


#include <trapi.h>


int tfDeleteTrapEntry (ttSnmpTrapParmsPtr 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.


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


Table of Contents >> SNMP Programmer's Reference