<?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 Connectivity Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/connectivity-script/m-p/4040276#M302813</link>
    <description>Hello,&lt;BR /&gt; We have a model which contains around 20 production servers. Most of the servers are having connectivity to the external servers(out of Model). Problem is now a days we are facing the problem of dropping connections from our servers to the external systems, which results time consuption to our testing.&lt;BR /&gt;&lt;BR /&gt;Help me in writing the script which will check for the connectivity to the external system, if connectivity dropped, it should Broadscats the message.&lt;BR /&gt;We are checking the connectivity as below----&lt;BR /&gt;&lt;BR /&gt;[root@p4ehub02] #: telnet 10.80.10.82 8888&lt;BR /&gt;Trying 10.80.10.82...&lt;BR /&gt;Connected to 10.80.10.82.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If we get the escape character, assume connectivity is in place.&lt;BR /&gt;==========================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@p4ehub02] #: telnet 10.80.10.82 8888&lt;BR /&gt;Trying 10.80.10.82...&lt;BR /&gt;&lt;BR /&gt;It means connectivity dropped..&lt;BR /&gt;==============================================&lt;BR /&gt;&lt;BR /&gt;Could anyone please help me to write the script which will broadscat the message if connectivity dropped on certain interval of time?</description>
    <pubDate>Thu, 19 Jul 2007 09:19:54 GMT</pubDate>
    <dc:creator>YogeshG</dc:creator>
    <dc:date>2007-07-19T09:19:54Z</dc:date>
    <item>
      <title>Connectivity Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connectivity-script/m-p/4040276#M302813</link>
      <description>Hello,&lt;BR /&gt; We have a model which contains around 20 production servers. Most of the servers are having connectivity to the external servers(out of Model). Problem is now a days we are facing the problem of dropping connections from our servers to the external systems, which results time consuption to our testing.&lt;BR /&gt;&lt;BR /&gt;Help me in writing the script which will check for the connectivity to the external system, if connectivity dropped, it should Broadscats the message.&lt;BR /&gt;We are checking the connectivity as below----&lt;BR /&gt;&lt;BR /&gt;[root@p4ehub02] #: telnet 10.80.10.82 8888&lt;BR /&gt;Trying 10.80.10.82...&lt;BR /&gt;Connected to 10.80.10.82.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If we get the escape character, assume connectivity is in place.&lt;BR /&gt;==========================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@p4ehub02] #: telnet 10.80.10.82 8888&lt;BR /&gt;Trying 10.80.10.82...&lt;BR /&gt;&lt;BR /&gt;It means connectivity dropped..&lt;BR /&gt;==============================================&lt;BR /&gt;&lt;BR /&gt;Could anyone please help me to write the script which will broadscat the message if connectivity dropped on certain interval of time?</description>
      <pubDate>Thu, 19 Jul 2007 09:19:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connectivity-script/m-p/4040276#M302813</guid>
      <dc:creator>YogeshG</dc:creator>
      <dc:date>2007-07-19T09:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Connectivity Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/connectivity-script/m-p/4040277#M302814</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You don't say what OS version you are using, but instead of using telnet, I'd use ping.&lt;BR /&gt;&lt;BR /&gt;From a central host, I'd first create a list of all the hosts I want to test, call it hosts.dat.  Then I'd do something like the following:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;while read HOST&lt;BR /&gt;do&lt;BR /&gt;  ping $HOST -n 1 &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;  STAT=$?&lt;BR /&gt;  if (( $STAT )) ; then&lt;BR /&gt;    echo "$HOST is not responding"&lt;BR /&gt;  fi&lt;BR /&gt;done &amp;lt; hosts.dat&lt;BR /&gt;&lt;BR /&gt;Instead of the echo command, you could put some kind of mail, broadcast or pager notification.  If the network is flakey, you may want to increase the number of pings from 1 to something bigger.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mark</description>
      <pubDate>Fri, 20 Jul 2007 12:37:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/connectivity-script/m-p/4040277#M302814</guid>
      <dc:creator>Mark Ellzey</dc:creator>
      <dc:date>2007-07-20T12:37:09Z</dc:date>
    </item>
  </channel>
</rss>

