Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Marchelm Bomers <Marchelm.Bomers@its.monash.edu.au>
Subject: Re: Script Needed - Use of the PING Command
Date: 2000/04/13	[thread overview]
Message-ID: <38F534E9.F0ED18E2@its.monash.edu.au> (raw)
In-Reply-To: 38F52E96.708BDDE0@admin.aurora.edu

[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]

Steve

Is this the sort of thing that you are looking for (it's part of one that I/we
use  locally).

Marchelm

--------------------
#!/bin/tcsh -f
# Test network connectivity

# INITIAL HOUSEKEEPING

cd /usr/local/adm/gccscripts
set path=(/etc /bin /sbin /usr/sbin)

# TEST SYSTEMS (as per list in file pingtest.data

set syslist = ` awk '{print $1}' pingtest.data | grep -v "^#" | sed '/^$/d' `
foreach system ($syslist)
   clear
   /bin/echo "\nPINGTEST = $system\n"
   ping -c3 $system
   /bin/echo "\nPINGTEST = completed ($system)"
   sleep 2
end

exit
--------------------

The pingtest.data file simply lists the machines that you want tested.
Local e.g.

-----
# local systems

its-gipps1
130.194.205.61
130.194.15.13
130.194.212.15

# Clayton systems

130.194.26.132
130.194.26.133
vaxc

# external systems

www.telstra.com.au
-----

Steve Lowe wrote:
> 
> Has anyone written a script that will ping a host to determine
> availability along with connectivity?
> 
> Thanks in advance.
> 
>  -- Steve Lowe
>     Aurora University

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Card for Marchelm Bomers --]
[-- Type: text/x-vcard; charset=us-ascii; name="Marchelm.Bomers.vcf", Size: 598 bytes --]

begin:vcard 
n:Bomers;Marchelm
tel;fax:<BR>51226719 or 99026719<BR><BR>
tel;work:<BR>(03) 51226963&nbsp&nbsp&nbsp- Local<BR>(03) 99026963&nbsp&nbsp&nbsp- National<BR>+61 3 99026963 - International<BR><BR>
x-mozilla-html:FALSE
org:<CENTRE>Gippsland Campus</CENTRE>;<A HREF=http//www.its.monash.edu.au><IMG SRC=http://www-peninsula.cc.monash.edu.au/its/its.jpg BORDER=0></A><BR><BR>
adr:;;<BR>Northways Rd., Churchill<BR>Victoria 3842<BR>AUSTRALIA;;;;
version:2.1
email;internet:Marchelm.Bomers@its.monash.edu.au
title:Technology Services Coordinator
x-mozilla-cpt:;-1
fn:Marchelm B�mers
end:vcard

      reply	other threads:[~2000-04-13  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-12  4:00 Script Needed - Use of the PING Command Steve Lowe
2000-04-13  4:00 ` Marchelm Bomers [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox