From owner-freebsd-questions@FreeBSD.ORG Thu Sep 18 06:38:04 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27B6D16A4B3 for ; Thu, 18 Sep 2003 06:38:04 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BE1843FD7 for ; Thu, 18 Sep 2003 06:38:02 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h8IDaxJK008886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Sep 2003 14:37:58 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h8IDawSb008885; Thu, 18 Sep 2003 14:36:59 +0100 (BST) (envelope-from matthew) Date: Thu, 18 Sep 2003 14:36:58 +0100 From: Matthew Seaman To: dick hoogendijk Message-ID: <20030918133658.GB1773@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , dick hoogendijk , freebsd-questions@freebsd.org References: <20030918110109.GA32359@lothlorien.nagual.st> <5.2.0.9.2.20030918070931.021d21b0@mail.sri-software.com> <20030918152429.5bea7d52.dick@nagual.st> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p4qYPpj5QlsIQJ0K" Content-Disposition: inline In-Reply-To: <20030918152429.5bea7d52.dick@nagual.st> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-11.5 required=5.0 tests=AWL,BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-questions@freebsd.org Subject: Re: netstat options X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2003 13:38:04 -0000 --p4qYPpj5QlsIQJ0K Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 18, 2003 at 03:24:29PM +0200, dick hoogendijk wrote: > > At 01:01 PM 9/18/2003 +0200, you wrote: > > >Active Internet connections (servers and established) > > >Proto Recv-Q Send-Q Local Address Foreign Address State > > >tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN > > >tcp 0 0 0.0.0.0:32769 0.0.0.0:* LISTEN > > >tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN > > >tcp 0 0 0.0.0.0:515 0.0.0.0:* LISTEN > > >tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN > > >tcp 0 0 0.0.0.0:37 0.0.0.0:* LISTEN > What I wanted to know is the equivalent for the LINUX "netstat -atun" > which gives the output above (on the LINUX server). I want to test my > FreeBSD machine the same way but "netstat -atun" gives me an output I > don't want (on fbsd). If all you want are the tcp sockets, then % netstat -an -p tcp otherwise:=20 % netstat -an -f inet will give you all of the network sockets, but not the unix domain sockets. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --p4qYPpj5QlsIQJ0K Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/abT6dtESqEQa7a0RApltAJ42ikgKLw8Vk9A5qjar8rhB2qj94QCeJhGd fxIqcLZCbRG3SrwLqYGIiS4= =urFB -----END PGP SIGNATURE----- --p4qYPpj5QlsIQJ0K--