check nfs uptime

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

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.
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
babarhaq
Naik
 
Posts: 67
Joined: Tue May 20, 2003 10:07 am
ICQ: 31148088
Website: http://babarhaq.blogspot.com
WLM: babarhaq
Yahoo Messenger: mbabarhaq
AOL: babarhaq
Location: Islamabad

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.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron