The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,173 other subscribers

ESXi: when esxtop shows garbage.

Posted by jpluimers on 2016/09/14

The ESXi console top to show processes is not available *, the alternative is esxtop. But that can show garbage because the ESXi console has a very limited support of terminals **.

For instance, when connecting from a Mac OS X terminal through ssh, this is my terminal:

# echo $TERM
xterm-256color

The solution:

TERM=xterm esxtop

–jeroen

via: VMware KB: Output of esxtop defaults to non-interactive CSV with unknown TermInfo.

  • Top isn’t found:

# top
-sh: top: not found

** List of supported terminals on my system:

# find /usr/share/terminfo/ -type f
/usr/share/terminfo/s/screen
/usr/share/terminfo/l/linux
/usr/share/terminfo/a/ansi
/usr/share/terminfo/v/vt102
/usr/share/terminfo/x/xterm

2 Responses to “ESXi: when esxtop shows garbage.”

  1. Digitolle said

    jpluimers, what a wonderfully simple solution to an annoying issue – thanks!

    I took the following steps to be lazy:
    1. Created a file called “top” in /bin
    2. Put your solution in there: TERM=xterm esxtop
    3. chmod +x /bin/top

    Now I can just type “top” and garbage no more, with the added benefit of not having to remember to type in the less familiar esxtop.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: