Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sat Aug 19, 2017 2:43 am


Software and Hardware virtualization, Linux Kernel Virtualization Module, FreeBSD jails, Vmware, Virtualbox, Xen

Author Message
mandrei99
Post  Post subject: Vmware ESXi - esxtop output is not readable  |  Posted: Mon Jan 26, 2015 6:53 am

Joined: Tue Aug 04, 2009 9:16 am
Posts: 245

Offline
 

Vmware ESXi - esxtop output is not readable

"esxtop" command is similar to Linux "top" command and it shows system (cpu/network) utilization statistics.

Some vmware esxi deployments will show very strange output in "esxtop" command:
Code:
e(PCPU 4)\%P-State P10","\\apophis\PCPU Power State(PCPU 4)\%P-State P11","\\apophis\PCPU Power State(PCPU 4)\%P-State P12","\\apophis\PCPU Power State(PCPU 4)\%P-State P13","\\apophis\PCPU Power State(PCPU 4)\%P-State P14","\\apophis\PCPU Power State(PCPU 4)\%P-State P15","\\apophis\PCPU Power State(PCPU 5)\%C-State C0","\\apophis\PCPU Power State(PCPU 5)\%C-State C1","\\apophis\PCPU Power State(PCPU 5)\%C-State C2","\\apophis\PCPU Power State(PCPU 5)\%C-State C3","\\apophis\PCPU Power State(PCPU 5)\%P-State P0","\\apophis\PCPU Power State(PCPU 5)\%P-State P1","\\apophis\PCPU Power State(PCPU 5)\%P-State P2","\\apophis\PCPU Power State(PCPU 5)\%P-State P3","\\apophis\PCPU Power State(PCPU 5)\%P-State P4","\\apophis\PCPU Power State(PCPU 5)\%P-State P5","\\apophis\PCPU Power State(PCPU 5)\%P-State P6","\\apophis\PCPU Power State(PCPU 5)\%P-State P7","\\apophis\PCPU Power State(PCPU 5)\%P-State P8","\\apophis\PCPU Power State(PCPU 5)\%P-State P9","\\apophis\PCPU Power State(PCPU 5)\%P-State P10","\\apophis\PCPU Power State(PCPU 5)\%P-State P11","\\apophis\PCPU Power State(PCPU 5)\%P-State P12","\\apophis\PCPU Power State(PCPU 5)\%P-State P13","\\apophis\PCPU Power State(PCPU 5)\%P-State P14","\\apophis\PCPU Power State(PCPU 5)\%P-State P15","\\apophis\PCPU Power State(PCPU 6)\%C-State C0","\\apophis\PCPU Power State(PCPU 6)\%C-State C1","\\apophis\PCPU Power State(PCPU 6)\%C-State C2","\\apophis\PCPU Power State(PCPU 6)\%C-State C3","\\apophis\PCPU Power State(PCPU 6)\%P-State P0","\\apophis\PCPU Power State(PCPU 6)\%P-State P1","\\apophis\PCPU Power State(PCPU 6)\%P-State P2","\\apophis\PCPU Power State(PCPU 6)\%P-State P3","\\apophis\PCPU Power State(PCPU 6)\%P-State P4","\\apophis\PCPU Power State(PCPU 6)\%P-State P5","\\apophis\PCPU Power State(PCPU 6)\%P-State P6","\\apophis\PCPU Power State(PCPU 6)\%P-State P7","\\apophis\PCPU Power State(PCPU 6)\%P-State P8","\\apophis\PCPU Power State(PCPU 6)\%P-State P9","\\apophis\PCPU Power State(PCPU 6)\%P-State P10","\\apophis\PCPU Power State(PCPU 6)\%P-State P11","\\apophis\PCPU Power State(PCPU 6)\%P-State P12","\\apophis\PCPU Power State(PCPU 6)\%P-State P13","\\apophis\PCPU Power State(PCPU 6)\%P-State P14","\\apophis\PCPU Power State(PCPU 6)\%P-State P15","\\apophis\PCPU Power State(PCPU 7)\%C-State C0","\\apophis\PCPU Power State(PCPU 7)\%C-State C1","\\apophis\PCPU Power State(PCPU 7)\%C-State C2","\\apophis\PCPU Power State(PCPU 7)\%C-State C3","\\apophis\PCPU Power State(PCPU 7)\%P-State P0","\\apophis\PCPU Power State(PCPU 7)\%P-State P1","\\apophis\PCPU Power State(PCPU 7)\%P-State P2","\\apophis\PCPU Power State(PCPU 7)\%P-State P3","\\apophis\PCPU Power State(PCPU 7)\%P-State P4","\\apophis\PCPU Power State(PCPU 7)\%P-State P5","\\apophis\PCPU Power State(PCPU 7)\%P-State P6","\\apophis\PCPU Power State(PCPU 7)\%P-State P7","\\apophis\PCPU Power State(PCPU 7)\%P-State P8","\\apophis\PCPU Power State(PCPU 7)\%P-State P9","\\apophis\PCPU Power State(PCPU 7)\%P-State P10","\\apophis\PCPU Power State(PCPU 7)\%P-State P11","\\apophis\PCPU Power State(PCPU 7)\%P-State P12","\\apophis\PCPU Power State(PCPU 7)\%P-State P13","\\apophis\PCPU Power State(PCPU 7)\%P-State P14","\\apophis\PCPU Power State(PCPU 7)\%P-State P15",


This is caused by the default of the TERM environment variable which is set to something unexistent:
Code:
~ # echo $TERM
vt100


How to fix vmware esxi esxtop output:


First get a list of available terminal types:
Code:
~ # find /usr/share/terminfo/ -type f
/usr/share/terminfo/v/vt102
/usr/share/terminfo/x/xterm
/usr/share/terminfo/a/ansi
/usr/share/terminfo/l/linux
/usr/share/terminfo/s/screen

Next: set esxi cli TERM variable to a supported type:
Code:
~ # TERM=xterm
~ # esxtop
10:52:52am up 214 days 15:27, 528 worlds, 9 VMs, 36 vCPUs; CPU load average: 0.12, 0.12, 0.12
PCPU USED(%):  89 1.0 4.5 4.2 4.5 6.0 8.6 4.9 AVG:  15
PCPU UTIL(%): 100 0.0 4.8 1.1 5.0 6.9 8.4 3.9 AVG:  16
CORE UTIL(%): 100     8.3      10      11     AVG:  32

Further reading on vmware KB website:Output of esxtop defaults to non-interactive CSV with unknown TermInfo (2001448).





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Vmware ESXi - esxtop output is not readable"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. SSH Login to Vmware ESXi with ssh keys

admin

0

112

Wed May 24, 2017 7:28 am

admin View the latest post

There are no new unread posts for this topic. How to add BIOS boot delay for particular VM in VMWare ESXi 5.x

mandrei99

0

646

Wed Feb 19, 2014 4:05 pm

mandrei99 View the latest post

There are no new unread posts for this topic. How to retrieve Vmware ESXi license from ssh shell command line

admin

0

189

Wed May 03, 2017 8:51 am

admin View the latest post

There are no new unread posts for this topic. KVM Nested in Vmware ESXi 5.5 - enable guest hypervisor vmx/svm flags without vsphere web client

admin

0

16954

Sat Feb 21, 2015 8:21 pm

admin View the latest post

There are no new unread posts for this topic. ESXi: How to see network statistics for vSwitch port using esxcli

mandrei99

0

5217

Mon Jan 26, 2015 7:07 am

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO