sar problem


 
Thread Tools Search this Thread
Operating Systems AIX sar problem
# 1  
Old 11-06-2006
sar problem

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 0 100 0
18Aug200606:53:46 0 0 100 0
18Aug200610:02:43 0 0 100 0
18Aug200602:51:06 0 0 100 0
18Aug200607:00:00 0 0 100 0
18Aug200607:00:00 0 0 100 0
18Aug200605:38:54 0 0 100 0
18Aug200607:00:00 0 0 100 0
18Aug200607:00:01 9 78 12 0
18Aug200607:00:00 121 133 0 -154
18Aug200607:00:00 2 3 90 5
18Aug200607:00:00 113 0 0 -13
18Aug200607:00:00 -0 0 100 -0
18Aug200607:00:00 -70 49 79 42
18Aug200607:00:00 -51 0 0 151
18Aug200607:00:00 29 784 -730 17


does anyone know why i've got the negative value
thanks in advance
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem with sar command in cron job

HI, I have a problem with 'sar' command. I am using the sar comman in script.when i execute the script manually using ./filenae, i am getting the desired output. But when i put the script in cron job i am not getting the desired value. Below is the script.. sar > $_LOCATION/sar.txt... (2 Replies)
Discussion started by: ahamed
2 Replies

2. AIX

SAR

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

3. Solaris

problem with sar command

hi all:- when i try to use sar command i get this error how can i fix it bash-3.00# sar -A sar: can't open /var/adm/sa/sa16 No such file or directory (5 Replies)
Discussion started by: sharkux
5 Replies

4. Solaris

Sar Not Running

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

5. AIX

sar

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. HP-UX

Sar

Hey guys in sar -v 5 5 command what is the proc means. (1 Reply)
Discussion started by: sbn
1 Replies

7. AIX

error with sar

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

8. AIX

interpretation of sar

hello with a sar i have this result: System configuration: lcpu=48 ent=4.00 14:06:37 %usr %sys %wio %idle physc %entc 14:06:39 26 9 3 62 1.63 40.7 14:06:41 26 9 3 63 1.58 39.4 14:06:43 ... (0 Replies)
Discussion started by: pascalbout
0 Replies

9. UNIX for Dummies Questions & Answers

Sar question

Hi all, With Sar, it gives you the CPU usage for the last x minutes etc, does anyone know if this is an average value when the machine in question has multiple CPU's, or simply just a reading of CPU #1? Ta. (3 Replies)
Discussion started by: danhodges99
3 Replies

10. Filesystems, Disks and Memory

sar

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
Login or Register to Ask a Question
sag(1)								   User Commands							    sag(1)

NAME
sag - system activity graph SYNOPSIS
sag [-e time] [-f file] [-i sec] [-s time] [-T term] [-x spec] [-y spec] DESCRIPTION
The sag utility graphically displays the system activity data stored in a binary data file by a previous sar(1) run. Any of the sar data items may be plotted singly or in combination, as cross plots or versus time. Simple arithmetic combinations of data may be specified. sag invokes sar and finds the desired data by string-matching the data column header (run sar to see what is available). The sag utility requires a graphic terminal to draw the graph, and uses tplot(1) to produce its output. When running Solaris 2.x and OpenWindows, perform the following steps: 1. Run an "xterm" as a Tektronics terminal: prompt# xterm -t 2. In the "xterm" window, run sag specifying a tek terminal: prompt# sag -T tek options OPTIONS
The following options are supported and passed through to sar (see sar(1)): -e time Select data up to time. Default is 18:00. -f file Use file as the data source for sar. Default is the current daily data file /usr/adm/sa/sadd. -i sec Select data at intervals as close as possible to sec seconds. -s time Select data later than time in the form hh[:mm]. Default is 08:00. -T term Produce output suitable for terminal term. See tplot(1) for known terminals. Default for term is $TERM. -x spec x axis specification with spec in the form: name[op name]...[lo hi] name is either a string that will match a column header in the sar report, with an optional device name in square brackets, for example, r+w/s[dsk-1], or an integer value. op is + - * or / surrounded by blank spaces. Up to five names may be specified. Parentheses are not recognized. Contrary to custom, + and - have precedence over * and /. Evaluation is left to right. Thus, A/A+B*100 is evaluated as (A/(A+B))*100, and A+B/C+D is (A+B)/(C+D). lo and hi are optional numeric scale limits. If unspecified, they are deduced from the data. Enclose spec in double-quotes ("") if it includes white space. A single spec is permitted for the x axis. If unspecified, time is used. -y spec y axis specification with spec in the same form as for -x. Up to 5 spec arguments separated by a semi-colon (;) may be given for -y. The -y default is: -y"%usr0100;%usr+%sys0100;%usr+%sys+%wio0100" EXAMPLES
Example 1: Examples of the sag command. To see today's CPU utilization: example$ sag To see activity over 15 minutes of all disk drives: example$ TS=`date +%H:%M` example$ sar -o /tmp/tempfile 60 15 example$ TE=`date +%H:%M` example$ sag -f /tmp/tempfile -s $TS -e $TE -y "r+w/s[dsk]" FILES
/usr/adm/sa/sadd daily data file for day dd ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWaccu | +-----------------------------+-----------------------------+ SEE ALSO
sar(1), tplot(1), attributes(5) SunOS 5.10 4 Mar 1998 sag(1)