Shutdown VMWare guests
Method 1
#list Vms
vim-cmd vmsvc/getallvms
#get power state
vim-cmd vmsvc/power.getstate "VMID"
#Shutdown
vim-cmd vmsvc/power.shutdown "VMID"
Note: If the virtual machine fails to shut down, run this command:
vim-cmd vmsvc/power.off "VMID"
Method 2
#Get Vms info
esxcli vm process list |grep -i World |cut -d: -f2
#shutdown Vm
esxcli vms vm kill --type= [soft,hard,force] --world-id= WorldNumber
ex: esxcli vm process kill -w 69237 -t soft
Monitoring response time with curl
curl -s -o /dev/null -w "Conecction: %{time_connect}s | Start transfer: %{time_starttransfer}s | Total time: %{time_total}s\n" ...
Mais vistos
-
Java Keytool Command These commands allow you to generate a new Java Keytool keystore file, create a CSR, and import certificates. A...
-
Kaspersky seems to be storing windows update files on the C Drive: Here -> C:\ProgramData\KasperskyLab\adminkit\1093\.working Change fo...
-
A few cmds to help with the DFS troubleshooting aspects, keep in mind all should be run from an elevated PowerShell Dfsdiag /TestDCs D...