Smarts SAM Adapters: Is it possible to change the Expiration Time of a Trap processed by the Smarts Trap Adapter (TA)
search cancel

Smarts SAM Adapters: Is it possible to change the Expiration Time of a Trap processed by the Smarts Trap Adapter (TA)

book

Article ID: 331834

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:


Expiration Time of a Trap processed by the Smarts Trap Adapter (TA) will allow the notification to stay visible longer.

Is it possible to change the Expiration Time of a Trap processed by the Smarts Trap Adapter (TA)

Environment

VMware Smart Assurance - SMARTS

Resolution

Change line "Expiration" to the value required on <BASEDIR>/SAM/smarts/conf/icoi/trap_mgr.conf file using sm_edit:

./sm_edit ../conf/icoi/trap_mgr.conf

Update the defaults section with the new expiration time:

BEGIN_TRAP <Enterprise OID> <Generic Trap Number> <Specific Trap Number>
ClassName: SNMPTrap
Category: SNMPTrap
InstanceName: $SYS$
EventName: $E$ $N$ $S$
Severity: 2
EventText: Varbinds: $V*$
Expiration: 84600
State: NOTIFY
InMaintenance: FALSE
ClearOnAcknowledge: TRUE
EventType: MOMENTARY
SysNameOrAddr: $A$
UnknownAgent: IGNORE
LogFile: NONE
END_DEFAULTS

This Expiration time is an unsigned integer.

<Enterprise OID>: The OID the trap uses for identification
<Generic Trap Number>:  The first number after the enterprise OID the identifies the generic class of the trap
<Specific Trap Number>:  The second number after the enterprise OID that identifies the specific type of trap/