Output of esxtop defaults to non-interactive CSV with unknown TermInfo (2001448)

Output of esxtop defaults to non-interactive CSV with unknown TermInfo (2001448)


Symptoms


  • The command-line performance analysis utility esxtop or resxtop unexpectedly emits comma-separated-value (CSV) output instead of providing an interactive console.

    For example:
    "(CSV) (UTC)(0)","\\localhost\Memory\Memory Overcommit (1 Minute Avg)",
    "\\localhost\Memory\Memory Overcommit (5 Minute Avg)","\\localhost\Memory\Memory Overcommit (15 Minute Avg)",
    "\\localhost\Physical Cpu Load\Cpu Load (1 Minute Avg)",
    "\\localhost\Physical Cpu Load\Cpu Load (5 Minute Avg)", ...
    

     

  • The first line of the comma-separated-value (CSV) output from esxtop and resxtop reports a missing termcap entry.

    For example:
     
    esxtop -n 1 | head -c 80
    no termcap entry for a `ACMETerminal' terminal"(PDH-CSV 4.0) (UTC)(0)","\\loca~
    

     


Resolution


The esxtop and resxtop command-line utilities can provide an interactive console if there is a supported Terminfo description for the client console. Terminfo is a description of the features that enables programs to use display terminals in a device-independent manner. When connecting to an ESX host remotely via SSH, most SSH clients specify a supported or preferred Terminfo in the TERM environment variable. ESX and ESXi hosts may not have a Terminfo definition that matches the TERM defined by the client.

When the esxtop and resxtop utilities are invoked in interactive mode, they consult the TERM environment variable and look for a matching Terminfo definition in /usr/share/terminfo/. If no match is found, the utility cannot control full-screen character-based drawing on the terminal and defaults to batch mode, emitting CSV output.

Client-Specified TERM Environment Variable

To determine the Terminfo definition requested by a client:

  1. Open a console to the location where esxtop or resxtop is being invoked. If running on the ESX/ESXi host, see Unable to connect to an ESX host using Secure Shell (SSH) (1003807) or Using Tech Support Mode in ESXi 4.1 (1017910).
     
  2. Determine the current value of the TERM environment variable using the command:
     
echo $TERM


For example:
 

~ # echo $TERM
xterm-color

Supported Terminfo on VMware ESX/ESXi hosts

ESX and ESXi hosts have a list of known terminal types which they support drawing to. For ESX, around 2500 Terminfo definitions are defined. For ESXi, the list is limited to 4 simple terminals. To determine the Terminfo definitions available on a given host:

  1. Open a console to the ESX or ESXi host. For more information, see Unable to connect to an ESX host using Secure Shell (SSH) (1003807) or Using Tech Support Mode in ESXi 4.1 (1017910).
     
  2. Obtain a list of terminals using the command:
     
    find /usr/share/terminfo/ -type f


    For example:
     
    /usr/share/terminfo/x/xterm
    /usr/share/terminfo/a/ansi
    /usr/share/terminfo/v/vt102
    /usr/share/terminfo/l/linux

     

Use a supported Terminfo definition

Change the client's preferred terminal to match one of the supported terminals in the host's Terminfo description database using one of these methods:

  • Set the TERM environment variable to use a terminal definition similar to the preferred one:
     
    1. Open a console to the location where esxtop or resxtop is being invoked. If running on the ESX/ESXi host, see Unable to connect to an ESX host using Secure Shell (SSH) (1003807) or Using Tech Support Mode in ESXi 4.1 (1017910).
       
    2. Invoke the esxtop or resxtop command, specifying the TERM environment variable for the invocation which matches one of the supported Terminfo definitions on the host.

      For example:

      TERM=xterm esxtop
  • Configure the third-party client terminal or SSH client to specify a preferred terminal definition matching a supported Terminfo definition on the host. It is usually possible to put a client terminal or SSH client into xterm mode. For more information, see the documentation for your client terminal or SSH client.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值