VMware {code} Community
nemo0802
Contributor
Contributor

How to create a alarm to trigger a script when a vm is deleted in a Specific Vcenter Server(4.1 / 5.1)?

I'd like to create an alarm that triggers a script which runs whenever a VM is deleted within  a specific vCenter server.  The trigger script is used to collect the "will be deleted Vm's detail info for backup" ,  I see in the API documentation that I could use the EventAlarmExpression->new (eventType=>'VmRemovedEvent') (or perhaps one of the other eventType's dealing with delete). The problem is that I don't see a way to be able to monitor all VM's delete event within a vCenter server, i can only monitor a specific vm's delete event , So what should i do? could you give me some tips? thanks in advance.

0 Kudos
0 Replies