Hello,
I got away with a work around (and some residues).
Note: The IP address (as string) of the WLC, is also contained within the cWNotificationSpecialAttributes OID on the trap [as reportingEntityAddress].
Say "0xfff00001" is the AlertMap'ed event on the back of 'ciscoWirelessMOStatusNotification' trap, I temporarily used 'cwNotificationCategory' as a unique ID variable (5).
This will create EventModels with category values as names. [i.e. 0, 1, 2 etc...]. These are unwanted residues. Put them in maintenance mode.
Then on the gen_app_GW/EventAdmin/EventDisp file, use a procedure to create a new event (say 0xfff0002) to get the IP address from within the cWNotificationSpecialAttributes OID, and assign it to Variable ID 8 (i.e. Target Address).
Since this mapping is on the EventAdmin's model ({ C CURRENT_MODEL }), the new event also gets processed like a southbound gateway event. But, this time with IP Address on Variable 8 (which is the target address). The new event gets sent to the WLC.
Hope this helps.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FILE NAME: custom/Events/gen_app_gw/EventAdmin/AlertMap
# ciscoWirelessMOStatusNotification cWNotificationTimestamp
1.3.6.1.4.1.9.9.712.0.1 0xfff00001 1.3.6.1.4.1.9.9.712.1.1.2.1.2(101,102)\
# cWNotificationUpdatedTimestamp
1.3.6.1.4.1.9.9.712.1.1.2.1.3(103,0)\
# cWNotificationKey
1.3.6.1.4.1.9.9.712.1.1.2.1.4(104,0)\
# cWNotificationCategory
1.3.6.1.4.1.9.9.712.1.1.2.1.5(5,0)\
# cWNotificationSubCategory
1.3.6.1.4.1.9.9.712.1.1.2.1.6(106,0)\
# cWNotificationManagedObjectAddressType
1.3.6.1.4.1.9.9.712.1.1.2.1.7(107,0)\
# cWNotificationManagedObjectAddress
1.3.6.1.4.1.9.9.712.1.1.2.1.8(108,0)\
# cWNotificationSourceDisplayName
1.3.6.1.4.1.9.9.712.1.1.2.1.9(109,0)\
# cWNotificationDescription
1.3.6.1.4.1.9.9.712.1.1.2.1.10(110,0)\
# cWNotificationSeverity
1.3.6.1.4.1.9.9.712.1.1.2.1.11(111,0)\
# cWNotificationSpecialAttributes
1.3.6.1.4.1.9.9.712.1.1.2.1.12(112,0)\
# cWNotificationVirtualDomains
1.3.6.1.4.1.9.9.712.1.1.2.1.14(113,0)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FILE NAME: custom/Events/gen_app_gw/EventAdmin/EventDisp
0xfff00001 P "CreateEventWithAttributes( \
{ C CURRENT_MODEL }, \
{ H 0xfff00002 }, \
SetEventVariable( \
{ U 8 }, \
GetRegexp( \
GetEventVariable( { U 112 } ), \
{ S \"reportingEntityAddress=(.*?)\\\\,\" }, \
{ U 1 } ) ) )"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FILE NAME: custom/Events/gen_app_gw/EventDisp
# No processing required on EventModel' EventDisp file, hence commented out
#0xfff00001
#0xfff00002
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FILE NAME: custom/Events/EventDisp
#Original Event (remove the logging 'E 50' once testing is done)
0xfff00000 E 50
# Use this to further convert into alarm. This event will be raised on WLC
0xfff00001 E 50
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -