Created
December 11, 2013 17:32
-
-
Save jcpowermac/7914825 to your computer and use it in GitHub Desktop.
esxtop starts new every five minutes
This file contains 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
#!/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