Original Message:
Sent: Jun 03, 2025 10:45 AM
From: WhiteForEver
Subject: "reset to green" to specific Cluster on my VC
Hi,
can you please show/confirm the alarm is set on a cluster level?
------------------------------
If you find the answer helpful, please click on the RECOMMEND button.
Please visit my blog to get more information: https://clouddepth.com
Original Message:
Sent: Jun 03, 2025 08:06 AM
From: kuku Forever
Subject: "reset to green" to specific Cluster on my VC
HI
Unfortunately it doesn't work
I took some screenshots
Maybe you can see my mistake
Original Message:
Sent: Mar 13, 2025 11:17 AM
From: WhiteForEver
Subject: "reset to green" to specific Cluster on my VC
Hi,
`parentEntity` cannot be string. Your `esxhost01.name` returns a string. But it has to be an object. Please, try to use the code I did provide without any modifications. It should work.
------------------------------
If you find the answer helpful, please click on the RECOMMEND button.
Please visit my blog to get more information: https://clouddepth.com
Original Message:
Sent: Dec 24, 2024 08:50 AM
From: kuku Forever
Subject: "reset to green" to specific Cluster on my VC
hi
thank you for your reply
I see your script
but it does not work for me, and I am sure that I was wrong
I add input
(sdkinfo.VC:SdkConnection) , and (esxhost01.VC:HostSystem)
var alarmManager = sdkinfo.alarmManager;
System.log(alarmManager)
var parentEntity = esxhost01.name;
And continue your code
Original Message:
Sent: Dec 23, 2024 05:07 AM
From: WhiteForEver
Subject: "reset to green" to specific Cluster on my VC
Hi,
please find an example of the code, which will clear the alarms on a cluster level for an alarm, which is defined on a cluster level. You can play with the code, extend and adopt it to any alarm you want.
Please define `sdk` as a `VC:SdkConnection` and `host` as a `VC:Hostsystem` inputs or variables to your scriptable task or action element.
Please note: this is a simple working example. It's should/can be improved based on your needs and use case.
var alarmManager = sdk.alarmManager;var parentEntity = host.parent;var alarms = alarmManager.getAlarm(parentEntity);if (Array.isArray(alarms) && alarms.length > 0) { for (var i = 0; i < alarms.length; i++) { var alarm = alarms[i]; var vcAlarmFilterSpec = new VcAlarmFilterSpec(); parentEntity.sdkConnection.alarmManager.clearTriggeredAlarms(vcAlarmFilterSpec); }} else { System.log("No alarms found for the host.");}
------------------------------
If you find the answer helpful, please click on the RECOMMEND button.
Please visit my blog to get more information: https://www.clouddepth.com
Original Message:
Sent: Dec 19, 2024 01:40 AM
From: kuku Forever
Subject: "reset to green" to specific Cluster on my VC
need help how to do "reset to green" to specific Cluster on my VC
on my "VMware Aria Automation Orchestrator API Explorer" I see the the object "VcAlarmTriggeringAction"
reset to green in Javascript from VRO
for example my cluster is "myCluster01" and the issue is like "deleteThisAlarm"
but I dont know how to start
thank you.