- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- check the system mount
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
03-31-2005 02:37 PM
03-31-2005 02:37 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 04:00 PM
03-31-2005 04:00 PM
Solution# This will send one ping packet and wait 30 seconds for a reply
# get the return code
rc=$?
if [ $rc -ne 0 ]
then
echo "WAKE UP THE SYSADMIN"
fi
Put what action you want the system to take in the if/fi loop.
If this is nfs, try soft links they tend to survive network congestion better.
A common cause of this is network congestion. If possible, consider a private network or VLAN between the boxes. Any time there is a windows box on the same collision domain as a NFS connection there is a liklihood of congestion that will interfere with operation of the NFS connection.
Same thing may apply to Samba.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 04:07 PM
03-31-2005 04:07 PM
Re: check the system mount
be there):
while [ /bin/true ]
do
ping REMOTE_MACHINE -n 1 | grep -q "100% packet loss"
if [ $? -eq 0 ]
then
mailx -s "Machine down" email@company.com << EOF
REMOTE_MACHINE down
EOF
fi
sleep 3600
done
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 04:16 PM
03-31-2005 04:16 PM
Re: check the system mount
ping returns 0 if it can resolve the hostname, does
not matter if the machine is up or down i.e ping
reports 0% or 100% packet loss. The return value
would be nonzero only if the host is unknown or
unreachable.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 05:00 PM
03-31-2005 05:00 PM
Re: check the system mount
I know ping can check whether host is exist or not , however , what my problem is sometimes the host is exist but the mount connection is lost between two servers , I just want to make sure the mount is connected ,
The above script seems only check the remote host is exist or not , but can't know the status of the system mount , could suggest what can I do ? thx