Created
June 21, 2018 14:49
-
-
Save manualbashing/4955642aa81d74c3c5221a698abfe381 to your computer and use it in GitHub Desktop.
Shows which vms on a esxi host got stunned recently and for how long
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
| for log in `esxcli vm process list | \ | |
| grep Config | \ | |
| awk '{print $3}' | \ | |
| sed 's|[^/]*vmx$|vmware.log|g'` | |
| do | |
| printf "\n$log\n" | |
| cat $log | grep Checkpoint_Unstun | sed 's/^/\t/g' | |
| done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://twitter.com/manualbashing/status/1009812180458405888