<?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: ping server in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903022#M283345</link>
    <description>Also , Dont forget to assign points to all of your threads,&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
    <pubDate>Thu, 23 Nov 2006 04:21:07 GMT</pubDate>
    <dc:creator>Raj D.</dc:creator>
    <dc:date>2006-11-23T04:21:07Z</dc:date>
    <item>
      <title>ping server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903016#M283339</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have 5 servers. I need a script that can ping to all the 5 server and if it failed to respond, an sms alert will be sent to me.&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Thu, 23 Nov 2006 00:44:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903016#M283339</guid>
      <dc:creator>maxpayne</dc:creator>
      <dc:date>2006-11-23T00:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: ping server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903017#M283340</link>
      <description>Hi Md Farijalhumum bin Raml,&lt;BR /&gt;&lt;BR /&gt;Here is the script for pingcheck,&lt;BR /&gt;&lt;BR /&gt;########################################&lt;BR /&gt;RESULT=`ping server1 -n 3 | grep transmitted | awk '{print $7}'`&lt;BR /&gt;&lt;BR /&gt;if [ $RESULT = "0%" ]&lt;BR /&gt;then&lt;BR /&gt;tput bold ; echo " server1 is ALIVE " ; tput rmso&lt;BR /&gt;else&lt;BR /&gt;echo " server1 is NOT REACHABLE !!!! "&lt;BR /&gt;fi&lt;BR /&gt;########################################&lt;BR /&gt;&lt;BR /&gt;* You can add multiple server entry by calling through a server list file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Nov 2006 01:24:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903017#M283340</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-11-23T01:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: ping server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903018#M283341</link>
      <description>Hi maxpayne,&lt;BR /&gt;&lt;BR /&gt;Here is the full script that will help to check the all servers for ping,&lt;BR /&gt;&lt;BR /&gt;You need :&lt;BR /&gt;1) server.list  [ server names file ] &lt;BR /&gt;2) pingcheck.sh [ The below script ] &lt;BR /&gt;------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;####################################&lt;BR /&gt;# Script pingcheck.sh&lt;BR /&gt;# Ver 1.01  (Raj.D)&lt;BR /&gt;# Check all servers if alive or down.&lt;BR /&gt;#####################################&lt;BR /&gt;for i in `cat server.list`&lt;BR /&gt;do&lt;BR /&gt;echo $i&lt;BR /&gt;&lt;BR /&gt;RESULT=`ping $i -n 2 | grep transmitted | awk '{print $7}'`&lt;BR /&gt;&lt;BR /&gt;if [ $RESULT = "0%" ]&lt;BR /&gt;then&lt;BR /&gt;tput bold ; echo "$i  is ALIVE " ; tput rmso&lt;BR /&gt;else&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tput smso ; echo "$i is NOT REACHABLE !!!! " ; tput rmso&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;##########################################&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Nov 2006 01:33:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903018#M283341</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-11-23T01:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: ping server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903019#M283342</link>
      <description>The above script assumes there is no network issues , hence that will give 0% packet loss( For Alive cae) and 100% packet loss ( for not reachable case).&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Raj.</description>
      <pubDate>Thu, 23 Nov 2006 01:38:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903019#M283342</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-11-23T01:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: ping server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903020#M283343</link>
      <description>Hi Raj,&lt;BR /&gt;&lt;BR /&gt;Great script. How can I send an sms alert if the server is not reachable.</description>
      <pubDate>Thu, 23 Nov 2006 03:29:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903020#M283343</guid>
      <dc:creator>maxpayne</dc:creator>
      <dc:date>2006-11-23T03:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: ping server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903021#M283344</link>
      <description>Hi Maxpayne,&lt;BR /&gt;&lt;BR /&gt;You need to add the mailx command after else statement and before fi.&lt;BR /&gt;&lt;BR /&gt;ex:&lt;BR /&gt;&lt;BR /&gt;echo " $i is unreachable" | mailx -s "$i is unreachable"  yourcell@domain.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;Raj.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Nov 2006 04:20:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903021#M283344</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-11-23T04:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: ping server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903022#M283345</link>
      <description>Also , Dont forget to assign points to all of your threads,&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Thu, 23 Nov 2006 04:21:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-server/m-p/3903022#M283345</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-11-23T04:21:07Z</dc:date>
    </item>
  </channel>
</rss>

