Subject: Re: equivalent of sockstat?
To: Brian A. Seklecki <lavalamp@spiritual-machines.org>
From: Dave Huang <khym@azeotrope.org>
List: netbsd-help
Date: 12/23/2004 12:36:29
On Thu, Dec 23, 2004 at 08:29:53AM -0500, Brian A. Seklecki wrote:
> also....
>
> # netstat -A inet -l -n
> Active Internet connections (only servers)
Hmm...
yerfable ~# uname -rsm
NetBSD 2.0 alpha
yerfable ~# netstat -A inet -l -n
netstat: -l: No such file or directory
yerfable ~# netstat -f inet -l -n|head
Active Internet connections
[ ... ]
Is "-l" supposed to show only listening sockets? It's not documented
in the manpage or in the usage message, but 2.0's netstat does seem to
accept it. I can't tell what it does though; the output of "netstat -f
inet -n" is identical to that of "netstat -f inet -l -n" on my system.
--
Name: Dave Huang | Mammal, mammal / their names are called /
INet: khym@azeotrope.org | they raise a paw / the bat, the cat /
FurryMUCK: Dahan | dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 29 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++