After you have prepared for batch mode, you can use esxtop or resxtop in this mode.
Procedure
Results
In batch mode, resxtop (or esxtop) does not accept interactive commands. In batch mode, 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.