Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2000 15:27:42 -0600 (CST)
From:      Tim Zingelman <zingelman@fnal.gov>
To:        <freebsd-security@FreeBSD.ORG>
Subject:   Re: fics
Message-ID:  <Pine.GSO.4.30.0011271505560.19184-100000@nova.fnal.gov>
In-Reply-To: <Pine.GSO.4.30.0011271427420.17529-100000@nova.fnal.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 27 Nov 2000, Tim Zingelman wrote:

> sockstat|grep "\*\.[0-9 ]*\*\.\*"|cut -c10-18,39-45|sort -n -u +1

Oops, you caught me... I built this on a 3.x system... it doesn't work
on a 4.2 system.  Sockstat output now uses : not . to separate ip & port.
Also, it looks like sort -u weeds out duplicate keys, not duplicate rows
as I'd assumed :(

I'm starting to think this is too complex a solution... but:

 sockstat|grep "\*.[0-9 ]*\*.\*"|cut -c1-9,10-18,39-45|sort -u|sort -n +2

seems to do what I want both on 3.x and 4.x systems.

If people think this is ok, I'd be glad to submit patches...

  - Tim



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.30.0011271505560.19184-100000>