SMARTS - 10.1.x
SMARTS DM -2.4
TCSA - 2.x
To configure multiple varbinds to be sent with a Smarts SAM trap, do the following:
See the following section for an example configuration of three varbinds that could be configured and sent with a trap.
Example
The following shows an example that would set up three attributes (EventName, InstanceName and EventText) with corresponding varbinds that could be sent along with the trap:
BEGIN_TRAP .1.3.6.4.1.9.10 0 10ClassName: HostInstanceName: $SYS$EventName: $V1$InstanceName: $V2$
EventText: $V3$
ElementClassName: HostElementName: $SYS$Severity: 1Map: {V11 = rebooted2 = down}{V21 = X.X.X.X <---IP Address>2 = Node3 = Router4 = Switch}{V31 = Managed Device2 = Unmanaged Device}Expiration: 600State: NOTIFYUnknownAgent: CREATEEventType: MOMENTARYLogFile: TestClearOnAcknowledge: TRUEEND_TRAP
Now, if a trap is sent as follows:
sm_snmp -d localhost -p 162 trap X.X.X.X .1.3.6.4.1.9.10 0 10 0 .1.3.6.4.1.9.10 i 1 .1.3.6.4.1.9.10 i 2 .1.3.6.4.1.9.10 i 1
A notification would be seen on the SAM notification log console with the details determined by the definitions set for the three trap varbind values received (V1=1/V2=2/V3=1), as follows:
- EventName: rebooted
- InstanceName: Node
- EventText: Managed Device