Help on sar & sadc

Help on sar & sadc

Post by soundar » Wed, 18 Dec 2002 03:18:48



Hi,

I need to collect the system data over a period of 24hrs on my solaris
server. I want to use sar & sadc features to get the information.

Can anybody please help me in this regard in how to setup the crontab
file to get the statistics.

I want the procedure for doing the same.

TIA

Somwya

 
 
 

Help on sar & sadc

Post by Ange » Wed, 18 Dec 2002 03:32:05



> Hi,

> I need to collect the system data over a period of 24hrs on my solaris
> server. I want to use sar & sadc features to get the information.

> Can anybody please help me in this regard in how to setup the crontab
> file to get the statistics.

> I want the procedure for doing the same.

> TIA

> Somwya

There are usually some default entries already in the sys users crontab.
  You either simply uncomment those or base your cron entries on them.
You will also need to uncomment some lines in /etc/init.d/perf once you
look at the file it will become obvious which ones.

Angel

 
 
 

Help on sar & sadc

Post by nor » Wed, 18 Dec 2002 12:55:13



> Hi,

> I need to collect the system data over a period of 24hrs on my solaris
> server. I want to use sar & sadc features to get the information.

> Can anybody please help me in this regard in how to setup the crontab
> file to get the statistics.

> I want the procedure for doing the same.

> TIA

> Somwya

crontab -e
0,10,20,30,40,50 * * * * sar [options] >> /path/log_file
:wq

You can do similar things with vmstat, iostat, etc.

For real time analysis you might consider
http://www.sunperf.com/perfmontools.html.

Norm.

---------------------------------------------------------
The Lord is not slack concerning his promise, as some men
count slackness; but is longsuffering to us-ward, not
willing that any should perish, but that all should come
to repentance. 2 Peter 3:8
http://www.sunperf.com - Performance Monitoring Tools
http://www.justhacked.org - UNIX Security

 
 
 

Help on sar & sadc

Post by soundar » Thu, 19 Dec 2002 06:31:51




> > Hi,

> > I need to collect the system data over a period of 24hrs on my solaris
> > server. I want to use sar & sadc features to get the information.

> > Can anybody please help me in this regard in how to setup the crontab
> > file to get the statistics.

> > I want the procedure for doing the same.

> > TIA

> > Somwya

> crontab -e
> 0,10,20,30,40,50 * * * * sar [options] >> /path/log_file
> :wq

> You can do similar things with vmstat, iostat, etc.

> For real time analysis you might consider
> http://www.sunperf.com/perfmontools.html.

> Norm.

> ---------------------------------------------------------
> The Lord is not slack concerning his promise, as some men
> count slackness; but is longsuffering to us-ward, not
> willing that any should perish, but that all should come
> to repentance. 2 Peter 3:8
> http://www.sunperf.com - Performance Monitoring Tools
> http://www.justhacked.org - UNIX Security

I did that using the crontab -e which is suppose to pop up an editor
is not giving me any editor which it earlier used to do.

It is jumping to the next line and waiting for the input. so what
should i do to get a editor to add these lines . crontab -e itself
gives a text based editor.

Is there any way out , or am I doing somethimg wrong here.

Somwya

 
 
 

Help on sar & sadc

Post by Tony Walto » Thu, 19 Dec 2002 18:56:20



> I did that using the crontab -e which is suppose to pop up an editor
> is not giving me any editor which it earlier used to do.

> It is jumping to the next line and waiting for the input. so what
> should i do to get a editor to add these lines . crontab -e itself
> gives a text based editor.

> Is there any way out , or am I doing somethimg wrong here.

It's put you into ed, which is the default, unless you specify another
editor in the EDITOR environment variable.

This is clearly documented on the crontab manual page.

--
Tony

 
 
 

Help on sar & sadc

Post by Root of All Ev » Thu, 02 Jan 2003 20:19:41








>> > Hi,

>> > I need to collect the system data over a period of 24hrs on my solaris
>> > server. I want to use sar & sadc features to get the information.

>> > Can anybody please help me in this regard in how to setup the crontab
>> > file to get the statistics.

edit the crontab entries for the "sys" user.

Quote:>I did that using the crontab -e which is suppose to pop up an editor
>is not giving me any editor which it earlier used to do.

As root, type the following:

   VISUAL=vi crontab -e sys

This should  open the sys user's crontab file for editing with vi.

-tom

--

"You can only be -so- accurate with a claw-hammer."  --me