*BSD News Article 75104


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!newsgate.duke.edu!interpath!news.interpath.net!bogus
From: kpneal@interpath.com (Kevin P. Neal)
Newsgroups: comp.sys.sun.admin,alt.sys.sun,comp.unix.bsd.misc,comp.unix.programmer,comp.unix.bsd.bsdi.misc,comp.unix.admin
Subject: Re: ping script
Date: Wed, 31 Jul 96 05:08:30 GMT
Organization: It's a Bedroom--Not A Lab
Lines: 28
Message-ID: <4tmpnr$gg4@redstone.interpath.net>
References: <Pine.SOL.3.93.960702171209.4062B-100000@gold.acns.fsu.edu> <4sbfat$ll@keyhole.west.spy.net> <4t2put$n1i@news.fsu.edu> <Dv38zE.8v3@tip.nl> <4tilco$bm@anorak.coverform.lan> <4tkjiq$32g@typo.org>
NNTP-Posting-Host: raleigh-001.interpath.net
X-Newsreader: News Xpress 2.0 Beta #0
Xref: euryale.cc.adfa.oz.au comp.sys.sun.admin:71530 alt.sys.sun:10460 comp.unix.bsd.misc:1279 comp.unix.programmer:40369 comp.unix.bsd.bsdi.misc:4429 comp.unix.admin:45531

In article <4tkjiq$32g@typo.org>, BOFH <web@typo.org> wrote:
>Brian Somers <brian@awfulhak.demon.co.uk> wrote:
>: Marc Mulhuijzen (marc.mulhuijzen@tip.nl) wrote:
>: : Maybe it is already said but ping does NOT garantee that a system is
>: : up and running ! I have written a tool which reads/writes messages
>: : through sockets, so that one knows that processes are running on a
>: : system, while ping only gets replys from the controller. (A system can
>: : still be pinged and hang at the same time, that's why I wrote my stuff
>: : with help of others as well !)
>
>: Well, replies from the low-level networking code....  What you really
>: need is to include a "hello are you there" ability in your server.
>
>: Most - if not all - internet protocols have this (connect, read a prompt,
>: send quit, read OK).  Anyone know of any tcp chat-like programs ?
>
>For this type of action, I usually use port 13. (date) If the system is
>wedged but still pingable, you're not gonna get a date back. If its just
>bogged down, you'll get a date but it will take a few seconds.

But this could also mean that inetd died. Telnetting to sendmail, or
rup'ing the machine sometimes gives info.

--
XCOMM Kevin P. Neal, Sophomore, Comp. Sci. \   kpneal@interpath.com
XCOMM  "Corrected!" -- Old Amiga tips file  \  kpneal@eos.ncsu.edu
XCOMM Visit the House of Retrocomputing:    /      Perm. Email:
XCOMM  http://www4.ncsu.edu/~kpneal/www/   /   kevinneal@bix.com