Good day,
I am trying to collect performance data using esxtop. I am using the batch mode to save the statistics in a csv file, and simultaneously compress the output file, using the next command:
esxtop -b -d 60 -n 30240| gzip -9c > esxtop.csv.gz
the idea is to collect data every 60 seconds for 21 days (21 days x 24 hours x 60 iterations per hour = 30240 iterations). However, the ssh session was closed during the second day and the process was interrupted.
Is there any way to run the process in background so that when the ssh session disconnects it does not affect the esxtop data collection? I tried with & at the end of the line, but it did not work.
Thanks in advance