How do I prevent Smarts SAM SNMP Trap Adapter from logging discard traps to the trap adapter logs?
How can I stop the Smarts SAM SNMP Trap Adapter from logging the discard traps that are definded in trap_mgr.conf file?
To prevent Smarts SAM SNMP Trap Adapter from logging discard traps to the trap adapter logs, do the following:
- Open the trap_mgr_parse.asl file for editing in sm_edit as follows:
<BASEDIR>/SAM/smarts/bin/sm_edit rules/icoi-trapd/trap_mgr_parse.asl
- Find Line 156:
if ((logfile != "NONE") && (logfile != "")
- Change Line 156 to the following:
if ((logfile != "NONE") && (logfile != "") && discard_trap=="FALSE")
- Restart the trap adapter to apply the change in the active environment.