check nfs uptime

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

check nfs uptime

Post by babarhaq »

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.
For
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.

Thanx
Copyleft Solutions
http://www.copyleft.com.pk
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

use snmp queries, too.

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