tfNgModifyTrapEntry

Jump to: navigation, search

Table of Contents >> SNMP Programmer's Reference


#include <trapi.h>


int tfNgModifyTrapEntry (
ttNgSnmpTrapParmsPtr targetPtr,
ttNgSnmpTrapParmsPtr sourcePtr
);


Function Description

This function lets the user modify the list of trap sinks.


Parameters

  • targetPtr
    Pointer to ttNgSnmpTrapParms to be modified.
  • sourcePtr
    Pointer to ttNgSnmpTrapParms that contains the new information to be copied into targetPtr.


Returns

  • TM_ENOERROR
    Success.
  • TM_ALLOCATION_ERROR
    Failure to allocate memory for the agent global variables.
  • TM_RECORD_LOCKED
    Failure, trap sinks list is locked.
  • TM_RECORD_NOTFOUND
    Failure, target is not found.
  • TM_PORT_TOOLARGE
    Failure, trap port is larger than 65535
  • TM_COMMUNITY_TOOLONG
    Failure, source community is too long
  • TM_COMMUNITY_NOT_PRINTABLE
    Failure, source community contains unprintable characters


Table of Contents >> SNMP Programmer's Reference