Monday, October 25, 2010

small script to collect data using esxtop

here is a script to collect 24 hours worth of data into 24 separate files:

for i in `seq 24`;do esxtop -a -b -n 1800 -d 2 > esxtop_$i.csv;done

You can adjust the "seq x" number to any number of hours and it names the file with the hour it is running in...

Cheers :)

No comments:

Post a Comment