Created
September 22, 2015 10:40
-
-
Save deltapath-eric/c1dbefc9ce42fb8dacfa to your computer and use it in GitHub Desktop.
esxi command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # reboot | |
| vim-cmd vmsvc/getallvms | grep -i HOSTNAME | cut -d ' ' -f 1 | xargs vim-cmd vmsvc/power.reboot | |
| # get ip address | |
| vim-cmd vmsvc/getallvms | grep -i HOSTNAME | cut -d ' ' -f 1 | xargs vim-cmd vmsvc/get.guest | grep ipAddress | sed -n 1p | cut -d '"' -f 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment