From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f8ca0a54c191af36 X-Google-Attributes: gidfee84,public From: Marchelm Bomers Subject: Re: Script Needed - Use of the PING Command Date: 2000/04/13 Message-ID: <38F534E9.F0ED18E2@its.monash.edu.au>#1/1 X-Deja-AN: 610487990 Distribution: world References: <38F52E96.708BDDE0@admin.aurora.edu> X-Accept-Language: en X-Sender: "Marchelm Bomers" <@smtp.monash.edu.au> Content-Type: multipart/mixed; boundary="------------862BB7D2CC21F1437F2DCB28" X-Complaints-To: abuse@monash.edu.au X-Trace: towncrier.cc.monash.edu.au 955593962 26259 130.194.208.87 (13 Apr 2000 02:46:02 GMT) Organization: Monash University Staff Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 This is a multi-part message in MIME format. --------------862BB7D2CC21F1437F2DCB28 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 --------------862BB7D2CC21F1437F2DCB28 Content-Type: text/x-vcard; charset=us-ascii; name="Marchelm.Bomers.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Marchelm Bomers Content-Disposition: attachment; filename="Marchelm.Bomers.vcf" begin:vcard n:Bomers;Marchelm tel;fax:
51226719 or 99026719

tel;work:
(03) 51226963   - Local
(03) 99026963   - National
+61 3 99026963 - International

x-mozilla-html:FALSE org:Gippsland Campus;

adr:;;
Northways Rd., Churchill
Victoria 3842
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 --------------862BB7D2CC21F1437F2DCB28--