Skip to content

Instantly share code, notes, and snippets.

@manualbashing
Created June 21, 2018 14:49
Show Gist options
  • Select an option

  • Save manualbashing/4955642aa81d74c3c5221a698abfe381 to your computer and use it in GitHub Desktop.

Select an option

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
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
@manualbashing
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment