[TriLUG] OT - Connectivity Test?

Ron Joffe rjoffe at yahoo.com
Thu May 3 10:24:49 EDT 2007


On Thursday 03 May 2007 10:20, Howard Boyd wrote:
> I would like to create a script (preferably Korn Shell) that will test
> connectivity between two Unix (AIX) servers. Ping isn't an option for me
> as one of the servers is in a DMZ and PING requests aren't allowed through
> the firewalls. The backend system is running an HTTP server. Can someone
> provide a command that I can use to test connectivity between the two
> servers? Thanks,

How about the following:

#!/bin/ksh

  integer result1

  result1=`ssh-keyscan $1 | wc | cut -c 7`

  if [[  ( $result1 = 0) ]]
  then
    echo "No Connection"
  fi




More information about the TriLUG mailing list