This is Angel Evrov's Typepad Profile.
Join Typepad and start following Angel Evrov's activity
Join Now!
Already a member? Sign In
Angel Evrov
Recent Activity
Yes, the same commands work for version 5 also. According to our backward compatibility policy - all functionality is available in the future releases also (unless it's declared "deprecated", in which case it will be available in 2 more releases and disappear after that).
1 reply
..... | Set-VMQuestion -Option "I copied it" -Confirm:$false }
1 reply
It does cancel the power on. I wrote it this way as a precaution so someone won't copy/past it and answer some questions inappropriately. If you want to answer "I copied it" just replace "cancel" with "I copied it": ..... | Set-VMQuestion -Option "I copied it"}
1 reply
Sure :) # Start the VMs Start-VM * # Some of the VMs will fire errors # Go through the errors and for those that are caused by questions - get the question and answer it: $Error | where { $_.Exception -is [VMware.VimAutomation.ViCore.Types.V1.ErrorHandling.VmBlock edByQuestionException] } | % { Get-VM -Id $_.Exception.VmId | Get-VMQuestion | Set-VMQuestion -Option cancel }
1 reply
Hi Colin and Jamie, Yes, the content of to email can be customized to some extent. Although, the customization is rather limited. Here are the variables that can be used in the email action fields, that get populated at runtime (taken from the vSphere Api Reference): alarm -The object of the triggering alarm. alarmName - The name of the triggering alarm. declaringSummary - A summary of declarations made during the triggering of the alarm. eventDescription - The event description. newStatus - The status after the alarm is triggered. oldStatus - The status prior to the alarm being triggered. target - The object of the entity where the alarm is assocaited. targetName - The name of the entity where the alarm is triggered. triggeringSummary - A summary of information involved in triggering the alarm. Here is how you can create an alarm action that sends an email mentioning the name of the object that triggered it: > Get-AlarmDefinition EmailTestAlarm | New-AlarmAction -Email -Subject "VM {targetName} has powered on" -To me@mycompany.com Regards, -Angel
1 reply
Thanks JM, we'll fix this.
1 reply
Speaking of identical vCenter servers - I've written a script that can export alarm definitions form on vCenter in a file and then import them on another vCenter, thus mirroring the alarms. Here's the thread: http://communities.vmware.com/message/1618000#1618000
1 reply
Angel Evrov is now following The Typepad Team
Jul 15, 2010