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
}
if (opstatus == "") {
# snmp_trap_ignore() was bad!
# diagnosis and recovery statements here
}