check nfs uptime

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Posts: 67
Joined: Tue May 20, 2003 10:07 am
Location: Islamabad

check nfs uptime

Postby babarhaq » Mon Feb 27, 2006 12:51 am

Hi all
I m trying to write a script which would, using different methods check the avaialability of a NAS server(infact a NetApp filer).
Three things which I have in mind are
1) Network accessibility
2) NFS service
3) check "upness" from cyclade terminal server

Only if all three checks fail the script will activate disaster recovery(Not part of the script). If any one of the test fails I will just generate an email alert.
Netwokr accessibility: I plan to use the return type of ping

NFS service: I plan to use showmount -e from a *nix host.

Cyclade terminal server: Should the best check way to check if the server(filer) is up or not if we loose all network connectivity to the box. I have no experience with terminal servers so I dont really know how to do that.

I need suggestions on the methods above, lang which you people think would be sufficient for this. Would bash be good enough? Any ideas in general would be great as well.

Copyleft Solutions

Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore

Postby lambda » Mon Feb 27, 2006 12:08 pm

use snmp queries, too.

as for what to write it in, perl might be a cleaner solution.

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests