Re: netstat options

[ Available lists | Index of freebsd-questions | Month of Sep 2003 | Week of 18 Sep 2003 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Matthew Seaman <m.seaman@infracaninophile.co.uk>
Date
18 Sep 2003 06:38:04
Subject
Re: netstat options
Message-ID
20030918133658.GB1773@happy-idiot-talk.infracaninophile.co.uk

In reply to

[ Hide this part ]
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:

% netstat -an -f inet

will give you all of the network sockets, but not the unix domain
sockets.

Cheers,

Matthew

--
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


[ Show this part (application/pgp-signature) ]

Elapsed time: 0.147 seconds