To trigger the collection of vCenter Server logs when a particular error occurs:
- Create an alarm on the host in vCenter Server with the desired settings.
- Click the Actions tab in the Alarm Settings dialog.
- Click Add and select Run a command in the Action dropdown.
- Click the Configuration field and enter the command to run when the alarm is triggered. To collect the vCenter Server logs, enter:
C:\Windows\System32\cscript.exe "C:\Program Files\VMware\Infrastructure\VirtualCenter Server\scripts\vc-support.wsf" /z
Note: Ensure that you select the correct status for the Action. The status must match the status defined in the Triggers tab.
When this action is triggered, the vCenter Server log files will be located in