1757793 Members
2608 Online
108863 Solutions
New Discussion юеВ

# sar -q

 
milaren
Super Advisor

# sar -q

# sar -q
sar: Can't open /var/adm/sa/sa26
why and what need to be installed?
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: # sar -q

If you want output to the terminal from sar you must specify a time increment and number of iterations on the command line.

Something like:

# sar -q 5 10

Where 5 is the number of seconds between each sample and 10 is the number of times it will run.
Sridhar Bhaskarla
Honored Contributor

Re: # sar -q

Hi,

If you do not specify any argument, sar will look at a saved file under /var/adm/sa/sa{date}.
If you enabled sar through cron using "sa1|sa2|sadc", then it will dump sar stats into that directory.

To get runtime measurements, you would need to use

sar -q interval iterations

sar -q 2 20

will print 20 values sampled every 2 seconds.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sunil Sharma_1
Honored Contributor

Re: # sar -q

Hi,
It's looking for some more parameter like intervel and number of time .
like
sar -q 1 10


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***