Hi,
I've a had a closer look and totally agree with you that this is very poorly implemented and documented in OCUM 6.X compared with environment variable flexibilty and simplicity available in DFM 5.X. EG:
https://kb.netapp.com/support/index?page=content&id=3012180
Note: I tried using environment variables in this method for OCUM6.X but it's not implemented (Adding to my list for engineering developement requests).
From a powershell perspective the "-eventID" parameter value is $args[1]. EG the parameter name "eventID" = $args[0] and the parameter value is $args[1] (eventID = X)
So with this in mind i had a look at what you might be able to do if you get the script which is attached to your alarm to invoke a MySQL using the EventID as basis. Something like...
SELECT
event.id AS 'event_id',
event.eventTimeStamp AS 'event_time_stamp',
event.impactArea AS 'event_impact',
event.source_type,
event.source_fullName AS 'source_full_name',
eventtypevalue.internalName AS 'internal_name',
vserverlivelistdtoview.clusterName AS 'cluster_name',
vserverlivelistdtoview.name AS 'vserver_name'
FROM
ocum.event,
ocum.eventtypevalue,
ocum.vserverlivelistdtoview
WHERE
event.id = 20006
AND
vserverlivelistdtoview.clusterId = event.cluster_id
AND
vserverlivelistdtoview.id = event.vserver_id
AND
eventtypevalue.id = event.value_id
(where event.id = 20006 in the powershell code would be "event.id = $eventID" or "event.id = $args[1]")
With a some modification this will probably return the type of detail are looking for. The above SQL query was for a test i put together for an alert setting a volume state to offline. EG:
event_id,event_time_stamp,event_impact,source_type,source_full_name,internal_name,cluster_name,vserver_name
20006,2016-03-03 17:03:29,AVAILABILITY,inventory.ontap.storage.FlexVol,vserver1/volume_001,offline,cluster1,vserver1
Hope that gives you some ideas. When i get some time i'll post a more comprehsive example in powershell.
/matt
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.