Skip to content

Instantly share code, notes, and snippets.

@jcpowermac
Created December 11, 2013 17:32
Show Gist options
  • Save jcpowermac/7914825 to your computer and use it in GitHub Desktop.
Save jcpowermac/7914825 to your computer and use it in GitHub Desktop.
esxtop starts new every five minutes
#!/bin/sh
# Each run is 5 minutes
j=18
for i in `seq $j` ; do
let min=$i*5;echo "New esxtop is running - Total $min minutes";esxtop -a -b -d 2 -n 150 | gzip -9c > `hostname -s`-`date +"%Y%m%d-%H%M%S"`.csv.gz;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment