SUMMARY: Urgent help needed in Shell scripting!

2007-12-25 5:08:00

Hi All,

Thanks everybody for their help:
I used the following script:
------------------------------------------------------------------
#!/bin/ksh
echo "#--- $(date)" >> /usr/local/log/stat.log
sar -ur 3600 24 >> /usr/local/log/stat.log
-------------------------------------------------------------
And put that in the cron to execute it every day 11:59 Pm.

Regards,
Luke

On 7/1/05, Aju Luke <sun.security at gmail.com> wrote:
> Hello everybody,
>
> I need shell script which can do the following things, i am doing
> this on one of our solaris box.
>
> Required:
>
> 1. to get the average CPU and memory usage per hour.
> 2. the report should be from 7:00am to 7:am next day(24 Hours) everyday.
>
> Can some one help me!!!
>
> Regards,
> Luke

Comments

Got something to say?

You must be logged in to post a comment.