HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NFS Client - need error messages
Operating System - HP-UX
1830900
Members
3359
Online
110017
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 02:24 AM
02-17-2003 02:24 AM
I have a need to monitor when an NFS Client sees the relevant server go down (ie the mount point becomes unavailable).
Have tried this in 10.20 and 11.00 but cannot get any messages appearing in syslog.log or in dmesg.
Any ideas anyone? Ian
Have tried this in 10.20 and 11.00 but cannot get any messages appearing in syslog.log or in dmesg.
Any ideas anyone? Ian
Building a dumber user
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 03:39 AM
02-17-2003 03:39 AM
Solution
Even if the NFS server goes down youre not going to get an error unless someone/some program tries to acces it - then you get an NFS not repsonding error.
All I can think of is you write a monitor job which runs say every min or two and does a df/bdf | grep 2>&1
then grep -i "not responding". If the nfs server is down or not available you will get this error, then you can email or run logger to write something to syslog or whatever to raise the alarm.
All I can think of is you write a monitor job which runs say every min or two and does a df/bdf | grep
then grep -i "not responding". If the nfs server is down or not available you will get this error, then you can email or run logger to write something to syslog or whatever to raise the alarm.
Im from Palmerston North, New Zealand, but somehow ended up in London...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 04:58 AM
02-17-2003 04:58 AM
Re: NFS Client - need error messages
Hi!
Try something simple like:
/sbin/mount | grep / >/dev/null
if [ $? -eq 0 ]; then
echo "/ mounted"
else
/mount -F nfs server:/
if [ $? -eq 0 ]; then
echo "server1: mounted /"
else
echo "Cannot mount /"
# Program to notify by e-mail:
# notify.me $MYERRORCODE
exit 1
fi
Regards,stan
Try something simple like:
/sbin/mount | grep /
if [ $? -eq 0 ]; then
echo "/
else
/mount -F nfs server:/
if [ $? -eq 0 ]; then
echo "server1: mounted /
else
echo "Cannot mount /
# Program to notify by e-mail:
# notify.me $MYERRORCODE
exit 1
fi
Regards,stan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2003 07:39 AM
02-17-2003 07:39 AM
Re: NFS Client - need error messages
Magic answers, thanks!
Share and Enjoy! Ian
Share and Enjoy! Ian
Building a dumber user
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP