When is the BEGIN_DEFAULTS section used in a trap_mgr.conf file
search cancel

When is the BEGIN_DEFAULTS section used in a trap_mgr.conf file

book

Article ID: 332009

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

When is the BEGIN_DEFAULTS section used in a trap_mgr.conf file

Environment

All Supported Smart versions

Resolution

The section is used whenever another trap definition section doesn't have an option selected. 

For Example:
Consider these two entries in your file below.  Because there is no declaration for a log file in the trap definition for trap .1.3.6.1.2.1.17 6 1, we will use the LogFile: TRAPS-ALL.LOG to log entries from the BEGIN_DEFAULTS definition..  

BEGIN_DEFAULTS
        ClassName:      SNMPTrap
        InstanceName:   $SYS$
#        EventName:      $E$ $N$ $S$
        EventName:      Need_To_Resolve_OID
        Severity:       4
        EventText:      $V*$
        Expiration:     600
        State:          NOTIFY
        InMaintenance:  FALSE
#        ClearOnAcknowledge:     FALSE
        ClearOnAcknowledge:     TRUE
        EventType:      MOMENTARY
        SysNameOrAddr:  $A$
        UnknownAgent:   IGNORE
        LogFile:        TRAPS-ALL.log
END_DEFAULTS


BEGIN_TRAP .1.3.6.1.2.1.17 6 1
        ClassName:        SNMPTrap
        InstanceName:     $SYS$
        EventName:        STP-newRoot
       Severity:          3
        State:            NOTIFY
END_TRAP