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 ~/.esxtop41rc) using the W interactive command.

You can now use resxtop (or esxtop) in batch mode.