Created
June 23, 2016 13:33
-
-
Save dehio3/894a2ce0a4783594e5abe3296f2b6ff5 to your computer and use it in GitHub Desktop.
各ESXiにssh接続し、仮想サーバのサマリー情報を取得するスクリプト(ssh実行コマンドテキスト)
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
| rm /tmp/vmsvc.summary* ; vim-cmd vmsvc/getallvm | awk -v esxi=`uname -n` '($1~/^[0-9]+$/){print $2;command = sprintf("vim-cmd vmsvc/get.summary %s > /tmp/vmsvc.summary,%s,%s",$1,esxi,$1);buf = system(command);close(command)}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment