How to use esxtop or resxtop in batch mode


I noticed that even there is a quite a lot of documentation about esxtop or resxtop many users still have a problems with running esxtop in batch mode or with customize performance metrics. So I thought it would be good idea to blog out, step by step tutorial.

You can run esxtop on ESX directly, so no problem with that but if you would like to run resxtop against ESXi you have to use vMA (vSphere Management Assistance), it’s a virtual appliance which you can download from VMware download pages with all necessary documentation.

How to start esxtop or resxtop in a batch mode with customize configuration file ? By default esxtop or resxtop are loaded with default set of metrics. If you would run esxtop in a batch mode for a log time e.g 24h, your csv file would be very big and would contain a lot of data which in general it might not be useful during troubleshoot or for later analysis. If you wanna limit some gathered metrics during batch mode follow below steps:

  1. Start esxtop or resxtop

    esxtop main screen

    esxtop main screen

  2. Type h , screen with help will appear, you will see all possible switch which can be used in interactive mode.
  3. To switch between different set of metrics use key from Switch display section.
  4. E.g one wants to monitor Memory metrics – type m, you will see esxtop with a memory metrics
  5. If one wants to see list of metrics which are available and currently monitored  type F or f, * next to metrics indicates that metrics is currently monitored
  6. To exclude metrics from current view type letter which is next to desire metric.
  7. Once you do your selection on e.g Memory metrics, use switches from Switch display (first printscreen) to see different type of metrics.
  8. Finally when you done with your metrics, you have it selected what you need, in order to use your selected metrics in a batch mode configuration has to be saved to new configuration file, type W and specify path for new esxtop or resxtop configuration file, e.g. /root/batch_mode
  9. Quit from esxtop or resxtop (q)
  10. Start esxtop or resxtop in a batch mode, e.g.
    • esxtop -b -c /root/batch_mode -d 60 -n 60  > /root/batch_mode.csv
    • resxtop -b -c /root/barch_mode -d 60 -n 60 -server (ESXi server name) -username root > /root/batch_mode.csv
  11. Explanation to above switches:
    • -b — batch mode
    • -c — path to custom config file for esxtop or resxtop
    • -d — time between samples (in above example 60 seconds)
    • -n — how many samples (in above example 60 samples)
    • -server — IP or FQDN of your ESXi server
    • -username — I think doesn’t need explanation
    • > [path for output csv file] — redirection to file

    Someone may ask ” what about password switch? ” when using resxtop – you will be asked for by the system.

  12. When sampling get finish CSV output file can be downloaded and imported to Excel, Windows perfmon or to esxplot. Go to to find out how to play with output file


0 0 votes
Article Rating

Artur Krzywdzinski

Artur is Consulting Architect at Nutanix. He has been using, designing and deploying VMware based solutions since 2005 and Microsoft since 2012. He specialize in designing and implementing private and hybrid cloud solution based on VMware and Microsoft software stacks, datacenter migrations and transformation, disaster avoidance. Artur holds VMware Certified Design Expert certification (VCDX #077).

Notify of
Newest Most Voted
Inline Feedbacks
View all comments
Mike Brown

Had to reach out and say thanks. Worked a charm…

Would love your thoughts, please comment.x

FOR FREE. Download Nutanix port diagrams

Join our mailing list to receive an email with instructions on how to download 19 port diagrams in MS Visio format.

NOTE: if you do not get an email within 1h, check your SPAM filters

You have Successfully Subscribed!

Don't miss any posts. Subscribe To Our Newsletter!!

Join our mailing list to receive the latest news and updates from

You have Successfully Subscribed!

Pin It on Pinterest