Book Image

VMware vSphere 5.5 Cookbook

By : Abhilash G B
Book Image

VMware vSphere 5.5 Cookbook

By: Abhilash G B

Overview of this book

Table of Contents (22 chapters)
VMware vSphere 5.5 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Running esxtop in batch mode


Unlike interactive mode, this mode will let you issue a command to collect all or some of the statistics for a period of time and at the interval of your choice. It is particularly handy when you want to monitor the performance of an ESXi host for a certain time period.

Getting ready

We need access to the ESXi CLI via the console or SSH. You need to plan the number of performance snapshots that you want to gather and the interval between each snapshot.

How to do it…

To run esxtop in batch mode, connect to the ESXi host's CLI (usually done by using an SSH client) and run the following command:

# esxtop –a –d <delay> -n <iterations> > exportfilename

Here's an example:

# esxtop –a –d 10 –n 50 > perfstats.csv

Switch

Effect

-a

This will gather all the esxtop statistics

-d

This inserts a delay (in seconds) between every performance snapshot

-n

This is used to specify the number of snapshot iterations that have to be collected

How it works…

Once...