Subject: Re: equivalent of sockstat?
To: Geert Hendrickx <ghen@hmacs.cmi.ua.ac.be>
From: ali (Anders Lindgren) <dat94ali@ludat.lth.se>
List: netbsd-help
Date: 12/23/2004 11:24:05
On Mon, 20 Dec 2004, Geert Hendrickx wrote:

> On FreeBSD, sockstat -4l lists all listening IPv4 sockets (with process,
> user), sockstat -6c lists all connected IPv6 sockets, sockstat -ul lists
> all listening UNIX domain sockets, etc.

It doesn't get you much closer than fstat, but lsof(8) has a plethora of
options for querying about open files and makes it slightly easier to
grep out listening sockets (they're marked with "(LISTEN)"). Lsof can
be found in pkgsrc (sysutils/lsof). Not exactly what you wanted, but
a very useful little program.

-- 
/ali
:wq