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