Unlike interactive mode, batch mode will let you issue a command to collect all or some of the statistics for a period of time and at the desired interval. This is particularly handy when you want to monitor the performance of an ESXi host for a certain period of time.
Running esxtop in batch mode
Getting ready
You will need access to the CLI of the ESXi host. The CLI can be accessed on the host's console via an IPMI interface (such as Dell's DRAC or HP's ILO), or by connecting to the server using an SSH client.
You need to plan the number of performance snapshots that you want to gather and the interval between each snapshot.