From owner-freebsd-questions Sat Mar 4 18:48:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id CCE4E37B928 for ; Sat, 4 Mar 2000 18:48:21 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id UAA88125; Sat, 4 Mar 2000 20:48:16 -0600 (CST) (envelope-from dan) Date: Sat, 4 Mar 2000 20:48:15 -0600 From: Dan Nelson To: Joe Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sockstat not reporting all Message-ID: <20000304204815.A87662@dan.emsphone.com> References: <20000304163442.A65397@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.5i In-Reply-To: ; from "Joe" on Sat Mar 4 17:14:39 GMT 2000 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Mar 04), Joe said: > On Sat, 4 Mar 2000, Dan Nelson wrote: > > Sockstat simply runs netstat and fstat and merges the results. It > > looks like the netstat part isn't working. See if running "netstat > > -Aan -finet" prints anything at all. > > bash-2.03$ netstat -Aan -finet > Active Internet connections (including servers) > Socket Proto Recv-Q Send-Q Local Address Foreign Address (state) > fffffe00062547e0 tcp4 0 0 144.167.120.24.22 144.167.120.221.10 ESTABLISHED > fffffe000624dc20 tcp4 0 0 144.167.120.24.22 144.167.120.221.10 ESTABLISHED > fffffe000624eb40 tcp4 0 0 *.22 *.* LISTEN > fffffe000624eea0 tcp4 0 0 *.80 *.* LISTEN > > Well...looks like its working to me. Hm. The socket address looks real funny for a 32-bit pointer. Whoops. You're on an alpha :) The next step would be to run "fstat | grep internet" and see if the last column looks anything like the first column in the netstat output above. sockstat ties the two sets of output together with those columns. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message