Find UUID for a VM from powercli

          Find UUID for a VM from powercli


use power cli

1)Connect Vcenter server:

PowerCLI C:\> Connect-VIServer <IP>

2)Find VM UUID:

Get-VM <vm_name> | %{(Get-View $_.Id).config.uuid}

ESXCLI command to power ON or OFF VMs

   ESXCLI command to power ON or OFF VMs



Find the VM ID using:

 vim-cmd vmsvc/getallvms 

Using ID get VM power state:

 vim-cmd vmsvc/power.getstate <ID>

Power ON VM:

vim-cmd vmsvc/power.on<ID>

Power OFF VM:

vim-cmd vmsvc/power.off<ID>

Selenium firefox driver session fails with : Could not start a new session. Response code 500. Message: Expected browser binary location, but unable to find binary in default location,

 Error: With Firefox driver /gecko driver Could not start a new session. Response code 500. Message: Expected browser binary location, but u...