ESXTOP or RESXTOP in Batch Mode – How To

Batch mode allows you to collect and save resource utilization statistics in a file.
To run in batch mode, you must first prepare for batch mode.

  1. Run resxtop (or esxtop) in interactive mode.
  2. In each of the panels, select the columns you want.
  3. Save this configuration to a file (by default ~/.esxtop4rc) using the W interactive command.

After you have prepared for batch mode, you can use esxtop or resxtop in this mode.

  1. Start resxtop (or esxtop) to redirect the output to a file.
  2. Process statistics collected in batch mode using tools such as Microsoft Excel and Perfmon.

For example:
esxtop -b > my_file.csv

N.B. The filename must have a .csv extension. In batch mode, resxtop (or esxtop) does not accept interactive commands. The utility runs until it produces the number of iterations requested (see command-line option n, below, for more details), or until you end the process by pressing Ctrl+c.

Batch Mode Command-Line Options:

Show all statistics.
This option overrides configuration file setups and shows all statistics. The configuration file can be the default ~/.esxtop4rc configuration file or a user-defined configuration file.

b  Runs resxtop (or esxtop) in batch mode.

c  Load a user-defined configuration file.
If the -c option is not used, the default configuration filename is ~/.esxtop4rc. Create your own configuration file, specifying a different filename, using the W singlekey interactive command.

d  Specifies the delay between statistics snapshots.
The default is five seconds. The minimum is two seconds. If a delay of less than two seconds is specified, the delay is set to two seconds.

n  Number of iterations. resxtop (or esxtop) collects and saves statistics this number of times, and then exits.

server  The name of the remote server host to connect to (required, resxtop only).

portnumber  The port number to connect to on the remote server.
The default port is 443, and unless this is changed on the server, this option is not needed. (resxtop only)

username  The user name to be authenticated when connecting to the remote host.
You are prompted by the remote server for a password, as well (resxtop only).



About PiroNet

Didier Pironet is an independent blogger and freelancer with +15 years of IT industry experience. Didier is also a former VMware inc. employee where he specialised in Datacenter and Cloud Infrastructure products as well as Infrastructure, Operations and IT Business Management products. Didier is passionate about technologies and he is found to be a creative and a visionary thinker, expressing with passion and excitement, hopefully inspiring and enrolling people to innovation and change.
This entry was posted in Uncategorized. Bookmark the permalink.

One Response to ESXTOP or RESXTOP in Batch Mode – How To

  1. deinoscloud says:

    Scott Drummonds and Geoff White have released the first official release of esxplot, version 1.0. esxplot available at

    esxplot is a GUI application that lets you explore the data collected by esxtop in batch mode. The program takes a single command line argument which is the esxtop batch mode output file. You can also simply start esxplot without any arguments, and enter a dataset file via the File attribute of the menu bar. Esxplot loads the data in this file and presents the metrics as a hierarchical tree where the values are selectable in the left panel. In the right panel, a graph is plotted (value over time) of the selected metric, in this way, you can “browse” the contents of these somewhat unwieldy files.

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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