How to Log all undefined SNMP traps received by the Smarts OI server.
search cancel

How to Log all undefined SNMP traps received by the Smarts OI server.

book

Article ID: 327726

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

How to log unrecognized SNMP trap messages received by SMARTS OI server to a log file.



To log unrecognized traps you will need to create what is called an "CatchAll SNMP Trap" definition at the bottom of the BASEDIR/InCharge6/SAM/smarts/local/rules/icoi-trapd/trap_mgr.conf file.

Below you will find an example of a generic catchall that will go to a log file called UnknownTraps.log.

# Generic SNMP Trap catchall.  Goes to a logfile.
# -----------------------------------------------
BEGIN_TRAP * * *
       ClassName:        UknownTraps
       Severity:         5
       State:           NOTIFY
       EventType:        MOMENTARY
       Expiration:       10
       EventText:        $V*$
       LogFile:         UnknownTraps.log
END_TRAP

The log file will be saved to the default location:  BASEDIR\smarts\local\logs

The trap_mgr.conf is read into memory when the SNMP Trap Receiver is started.  After making changes to settings in the trap_mgr.conf file, you are required to stop and restart the SNMP Trap Receiver to use the new configuration settings.

Due to the 10 second expiration and Momentary EventType, these Notifications will not appear in the SAM sever if using default Smoothing interval between SAM and OI Domain managers.