I need to get the event details from a trap in an event transform.
The traps come with oids in the event details. The problem is that the OIDs are not predictable because the last digit is the event number on the SAN itself.
For example, the two oids listed were included in traps sent when I pulled disks from the array. This was for different disks, but the only differing numbers are 10000779 and 1419 which map to the event id on the SAN.
I am able to dig down into the event details using zendmd and print out one of the values, but I can't seem to get the proper incantation in an event transform to work.
emgr = dmd.Events.getEventManager() event = emgr.getEventDetail(dedupid='172.24.40.25||/Storage/SAN||4|snmp trap msaEventInfoTrap') event.getEventDetails() (('18.104.22.168.22.214.171.124.126.96.36.199.0.0.0.0.0.0.0.0.0.0.0.0.0.0.9999', '9999'), ('188.8.131.52.184.108.40.206.220.127.116.11.0.0.0.0.0.0.0.0.0.0.0.0.0.0.9999', '3'), ('18.104.22.168.22.214.171.124.126.96.36.199.0.0.0.0.0.0.0.0.0.0.0.0.0.0.9999', 'Event type: 312, Test SNMP trap, type HP StorageWorks P2000 G3 FC'), ('community', 'public'), ('oid', '188.8.131.52.184.108.40.206.51.0.3001')) event.getEventDetails() '9999' event.getEventDetails() 'Event type: 312, Test SNMP trap, type HP StorageWorks P2000 G3 FC'
Things like evt.summary and evt.severity work in transforms, but evt.getEventDetails() does not.