VMware Cloud Community
plsntnrules
Contributor
Contributor
Jump to solution

Report of alarm definitions in vsphere client 4.0...possible?

Is there a way to generate a report of all the alarm definitions along with their settings in vsphere client 4.0?

Reply
0 Kudos
1 Solution
7 Replies
plsntnrules
Contributor
Contributor
Jump to solution

yes...but where can I get PowerShell or does it get installed by default?

Sorry for the DUH question...

Reply
0 Kudos
Troy_Clavell
Immortal
Immortal
Jump to solution

you can download from here, as well as get documentation

http://communities.vmware.com/community/vmtn/vsphere/automationtools/powercli

Reply
0 Kudos
plsntnrules
Contributor
Contributor
Jump to solution

sorry troy but HELP...

Installed powercli and i am able to connect to my vsphere virt center but not sure how to run the commands given in the script?

Do I create a batch file?

Reply
0 Kudos
Troy_Clavell
Immortal
Immortal
Jump to solution

save the .ps1 file to somewhere on your desktop/laptop once you have all the variables defined, then to execute the script, launch from the command line the name of the script, as seen below.

[vSphere PowerCLI] C:\scripts> .\checkalarms.ps1

You need to define the two varibles below

$VCServer = "myVCServer"
$Outfile = "D:\scripts\Alarms.txt"

I've also attached the listing of default alarms in vSphere 4.0.x

plsntnrules
Contributor
Contributor
Jump to solution

figured it out....just needed to rename the file to .ps1

thanks a bunch though

Reply
0 Kudos
gopinathan
Contributor
Contributor
Jump to solution

Hi Troy, I am trying to find out ALL the alarm triggers that are available in vSphere 5.0 May I know how did you retrieve the Alarm Triggers in your attachment?

Thanks

Gopi

Reply
0 Kudos