The format of the Map parameter is:
Map: { V<n> <value_a>= <string> <value_b>= <string> } { V<n> <value_c>= <string> <value_d>= <string> }
The following example shows how the Map parameter could be used to substitute text for two different varbind values:
BEGIN_TRAP .1.3.6.1.4.1.10 6 0 ClassName: Host InstanceName: $SYS$ EventName: Coldstart Severity: 5 EventText: Reason - $V1$ Expiration: 30 State: NOTIFY UserDefined1: Community String: $C$ ClearOnAcknowledge: TRUE Map: { V1 1= UP 2= DOWN } EventType: DURABLE UnknownAgent: CREATE ElementClass: Router ElementInstance: $SYS$ LogFile: Coldstart.log END_TRAP
In the example, the Map parameter describes how the enumeration values of the first varbind translate into printable strings. These printable strings are substituted as values in EventText. If a SNMP trap had a value of one for its first varbind, the phrase “Reason - UP” would be placed in EventText.
If a map is not defined for a specific varbind, the SNMP Trap Adapter uses the varbind’s integer value. In the example, the integer “1” would be used instead of the text “UP,” so the phrase “Reason -1” would be placed in EventText.
For a trap to clear, the InstanceName and ElementInstance parameters must be set to the same type.