Reply to Message

View discussion in a popup

Replying to:
aevrov
VMware Employee
VMware Employee

Hi qwert1235,

Here is one solution to your problem. When you want to synch the alarms on VC2:

1. Delete all alarms on VC2.

2. For each alarm on VC1:

2.1. Get its AlarmSpec object and use it to create a corresponding alarm on VC2. This can be done with GetAlarm and CreateAlarm methods of the AlarmManager. (You may face some difficulty if you have alarms that are associated with an entity other than the inventory root. In this case you have to somehow map the entity from VC1 to entity from VC2 in order to make an exact copy of the alarms configuration. You can implement some logic for traversing the inventory if you need to maintain such a mapping.)

Hope this helps. Let me know if you have any difficulty scripting this.

Regards,

-Angel