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
Add nginx repository Ubuntu
Add nginx repository Ubuntu # 1. Download the NGINX signing key curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | sudo tee /u...
Mais vistos
-
Find Users Who Have Never Logged On Use the following PowerShell Command; Get-ADUser -Filter { LastLogonDate -notlike "*" -and En...
-
First you have to configure a wpad site in your IIS Open the proxypac.pac file you have previously created and save as wpad.dat. Copy wpa...
-
Java Keytool Command These commands allow you to generate a new Java Keytool keystore file, create a CSR, and import certificates. A...