From owner-freebsd-questions Sat Mar 4 15:14:46 2000 Delivered-To: freebsd-questions@freebsd.org Received: from team7.cba.ualr.edu (team7.cba.ualr.edu [144.167.120.24]) by hub.freebsd.org (Postfix) with ESMTP id 2B15A37B6F7 for ; Sat, 4 Mar 2000 15:14:43 -0800 (PST) (envelope-from joe@team7.cba.ualr.edu) Received: from team7.cba.ualr.edu (team7.cba.ualr.edu [144.167.120.24]) by team7.cba.ualr.edu (8.9.3/8.9.3) with ESMTP id RAA14135; Sat, 4 Mar 2000 17:14:39 -0600 (CST) (envelope-from joe@team7.cba.ualr.edu) Date: Sat, 4 Mar 2000 17:14:39 -0600 (CST) From: Joe To: Dan Nelson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sockstat not reporting all In-Reply-To: <20000304163442.A65397@dan.emsphone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 4 Mar 2000, Dan Nelson wrote: > Date: Sat, 4 Mar 2000 16:34:42 -0600 > From: Dan Nelson > To: Joe > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: sockstat not reporting all > > In the last episode (Mar 04), Joe said: > > > > Should sockstat be reporting more info? > > > > > > team7# sockstat > > USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS > > root sshd1 13864 5 > > root sshd1 13744 5 > [etc] > > 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. > > -- > Dan Nelson > dnelson@emsphone.com > 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 fffffe000624f200 tcp4 0 0 *.25 *.* LISTEN fffffe000624f560 tcp4 0 0 *.110 *.* LISTEN fffffe000624f8c0 tcp4 0 0 *.79 *.* LISTEN fffffe000624fc20 tcp4 0 0 *.21 *.* LISTEN fffffe00061bbe60 udp4 0 0 *.514 *.* Well...looks like its working to me. -joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message