This post is more than 5 years old
49 Posts
0
2412
September 2nd, 2012 20:00
trap manager - use snmp 'specific number' to set event text
Hi there,
the task is to make snmp traps received by exploder and forwarded to receiver and shown in sm_gui human readable.
(Using IPM 7.2 / SAM 7.0)
Device is sending snmp trap for OSPF. (.1.3.6.1.2.1.14.16.2)
Generic 6
Specific 1-20 (or a subset of)
I changed trap_mgr.conf to recognize this.
BEGIN_TRAP .1.3.6.1.2.1.14.16.2 6 *
ClassName: OSPFLink
InstanceName: $SYS$
EventName: OSPF Trap $S$
END_TRAP
This will create me a notification with EvenName e.g. "OSPF Trap 12", so far, so good.
Of course, I CAN enter these lines for each and every specific number and set related event name, but I want to avoid that as I expect this should have been easily achieved by some functionality.
The Adapter Platform User Guide points to mapping which can be used for varbinds for example as follows
EventText: Reason - $V1$
Map: {
V1
1= UP
2= DOWN
}
I did not see any point to hook in with $S$ (Specific trap number of the SNMP Trap) there. $V1$ points to first Varbind, $V2$ to second and so on.
The trap I am receiving has no indication in Varbinds pointing to this specific number.
Event: This is a trap from 11.22.33.44 Trap:6, Specific:16, String=
Event Text: V1=10.10.10.10, V2=10.20.30.40 V3=0, V4=4, All Varbinds: 10.10.10.10 10.20.30.40 0 4 11.22.33.44
Is there any builtin function I did not recognized so far to achieve this ?
Thanks
Christian