cancel
Showing results for 
Search instead for 
Did you mean: 

collect

jousif
Frequent Advisor

collect

Hi admins,
could any one tell me how can I run collect
for 60 seconds for example and export the output file to excel
please advise.
5 REPLIES
Venkatesh BL
Honored Contributor

Re: collect

You mean 60 secs interval?...If so, use '-i60'.

Collect, when used with '-f' option, dumps the output to a data file. You can use 'cfilt' (a script that is installed when you install Collgui - A GUI for analysing collect data).
jousif
Frequent Advisor

Re: collect

Hi,
many thanks to your fast reply,
I mean 60 seconds not interval,
I want to run collect for spesific time
example 60 sec.
Ivan Ferreira
Honored Contributor

Re: collect

I think that collect does not have a number of samples configuration. You can capture data to a file and then extract data using start time and end time.

To export data to excel, you can use the cfilt command. Like this:

collect -sd -p collect_file.cgz | cfilt disk:name:r/s:rkb/s:w/s:wkb/s:wtq:%bsy

I use the pipe because cfilt directly over the file give me some errors.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Venkatesh BL
Honored Contributor

Re: collect

Ok...I think '-R' is the option you were looking for. From the manpage:

-R Specify the duration of data collection. Either of the following for-
mats can be specified:

NumberUnit ...
The value of Number is an integer. The value of Unit is one of the
following:

+ w - weeks, such as 4w for four weeks.

+ d - days, such as 2d for two days.

+ h - hours, such as 12h for twelve hours.

+ m - minutes, such as 30m for thirty minutes.

+ s - seconds, such as 45s for 45 seconds.
Any valid combination of times can be entered, such as 4w2d6h45m20s.

[+]Year:Mon:Day:Hour:Min:Sec
The same time format described for the -C option, except that a
plus sign (+) indicates the value is relative to the current time.
Without a plus sign, the value is an absolute time at which the
data collection period should end.

jousif
Frequent Advisor

Re: collect

Many Thanks to All,
specially to BL Venkatesh ,
I use the option -R its ok.