Important

   

This documentation space contains information about PATROL Agents when deployed in a TrueSight Operations Management environment. If you are a BMC Helix Operations Management user, see PATROL Agent 22.1 for BMC Helix Operations Management. Open link

snmp_trap_ignore()

Stop accumulating incoming PATROL SNMP event traps.

Syntax

snmp_trap_ignore()

Parameter

This function does not accept any parameters.

Description

The snmp_trap_ignore() function ends the accumulation of incoming SNMP event traps by interrupting any active snmp_trap_receive() function and closing the socket for event-trapping that was opened with the snmp_trap_listen() function. 

The snmp_trap_ignore() function returns the character string OK if successful or the NULL string otherwise.

Example

The following PSL statements cause the PATROL SNMP Agent service to ignore incoming traps:

opstatus = snmp_trap_ignore();
if (opstatus == "") {
# snmp_trap_ignore() was bad!
# diagnosis and recovery statements here
}


Was this page helpful? Yes No Submitting... Thank you

Comments