06-15-2006
Always check the man pages for a command before posting any queries:
Quote:
Originally Posted by man page of sar
NAME
sar - system activity reporter
SYNOPSIS
sar [-ubdycwaqvmAMPS] [-p psetid] [-o file] t [n]
sar [-ubdycwaqvmAMPS] [-p psetid] [-s time] [-e time] [-i sec] [-f
file]
DESCRIPTION
In the first form above, sar samples cumulative activity counters in
the operating system at n intervals of t seconds. If the -o option is
specified, it saves the samples in file in binary format. The default
value of n is 1. In the second form, with no sampling interval
specified, sar extracts data from a previously recorded file, either
the one specified by -f option or, by default, the standard system
activity daily data file /var/adm/sa/sadd for the current day dd.
As is clear, if you just give the command 'sar' then sar searches for the current day's file in /var/adm/sa directory. If you want the current stats from sar, you have to provide the appropriate switch (such as -d for disk info, -u for cpu util and so on), the sampling interval and the number of samples.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
We have a script that uses
sar -u 1 10 | awk '/Average/ { print ( $2 + $3 ) }'
to get the CPU usage of a mutli engine machine. We think we are getting wrong information from the above string. We think it is adding up the total of the 12 engines and reporting back the total not the overall... (5 Replies)
Discussion started by: kevinb
5 Replies
2. AIX
hello
when i want to launch tha sar command with some arguments, i have this message :
sar -mu -P ALL
sar: 0551-201 Cannot open /var/adm/sa/sa08.
sar: 0551-213 Try running /usr/lib/sa/sa1 <increment> <number>
if I look in /var/adm/sa, there is nothing, no file.
the sar 2 5 is available.... (2 Replies)
Discussion started by: pascalbout
2 Replies
3. AIX
when i used sar -u -f xxxx
i've got the result like the following
...
18Aug200614:45:00 0 1 0 99
18Aug200614:50:00 1 1 0 98
18Aug200622:42:46 1 0 0 98
18Aug200607:00:00 0 0 100 0
18Aug200608:20:48 ... (0 Replies)
Discussion started by: pohnpohnpohn
0 Replies
4. HP-UX
Hey guys in sar -v 5 5 command what is the proc means. (1 Reply)
Discussion started by: sbn
1 Replies
5. AIX
I am trying to set up sar on my AIX server. We have been running sar and getting reports on out Linux boxes in the past but would like to try to do the same in AIX. On my Linux i have a sar.sh that looks like this:
#!/bin/bash
LC_ALL=C sar -A -f /var/log/sa/sa27 > /server023.txt
LC_ALL=C sar -A... (1 Reply)
Discussion started by: seacros
1 Replies
6. Solaris
I've been enabled sar in solaris.
in crontab:
and target dir where binar files is situated:
1.But sar indexing files as day(by default) from 1 to 30(31), how to add total date as prefix instead day prefix?
2.in my script for sar statistic i do command:
Somebody suggest me about that What... (1 Reply)
Discussion started by: sotich82
1 Replies
7. Solaris
Dear All,
I have SUNW,Ultra-4 Machine,running Solaris 8 while I tray sar command reported as:
$ sar
SunOS Kentut-Bau 5.8 Generic_117350-34 sun4u 01/27/09
00:00:00 %usr %sys %wio %idle
00:00:00 46 54 0 0
00:01:00 3 3 3 91... (1 Reply)
Discussion started by: fredginting
1 Replies
8. AIX
I am running below script to display last 48 hour data but the output is not displaying heading -
AIX eqrdb26u1 1 6 00CFD5E34C00 01/21/10
System configuration: lcpu=8 ent=2.00 mode=Uncapped
22:31:40 %usr %sys %wio %idle physc %entc
and footer -
Average 25 9 ... (1 Reply)
Discussion started by: noorm
1 Replies
9. Solaris
Hi Folks,
I am again here with a peculier problem.
Please see the code
root@celdws01: # sar -u -f /var/adm/sa/sa21
SunOS celdws01 5.9 Generic_118558-34 sun4u 12/21/2011
10:10:09 %usr %sys %wio %idle
10:10:09 unix restarts
Can anyone help me in... (9 Replies)
Discussion started by: vivek.goel.piet
9 Replies
10. Red Hat
Hiii All....
I am stuck at a monitoring issue, and need your help urgently.
I am trying to run
# sar 1 1
but I am getting error messages like:
"Please give a smaller interval value"
:confused: :wall:
I am using RHEL 5.7 and sysstat-9.x, on zVM.
I tried to erase and... (2 Replies)
Discussion started by: amiteshunique
2 Replies