Tuesday, March 27, 2007

sar sysstat


[david@localhost soft]# rpm -ivh sysstat-5.0.5-1.src.rpm

[david@localhost soft]# rpmbuild --ba /usr/src/redhat/SPECS/sysstat.spec

[david@localhost soft]# ll /usr/src/redhat/RPMS/i386/sysstat-5.0.5-1.i386.rpm
-rw-r--r-- 1 root root 105209 Mar 27 17:23 /usr/src/redhat/RPMS/i386/sysstat-5.0.5-1.i386.rpm
[david@localhost soft]# rpm -ivh /usr/src/redhat/RPMS/i386/sysstat-5.0.5-1.i386.rpm
Preparing... ########################################### [100%]
1:sysstat ########################################### [100%]
[david@localhost soft]# sa
sa sasl2-static-mechlist saslpasswd2
safe_finger saslauthd sasl-sample-client
sar saslauthd1-checkpass sasl-sample-server
sasl2-sample-client sasldblistusers savecore
sasl2-sample-server sasldblistusers2
sasl2-shared-mechlist saslpasswd
[david@localhost soft]# sar --help
sysstat version 5.0.5
(C) Sebastien Godard
Usage: sar [ options... ] [ [ ] ]
Options are:
[ -A ] [ -b ] [ -B ] [ -c ] [ -d ] [ -H ] [ -h ] [ -i ] [ -q ]
[ -r ] [ -R ] [ -t ] [ -u ] [ -v ] [ -V ] [ -w ] [ -W ] [ -y ]
[ -I { | SUM | ALL | XALL } ] [ -P { | ALL } ]
[ -n { DEV | EDEV | SOCK | FULL } ]
[ -x { | SELF | ALL } ] [ -X { | SELF | ALL } ]
[ -o [ ] | -f [ ] ]
[ -s [ ] ] [ -e [ ] ]
[david@localhost soft]# sar -u 1 3
Linux 2.4.20-8 (intel) 08/30/2005

05:46:16 PM CPU %user %nice %system %idle
05:46:17 PM all 0.00 0.00 1.00 99.00
05:46:18 PM all 0.00 0.00 0.00 100.00
05:46:19 PM all 0.00 0.00 0.00 100.00

No comments :