Log all undefined SNMP traps received by the OI server
search cancel

Log all undefined SNMP traps received by the OI server

book

Article ID: 327726

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

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

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

Environment

All supported releases of Smart

Resolution

  • To log unrecognized traps you will need to create what is called an "CatchAll SNMP Trap" definition at the bottom of the BASEDIR/InCharge/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.