VMware Cloud Community
paul_xedos
Enthusiast
Enthusiast

esxtop redirect to a file, header info missing and formatting garbled

Hi,

I'm looking to capture the esxtop output to a file in order to get summary data for cpu and  load average

2:23:14pm up 32 days 19:30, 519 worlds, 3 VMs, 16 vCPUs; CPU load average: 0.16, 0.16, 0.16

PCPU USED(%): 3.5 3.1 3.5 8.6  39  62 3.5 2.9 AVG:  15

PCPU UTIL(%): 3.8 3.3 3.6 4.7  36  65 4.1 3.2 AVG:  15

I am finding if I redirect this to a file using either

esxtop -n1 > esxtop.out

or in batch mode

esxtop -n1 -b > esxtop.out

the output not only truncates the top few lines but the display is pretty garbled losing its formatting

"(PDH-CSV 4.0) (UTC)(0)","\\soptct52\Memory\Memory Overcommit (1 Minute Avg)","\\soptct52\Memory\Memory Overcommit (5 Minute Avg)","\\soptct52\Memory\Memory Overcommit (15 Minute Avg)","\\soptct52\Physical Cpu Load\Cpu Load (1 Minute Avg)","\\soptct52\Physical Cpu Load\Cpu Load (5 Minute Avg)","\\soptct52\Physical Cpu Load\Cpu Load (15 Minute Avg)","\\soptct52\Physical Cpu(0)\% Processor Time","\\soptct52\Physical Cpu(1)\% Processor Time","\\soptct52\Physical Cpu(2)\% Processor Time","\\soptct52\Physical Cpu(3)\% Processor Time","\\soptct52\Physical Cpu(4)\% Processor Time","\\soptct52\Physical Cpu(5)\% Processor Time","\\soptct52\Physical Cpu(6)\% Processor Time","\\soptct52\Physical Cpu(7)\% Processor Time",

I've tried various term settings in case that is the issue ( xterm, vt102) but that's made no difference.  Does anyone know why the display is outputting in this manner

Thanks
Paul

0 Kudos
0 Replies