Ludwig003
Enthusiast
Enthusiast

esxtop csv file empty or corrupted

Hi,

My question is about the command esxtop in batch mode, I run this command:

esxtop -b -a -d 2 -n 1440 | gzip -9c > esxtopoutput.csv.gz

or this one:

esxtop -b -a -d 2 -n 100 > esxtopoutput.csv


I can see the csv file growing but at the end, the file is empty (0ko) or I get this message from gzip: short write, the csv.gz file is empty or the file is impossible to extract (corrupted because too big?)


Is anyone has ever seen that problem?

0 Kudos
5 Replies
jpschnee
VMware Employee
VMware Employee

Did you check to see if you are running out of diskspace on the datastore you're on?

-Joshua
0 Kudos
Ludwig003
Enthusiast
Enthusiast

Yes, I checked the free space and it is okay.

Something weird when I look to the file size during the data collect is that sometime, the size falls to 0 Ko and after, it continues to grow up. 

I looked to the security and it's okay because I ran esxtop with the root account.

0 Kudos
USHPCVDI
Enthusiast
Enthusiast

Currently having this same problem. Your post was the only one I could find describing this issue. Never had this problem before, it was working, then stopped. However none of my CSV files could be viewed in VisualEsxtop. I even tried removing the .esxtoprc files I was working with. Disk space not an issue as well. Would be interested if a solution was found, as I'm clueless at the moment.

0 Kudos
rahulgarg
VMware Employee
VMware Employee

Even I am facing the same problem. Have you found any solution to it ?

0 Kudos
rahulgarg
VMware Employee
VMware Employee

it turns out to be storage issue, I changed the path of storage and it worked fine.

0 Kudos