1832274 Members
1960 Online
110041 Solutions
New Discussion

Regarding sar command

 
ajk_5
Frequent Advisor

Regarding sar command

Dear all,

How can I use sar command showing the info. for different system resources including the utilization of CPU, memory, disk, system kernel parameter (e.g. nfile, maxfile, etc.), network, no. of users, and other important figure? Thanks!



Best Regards
Ajk
2 REPLIES 2
Pete Randall
Outstanding Contributor

Re: Regarding sar command

Well, you could check the man page, but the basics are:

sar -u : CPU Utilization
sar -d : Disk Activity
sar -b : Buffer Activity
sar -w : Swapping Activity (but sar is not very good at memory related info)
sar -q : Queue lengths (vmstat is better at this)
sar -c : System calls

sar does not report kernel parameters per se, nor no of users (use who | sort -u |wc -l), network info is better handled by lanadmin/netstat.

Does this help?


Pete


Pete
Tim D Fulford
Honored Contributor

Re: Regarding sar command

Pete forgott one

sar -v : some kernel table utilisations (nfile etc)

Tim
-