[SunHELP] report

Lund, Dennis sunhelp at sunhelp.org
Fri Feb 16 15:04:59 CST 2001


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0985C.1F7EC02C
Content-Type: text/plain

If you "sar" is enabled you can write a small shell script to e-mail you
the daily average CPU usage.  Something a long the lines of:

#!/usr/bin/ksh
#
RPTFILE=/tmp/sar.rpt

sar | grep Average > $RPTFILE
mailx -s "Daily sar Report" e-mail_address < $RPTFILE
rm $RPTFILE
# EOF

You can modify the above to make it look better, or more descriptive.

Make a cron entry to run this script every night just before midnight
(23:55).

Dennis L. Lund


-----Original Message-----
From: william.x.ng at verizon.com [mailto:william.x.ng at verizon.com]
Sent: Friday, February 16, 2001 3:19 PM
To: sunhelp at sunhelp.org
Subject: [SunHELP] report



Does any one know any tools that can generate how's the CPU load daily
average. Like it generate a report daily and tells you how CPU load and
send report to you?

THanks
William

_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp


     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer. 



------_=_NextPart_001_01C0985C.1F7EC02C
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: [SunHELP] report</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>If you "sar" is enabled you can write a =
small shell script to e-mail you</FONT>
<BR><FONT SIZE=3D2>the daily average CPU usage.  Something a long =
the lines of:</FONT>
</P>

<P><FONT SIZE=3D2>#!/usr/bin/ksh</FONT>
<BR><FONT SIZE=3D2>#</FONT>
<BR><FONT SIZE=3D2>RPTFILE=3D/tmp/sar.rpt</FONT>
</P>

<P><FONT SIZE=3D2>sar | grep Average > $RPTFILE</FONT>
<BR><FONT SIZE=3D2>mailx -s "Daily sar Report" e-mail_address =
< $RPTFILE</FONT>
<BR><FONT SIZE=3D2>rm $RPTFILE</FONT>
<BR><FONT SIZE=3D2># EOF</FONT>
</P>

<P><FONT SIZE=3D2>You can modify the above to make it look better, or =
more descriptive.</FONT>
</P>

<P><FONT SIZE=3D2>Make a cron entry to run this script every night just =
before midnight</FONT>
<BR><FONT SIZE=3D2>(23:55).</FONT>
</P>

<P><FONT SIZE=3D2>Dennis L. Lund</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: william.x.ng at verizon.com [<A =
HREF=3D"mailto:william.x.ng at verizon.com">mailto:william.x.ng at verizon.com=
</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Friday, February 16, 2001 3:19 PM</FONT>
<BR><FONT SIZE=3D2>To: sunhelp at sunhelp.org</FONT>
<BR><FONT SIZE=3D2>Subject: [SunHELP] report</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>Does any one know any tools that can generate how's =
the CPU load daily</FONT>
<BR><FONT SIZE=3D2>average. Like it generate a report daily and tells =
you how CPU load and</FONT>
<BR><FONT SIZE=3D2>send report to you?</FONT>
</P>

<P><FONT SIZE=3D2>THanks</FONT>
<BR><FONT SIZE=3D2>William</FONT>
</P>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>SunHELP maillist  -  =
SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://www.sunhelp.org/mailman/listinfo/sunhelp" =
TARGET=3D"_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></F=
ONT>
</P>
<BR>

<P>     - - - - - - -  Appended by =
Scientific-Atlanta, Inc.  - - - - - - - =20
<BR>This e-mail and any attachments may contain information which is =
confidential, proprietary, privileged or otherwise protected by law. =
The information is solely intended for the named addressee (or a person =
responsible for delivering it to the addressee). If you are not the =
intended recipient of this message, you are not authorized to read, =
print, retain, copy or disseminate this message or any part of it. If =
you have received this e-mail in error, please notify the sender =
immediately by return e-mail and delete it from your computer. </P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C0985C.1F7EC02C--



More information about the SunHELP mailing list