Smarts SAM: How do I prevent SNMP Trap Adapter from logging discard traps to the trap adapter logs?
search cancel

Smarts SAM: How do I prevent SNMP Trap Adapter from logging discard traps to the trap adapter logs?

book

Article ID: 327686

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

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:

  1. 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

     
  2. Find Line 156:

    if ((logfile != "NONE") && (logfile != "")

     
  3. Change Line 156 to the following:

    if ((logfile != "NONE") && (logfile != "") && discard_trap=="FALSE")

     
  4. Restart the trap adapter to apply the change in the active environment.