Highlighted
Contributor
Contributor

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

Jump to solution

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

0 Kudos
1 Solution

Accepted Solutions
7 Replies
Highlighted
Contributor
Contributor

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

Sorry for the DUH question...

0 Kudos
Highlighted
Immortal
Immortal

you can download from here, as well as get documentation

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

0 Kudos
Highlighted
Contributor
Contributor

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?

0 Kudos
Highlighted
Immortal
Immortal

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

Highlighted
Contributor
Contributor

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

thanks a bunch though

0 Kudos
Highlighted
Contributor
Contributor

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

0 Kudos