Hi,
I am working on migrating all configured alarms from one production vcenter (running on 5.1) to another (running with 5.5). Is there a way or power CLI script to perform the same task.
your prompt answers will be highly appreciated. I need this badly.
Please refer below resources
VMware KB: Restoring and copying vCenter Server alarms
Script to export/import Alarms between VC or synchronize alarms between 2 Virtual Centers
Please refer below resources
VMware KB: Restoring and copying vCenter Server alarms
Script to export/import Alarms between VC or synchronize alarms between 2 Virtual Centers
Hi Vicky,
Thanks for your quick response. When I tried downloading sfvAlarmsSetup from Download | stripeyfish it downloads a pps file, setup is missing there, can you pl try, if you find setup, could you please upload here.
I tried VMware KB: Restoring and copying vCenter Server alarms, it fails with following error :-
Confirm
Are you sure you want to perform this action?
Performing operation "Disconnect VIServer" on Target "User: ADS\Vinod Sikka,
Server: amdc-vc01, Port: 443".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help
(default is "Y"):A
Cannot convert argument "entity", with value: "System.Object[]", for
"GetAlarm" to type "VMware.Vim.ManagedObjectReference": "Cannot convert the
"System.Object[]" value of type "System.Object[]" to type
"VMware.Vim.ManagedObjectReference"."
At C:\Users\Vinod Sikka\Downloads\scripts\copyalarms\copyalarms.ps1:134 char:1
+ $vc2alarms = get-view $vc2alMgr.GetAlarm($vc1root)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument
I renamed the downloaded sfvAlarmsSetup.pps to sfvAlarmsSetup.msi and it worked.