Smarts SAM: How do I generate 'Clear' notifications for Smarts SAM traps?
search cancel

Smarts SAM: How do I generate 'Clear' notifications for Smarts SAM traps?

book

Article ID: 303690

calendar_today

Updated On:

Products

VMware

Issue/Introduction

How do I generate Clear notifications for Smarts SAM traps?
How do I configure a Clear trap entry in the trap_mgr.conf configuration file to clear a notification for an existing or new Notify trap entry?

Environment

VMware Smart Assurance - SMARTS

Resolution





 
To set up a Clear trap entry notification for a trap in the trap_mgr.conf file, it is the same as setting up a Notify notification (specified in the Smarts SAM documentation). For a Clear trap entry, change the State setting to CLEAR and ensure that the varbind generic and specific types for the OID are unique. 
 
The following shows a Notify trap and a Clear trap as they would be configured in the trap_mgr.conf configuration file (see Note statement).
<BASEDIR>/smarts/bin/sm_edit conf/icoi/trap_mgr.conf
BEGIN_TRAP .1.3.6.1.4.1.9.9.138.2.* 6 1
        ClassName:        Host
        InstanceName:     $SYS$
        EventName:        ceAlarmAsserted-$V1$-$V2$
        Severity:         1
        EventText:        ceAlarmHistEntPhysicalIndex = $V1$, ceAlarmHistAlarmType = $V2$, c
eAlarmHistSeverity = $V3$, ceAlarmHistTimeStamp = $V4$
        Expiration:       0
        State:            NOTIFY
        EventType:        DURABLE
END_TRAP
 
BEGIN_TRAP .1.3.6.1.4.1.9.9.138.2.* 6 2
        ClassName:        Host
        InstanceName:     $SYS$
        EventName:        ceAlarmAsserted-$V1$-$V2$
        EventText:        ceAlarmHistEntPhysicalIndex = $V1$, ceAlarmHistAlarmType = $V2$, c
eAlarmHistSeverity = $V3$, ceAlarmHistTimeStamp = $V4$
        State:            CLEAR
END_TRAP


Additional Information

The only three attributes that need to match for both NOTIFY and CLEAR are: ClassName, InstanceName and EventName