VMware Cloud Community
gautam25128
Contributor
Contributor

Powercli Script to configure vCenter Alarms

Hello,


I need to configure vCenter Alams on around 15 vCenters. Can anyone please provide me powercli script for vCenter 5.5 and 6.0 to configure these Alarms.


Regards,

VD

0 Kudos
2 Replies
vThinkBeyondVM
VMware Employee
VMware Employee

There are several vCenters alarm and script will change as per the alarm you would like to configure.

Below is the VMware blog on how to get started with managing alarms using PowerCLI.

https://blogs.vmware.com/PowerCLI/2010/12/managing-vsphere-alarms-with-powercli.html

Let me know if you need more help on this. 


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

0 Kudos
LucD
Leadership
Leadership

Unfortunately the PowerCLI cmdlets do not offer the possibility to create new alarms.

For that you will have revert to using the API methods.

You'll find example scripts in my Alarm series.

There are some other good documents on creating alarms.

See for example the somewhat older but quite good vSphere alarm triggers


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos