I need to report on all current alarms in vcenter that have a send snmp action attached. I can get the info but cannot seem to pull simply the action value.
I simplified the code as much as i could, but no matter how I navigate I can only get down to pulling too much info
var alarmManager = sdk.alarmManager;
var alarms = alarmManager.getAlarm();
for each (var alarm in alarms)
{
var actionName = alarm.info.name;
var actionInfo = alarm.info.action
if (actionInfo != undefined){
System.log(actionName);
actionAction= actionInfo.action;
System.log(actionAction);
}
}
I tried another .action (3) but that is undefined.