The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
disk and memory monitoring problem uiqbal Filesystems, Disks and Memory 0 05-14-2008 02:07 PM
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-07-2008
Registered User
 

Join Date: May 2008
Posts: 2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-07-2008
Registered User
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 172
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
* HD: format, prtvtoc
* cpu, mem: prtdiag, psrinfo -v, iostat -En (HD-Status)
Reply With Quote
  #3 (permalink)  
Old 05-07-2008
robotronic's Avatar
Can I play with madness?
 
Join Date: Apr 2002
Location: Italy
Posts: 389
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
What do you mean with Max, Min and Avg? These are values that implies a continuous monitoring of system resources in a certain range of time.

Once collected all the info (maybe in a logfile) you could parse the output (awk?) and produce the stats you need.

For cpu and memory usage you can have a look at vmstat command, for disks try iostat. However, maybe there's a better utility which I don't know that can do it all
Reply With Quote
  #4 (permalink)  
Old 05-07-2008
Tornado's Avatar
Registered User
 

Join Date: Nov 2006
Location: Melbourne
Posts: 240
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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.
man sar for full details
Reply With Quote
  #5 (permalink)  
Old 05-09-2008
Registered User
 

Join Date: Jul 2006
Posts: 187
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Code:
mpstat - for processor
vmstat - for Virtual memory
iostat - for I/O
sar - for processor activities
top - for process wise CPU usage
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 03:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102