Unix Shell - Need Scripts for the monitor the mnttab(mounting)

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > November 2006 > Need Scripts for the monitor the mnttab(mounting)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Need Scripts for the monitor the mnttab(mounting)
Jobs Circular group

2006-11-22, 1:17 pm

Dear all,

We are Using the Solaris 10 (with Zones) there are about 50-60 storage
these are attached with the Netapp Filers.and using SAP with the Oracle
Database . There are so many filesystem has mounted on the servers
through NFS and local.


I require any tools/script for the monitor the all mounted file
systems suppose any file system unmount than i can get the any alert .

It will be appricitated ,any body can help.

Regards,

Nikunj Khakhar
Sr. Systems Engineer-UNIX
India.

vinayagar

2006-11-23, 7:33 am

hi,
i;m not sure for the tools, but we can mange some kind of shell
scripting.

we can do in one of the way is.
1, First take a snap shot of your file system mounted(use: df -h or
mount) and save in file as file1.txt
2, after one hour (your specfied time) take snap shot of FS and save in
file2.txt
3, excute diff file1.txt file2.txt


it will show any differnce..if it avilable..


then put in shellscript/cron tab.. for this..


vinayag.



Jobs Circular group wrote:
> Dear all,
>
> We are Using the Solaris 10 (with Zones) there are about 50-60 storage
> these are attached with the Netapp Filers.and using SAP with the Oracle
> Database . There are so many filesystem has mounted on the servers
> through NFS and local.
>
>
> I require any tools/script for the monitor the all mounted file
> systems suppose any file system unmount than i can get the any alert .
>
> It will be appricitated ,any body can help.
>
> Regards,
>
> Nikunj Khakhar
> Sr. Systems Engineer-UNIX
> India.


Bruce Barnett

2006-11-23, 1:16 pm

"vinayagar" <ravinayag@gmail.com> writes:

> hi,
> i;m not sure for the tools, but we can mange some kind of shell
> scripting.


I think you need to tell us exactly what your problem is.
For instance, here is a trivial script that does what you want.

#!/bin/sh

df -h > file1.txt
while true
do
sleep 3600
df -h >file2.txt
diff file1.txt file2.txt
mv file2.txt file1.txt
done

You said you didn't know what tools to use, yet you listed all of the
tools necessary (diff, df). What more do you want to know about? The
only other tool is the shell.


--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
vinayagar

2006-11-23, 1:16 pm

> mv file2.txt file1.txt
you can rem this line.

fine bruce...the tool i mention is kind of readymade s/w package.


vinayag.

Bruce Barnett wrote:
> "vinayagar" <ravinayag@gmail.com> writes:
>
>
> I think you need to tell us exactly what your problem is.
> For instance, here is a trivial script that does what you want.
>
> #!/bin/sh
>
> df -h > file1.txt
> while true
> do
> sleep 3600
> df -h >file2.txt
> diff file1.txt file2.txt
> mv file2.txt file1.txt
> done
>
> You said you didn't know what tools to use, yet you listed all of the
> tools necessary (diff, df). What more do you want to know about? The
> only other tool is the shell.
>
>
> --
> Sending unsolicited commercial e-mail to this account incurs a fee of
> $500 per message, and acknowledges the legality of this contract.


Bruce Barnett

2006-11-24, 7:24 am

"vinayagar" <ravinayag@gmail.com> writes:

> you can rem this line.
>
> fine bruce...the tool i mention is kind of readymade s/w package.



Well, as I said

>I think you need to tell us exactly what your problem is.


--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com