VMware Cloud Community
vinod_sikka
Enthusiast
Enthusiast
Jump to solution

export and import vcenter alarms

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.

0 Kudos
1 Solution

Accepted Solutions
vThinkBeyondVM
VMware Employee
VMware Employee
Jump to solution

Please refer below resources

VMware KB: Restoring and copying vCenter Server alarms

Download | stripeyfish

Script to export/import Alarms between VC or synchronize alarms between 2 Virtual Centers


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

View solution in original post

0 Kudos
3 Replies
vThinkBeyondVM
VMware Employee
VMware Employee
Jump to solution

Please refer below resources

VMware KB: Restoring and copying vCenter Server alarms

Download | stripeyfish

Script to export/import Alarms between VC or synchronize alarms between 2 Virtual Centers


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

0 Kudos
vinod_sikka
Enthusiast
Enthusiast
Jump to solution

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

0 Kudos
vinod_sikka
Enthusiast
Enthusiast
Jump to solution

I renamed the downloaded sfvAlarmsSetup.pps to sfvAlarmsSetup.msi and it worked.