![]() |
|
|
|
|
|||||||
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| disk and memory monitoring problem | uiqbal | Filesystems, Disks and Memory | 2 | 1 Week Ago 04:54 AM |
| system stats | rocker40 | AIX | 2 | 04-14-2008 07:24 AM |
| can I use ps to log overall system stats. | thebytegrill | AIX | 8 | 10-07-2007 02:20 AM |
| I/O Stats Metrics | LivinFree | UNIX for Advanced & Expert Users | 0 | 06-06-2006 09:38 PM |
| Display filename and wc stats | asianmike | UNIX for Dummies Questions & Answers | 1 | 04-12-2006 01:51 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
CPU, memory and disk stats
I've been asked to gather CPU, memory and disk stats in the following format:
Cpu_Max Cpu_Min Cpu_Avg Mem_Max Mem_Min Mem_Avg Disk_Max Disk_Min Disk_Avg Can anyone please tell me a command to gather all this info? Thanks! Todd |
| Forum Sponsor | ||
|
|
|
||||
|
Use sar
Code:
NAME
sar - system activity reporter
SYNOPSIS
sar [-aAbcdgkmpqruvwy] [-o filename] t [n]
sar [-aAbcdgkmpqruvwy] [-e time] [-f filename] [-i sec] [-
s time]
DESCRIPTION
In the first instance, the sar utility samples cumulative
activity counters in the operating system at n intervals of
t seconds, where t should be 5 or greater. If t is specified
with more than one option, all headers are printed together
and the output can be difficult to read. (If the sampling
interval is less than 5, the activity of sar itself can
affect the sample.) If the -o option is specified, it saves
the samples in filename in binary format. The default value
of n is 1.
In the second instance, no sampling interval is specified.
sar extracts data from a previously recorded filename,
either the one specified by the -f option or, by default,
the standard system activity daily data file
/var/adm/sa/sadd for the current day dd. The starting and
ending times of the report can be bounded using the -e and
-s arguments with time specified in the form hh[:mm[:ss]].
The -i option selects records at sec second intervals. Oth-
erwise, all intervals found in the data file are reported.
|
|
||||
|
sar is a much better tool then vmstat and iostat for gathering performance information over time..
There's some info on sar here and here. Look at the man page aswell, its a very usefull tool once you learn how to use it. Last edited by Tornado; 05-09-2008 at 07:09 AM. |
|
|||
|
Quote:
|
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|
|
The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
|
| "inappropriate ioctl for device" 421 service not available, remote server has closed connection ^m autosys awk trim bash eval bash exec bash for loop boot: cannot open kernel/sparcv9/unix close_wait command copy/move folder in unix curses.h cut command in unix dead.letter find grep find null character in a unix file grep multiple lines grep or grep recursive grep unique inaddr_any inappropriate ioctl for device logrotate.conf lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp batch sftp script snoop unix stale nfs file handle syn_sent tar exclude unix unix .profile unix com unix forum unix forums unix interview questions unix mtime unix simulator unix.com vi tab size vi+substitute+end+of+line+character while loop within while loop shell script |