Thread: RE: Re: Sys admin monitor script for solaris
RE: Re: Sys admin monitor script for
solaris
United States
1969-12-31 18:00:00
Kiran,
Thanks for the response.
I am actually interested in the "Peace od perl code"
I know that
1. "sar -r 1" will give the free memory and free swap memory status but
does not talk actual avail able memory
2. "echo '::memstat' |mdb -k" will give the free memory available but
takes little more time on busy box.
3. "vmstat" can also be used to determine the available free memory but
not the actual memory (Both physical and swap).
4. "prtconf | head -2 | tail -1" will display the actual physical
memory available on the machine.
5. "swap -s" can be used to determine the available swap memory but this
is different from what we see in "df -k" or "df -h"
I am trying to figure out standard procedure to determine the used/free
memory status for both physical and swap.
It will be very helpful If some one can share the script that is being
used by some monitoring tool or let me know the logic being used.
Thanks and regards,
Ramesh.
________________________________
From: perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com [mailto: perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com] On Behalf Of kiran
Sent: Wednesday, April 18, 2007 10:54 AM
To: perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com Subject: [PBML] Re: Sys admin monitor script for solaris
Hi,
You can use cron function from shell programming and add a peace
of perl code.
Regards .
Kiran Polu
--- In perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com <mailto:perl-beginner%40yahoogroups.com> , "Ramesh Polepalli"
<ramesh.polepalli...> wrote:
>
> HI,
>
>
>
> I am using Solaris 10 and need help in writing a script to monitor > memory
> usage to log a message if the usage exceeds 90%.
>
>
>
> Can some one help me with it or suggest some online reference which
> have some sample's?
>
>
>
> Thanks in advance for the help.
>
>
>
> Regards,
>
> Ramesh. >
>
>
>
>
> Ramesh Polepalli
>
>
>
>
>
>
>
>
>
> mFormation Technologies Inc.
> Direct Line: +91 80 6620 5939
> Switchboard: +91 80 6620 5900
>
> http://www.mformation.com <http://www.mformation.com>
>
>
>
>
>
>
>
>
>
>
> Visit WWW.MFORMATION.COM and see how the MFORMATION SERVICE MANAGER
can help you to transform your business.
>
> [Non-text portions of this message have been removed]
>
Ramesh Polepalli
mFormation Technologies Inc.
Direct Line: +91 80 6620 5939
Switchboard: +91 80 6620 5900
Visit WWW.MFORMATION.COM and see how the MFORMATION SERVICE MANAGER can help you to transform your business.
[Non-text portions of this message have been removed]