1V0-21.20 · Question #96
An administrator is trying to create an alarm action that runs a batch file on a specific VM. Which alarm action should the administrator use?
The correct answer is B. Run script. To execute a batch file on a specific virtual machine as an alarm action, the administrator should use the "Run script" option which allows commands to be run within the guest operating system.
Question
An administrator is trying to create an alarm action that runs a batch file on a specific VM. Which alarm action should the administrator use?
Options
- ARun a powerCLI command
- BRun script
- CSend SNMP traps
- DSend email notifications
How the community answered
(22 responses)- A5% (1)
- B95% (21)
Why each option
To execute a batch file on a specific virtual machine as an alarm action, the administrator should use the "Run script" option which allows commands to be run within the guest operating system.
Running a PowerCLI command from an alarm typically involves interacting with vCenter Server or ESXi hosts, not directly executing a batch file inside a specific guest VM.
The "Run script" alarm action is specifically designed to execute a script or batch file directly within the guest operating system of the virtual machine associated with the alarm when its trigger conditions are met.
Sending SNMP traps is an alarm action used to notify network management systems about an event, not to execute a script within a virtual machine.
Sending email notifications is an alarm action used to alert administrators via email, not to execute a script within a virtual machine.
Concept tested: vSphere alarm actions - running scripts in guest OS
Source: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.monitoring.doc/GUID-8380E040-5C91-4D02-861B-00109C4A2181.html
Topics
Community Discussion
No community discussion yet for this question.