Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- VMware Technology Network
- :
- Education and Certification
- :
- Certifications
- :
- VCAP: VMware Certified Advanced Professional Discussions
- :
- ESXTOP and Resxtop commands ( need help for -n)

VMware Edu & Cert Community

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi All

I am studying for my VCAP DCA and I still cannot figure out what the -n command means and how to work out the value. I know it stands for "Number of iterations. resxtop (or esxtop) collects and saves statistics this number of times, and then exits." according to the documenation but I cannot work out how to derive the number. Any help would be greatly appreciated as I am really lost.

**Example** : I want to use esxtop to collect data for 2 minutes at 3-second intervals and output file

I would run **esxtop -b -d 3 -n ? >> test.csv**

-b is batch mode

-d sets the delay in seconds

but i do not know what to put in -n

**Another example**: I want to use esxtop to collect data for 12 hours at 5-minutes intervals output file

I would run **esxtop -b -d 300 -n ? >> test1.csv**

is there a formula for n (time x 60) or something like

Thank you for your comments in advance

1 Solution

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

-n is just the number of iterations. That is it. If you want one million iterations and a delay of 5 then there will be 5 million captures of the values from the r/esxtop but -n is literally just the number of iterations

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Gregg
http://thesaffageek.co.uk

3 Replies

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Here's a good article on ESXTOP: ESXTOP - Yellow Bricks

-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)

VMware Training & Certification blog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi Scott28tt

I have read Duncan Eppings blog but I still cannot determine how to calculate the -n value when you have a specific time length.

He states

esxtop -b -d 2 -n 100 > esxtopcapture.csv

Where “-b” stands for batch mode, “-d 2″ is a delay of 2 seconds and “-n 100″ are 100 iterations. In this specific case esxtop will log all metrics for 200 seconds. If you want to record all metrics make sure to add “-a” to your string.

So in my example would it be **esxtop -b -d 3 -n 40 >> test.csv ** (120÷3=40)

And another example **esxtop -b -d 300 -n 144 >> test1.csv **((12*60*60)÷300=144

Can somone confirm if this is correct n = (number in seconds for durations ÷ interval in seconds)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

-n is just the number of iterations. That is it. If you want one million iterations and a delay of 5 then there will be 5 million captures of the values from the r/esxtop but -n is literally just the number of iterations

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Gregg
http://thesaffageek.co.uk