nerdexam
Broadcom-VMware

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.

Explain Resource Management in vSphere

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)
  • A
    5% (1)
  • B
    95% (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.

ARun a powerCLI command

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.

BRun scriptCorrect

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.

CSend SNMP traps

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.

DSend email notifications

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

#vCenter alarms#alarm actions#run script

Community Discussion

No community discussion yet for this question.

Full 1V0-21.20 Practice