Hello:
I am wondering if it's possible to create Alarms (with specific settings) on VC by using commands (script) thorugh CLI. Is it possible? Is there any examples?
I know it's very easy to create alarms (with specific settings) manually, but I want to distribute the script and create the same alarms (maybe delete all existing alarms before) on all my VCs very quick.
Please let me know if you have any ideas where should I start.
Best regards,
Olegarr
No problem, you're more than welcome
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I don't think that is something you can do through the CLI. If you are using vCenter though, you might be able to export a copy of the table(s) from the vCenter database that has the alarm configurations and import that into other instances.
K. Chris Nakagaki (Zsoldier)
There are no cmdlets for that in PowerCLI.
That said, have a look at New-TkeAlarm in the VI Toolkit Extensions.
=====
Carter Shanklin
Read the PowerCLI Blog
[Follow me on Twitter|http://twitter.com/cshanklin]
Chris,
Thank you very much for your reply.
If it's not possible to create alarms by using CLI it will change whole my plan...
Can someone else prease share their thoughts?
Thanks a lot,
olegarr
You can create alarms from PowerShell through the SDK method CreateAlarm.
See and for some examples.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Luc,
Thanks a lot for your help. I'll follow you advice, however I might still ask you few questions:).
Thanks again,
olegarr
No problem, you're more than welcome
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference