The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
run xclock from local solaris to remote solaris panchpan SUN Solaris 9 06-30-2008 07:05 AM
jumpstart Solaris 10 on Solaris 9 server salty SUN Solaris 5 01-22-2008 12:57 PM
Disk Mirror in Solaris 9 via Solaris Volume Manager deal732 SUN Solaris 3 05-02-2007 08:43 AM
Running Solaris Sparc Apps on X86 Solaris stocksj UNIX for Dummies Questions & Answers 1 12-12-2006 02:13 PM
trouble auto connecting ssh 3.6.1 (Solaris 8) to ssh 3.0.1 (Solaris 6) falklandtim SUN Solaris 6 03-01-2005 05:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-09-2007
Registered User
 

Join Date: Nov 2005
Posts: 127
How to run sar on Sun Solaris?

I want to get some information about system activity report on UNIX server. I want to use 'sar'. But it seems that report is binary code and can not be read. Please advise how to do it. Thanks.
Reply With Quote
Forum Sponsor
  #2  
Old 03-09-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,644
If you want sar recordings, you would usually you put something, like this in the crontab for 'sys'

Then use the sar or sag commands to view the information, you would not deal directly with the files.

Code:
0 * * * 0-6 /usr/lib/sa/sa1
20,40 8-17 * * 1-5 /usr/lib/sa/sa1
5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A
If you just want samples
Code:
sar [options] <sample period> <number of samples>
Sample period should be at a minimum 5 seconds, or it can itself affect the results.

Last edited by reborg; 03-11-2007 at 01:39 PM.
Reply With Quote
  #3  
Old 03-13-2007
Registered User
 

Join Date: Nov 2005
Posts: 127
Thanks for your advice.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:41 AM.


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

Content Relevant URLs by vBSEO 3.2.0