<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: check the system mount in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-system-mount/m-p/3515876#M219009</link>
    <description>Steven's solution has one small issue. On HP-UX,&lt;BR /&gt;ping returns 0 if it can resolve the hostname, does&lt;BR /&gt;not matter if the machine is up or down i.e ping&lt;BR /&gt;reports 0% or 100% packet loss. The return value&lt;BR /&gt;would be nonzero only if the host is unknown or &lt;BR /&gt;unreachable.&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
    <pubDate>Fri, 01 Apr 2005 00:16:09 GMT</pubDate>
    <dc:creator>Biswajit Tripathy</dc:creator>
    <dc:date>2005-04-01T00:16:09Z</dc:date>
    <item>
      <title>check the system mount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-system-mount/m-p/3515873#M219006</link>
      <description>I have a system mount between , but sometimes the connection will be broken because the network unstable , so that some process will be fail to run , it will cause some problems to us , could suggest is there any method that I will be informed once connection is lost  ? or could suggest any script that can check ( eg. every hour ) the connection is normal or not ? thx in advance.</description>
      <pubDate>Thu, 31 Mar 2005 22:37:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-system-mount/m-p/3515873#M219006</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2005-03-31T22:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: check the system mount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-system-mount/m-p/3515874#M219007</link>
      <description>ping -n 1 -m 30&lt;BR /&gt;&lt;BR /&gt;# This will send one ping packet and wait 30 seconds for a reply&lt;BR /&gt;&lt;BR /&gt;# get the return code&lt;BR /&gt;rc=$?&lt;BR /&gt;&lt;BR /&gt;if [ $rc -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;  echo "WAKE UP THE SYSADMIN"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Put what action you want the system to take in the if/fi loop.&lt;BR /&gt;&lt;BR /&gt;If this is nfs, try soft links they tend to survive network congestion better.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Same thing may apply to Samba.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 01 Apr 2005 00:00:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-system-mount/m-p/3515874#M219007</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-04-01T00:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: check the system mount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-system-mount/m-p/3515875#M219008</link>
      <description>Something like (not tested. syntax error might&lt;BR /&gt;be there):&lt;BR /&gt;&lt;BR /&gt;while [ /bin/true ]&lt;BR /&gt;do&lt;BR /&gt;ping REMOTE_MACHINE -n 1 | grep -q "100% packet loss"&lt;BR /&gt;if [ $? -eq 0 ]&lt;BR /&gt;then&lt;BR /&gt;mailx -s "Machine down" email@company.com &amp;lt;&amp;lt; EOF&lt;BR /&gt;REMOTE_MACHINE down&lt;BR /&gt;EOF&lt;BR /&gt;fi&lt;BR /&gt;sleep 3600&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Apr 2005 00:07:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-system-mount/m-p/3515875#M219008</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-04-01T00:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: check the system mount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-system-mount/m-p/3515876#M219009</link>
      <description>Steven's solution has one small issue. On HP-UX,&lt;BR /&gt;ping returns 0 if it can resolve the hostname, does&lt;BR /&gt;not matter if the machine is up or down i.e ping&lt;BR /&gt;reports 0% or 100% packet loss. The return value&lt;BR /&gt;would be nonzero only if the host is unknown or &lt;BR /&gt;unreachable.&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Apr 2005 00:16:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-system-mount/m-p/3515876#M219009</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-04-01T00:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: check the system mount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-system-mount/m-p/3515877#M219010</link>
      <description>thx all replies ,&lt;BR /&gt;&lt;BR /&gt;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 ,&lt;BR /&gt;&lt;BR /&gt;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</description>
      <pubDate>Fri, 01 Apr 2005 01:00:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-system-mount/m-p/3515877#M219010</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2005-04-01T01:00:08Z</dc:date>
    </item>
  </channel>
</rss>

