From owner-freebsd-questions Fri Sep 6 03:23:57 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA12801 for questions-outgoing; Fri, 6 Sep 1996 03:23:57 -0700 (PDT) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.225.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA12692 for ; Fri, 6 Sep 1996 03:23:23 -0700 (PDT) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id MAA27029; Fri, 6 Sep 1996 12:16:35 +0200 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id MAA20524; Fri, 6 Sep 1996 12:28:52 +0200 From: Christoph Kukulies Message-Id: <199609061028.MAA20524@gilberto.physik.rwth-aachen.de> Subject: Re: catching a ping In-Reply-To: <199609051524.IAA04413@root.com> from David Greenman at "Sep 5, 96 08:24:09 am" To: dg@root.com Date: Fri, 6 Sep 1996 12:28:52 +0200 (MET DST) Cc: kuku@gilberto.physik.rwth-aachen.de, freebsd-questions@freefall.freebsd.org Reply-To: Christoph Kukulies X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > >Is there a way to test if some host is pinging me in intervals? > >I tried systat -netstat and did a ping -c 1 and the > >connection didn't show up (would port 7 be used in that case) > > Ping uses ICMP echo requests, so I don't know what you mean by "port 7". I meant /etc/services echo 7/tcp > You could use netstat -s and look at the ICMP echo requests/replies stat. > > -DG > > David Greenman > Core-team/Principal Architect, The FreeBSD Project --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de