From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Mar 4 15:00:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 44992D27 for ; Tue, 4 Mar 2014 15:00:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 30FF3F2C for ; Tue, 4 Mar 2014 15:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s24F00kx057612 for ; Tue, 4 Mar 2014 15:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s24F00WO057611; Tue, 4 Mar 2014 15:00:00 GMT (envelope-from gnats) Date: Tue, 4 Mar 2014 15:00:00 GMT Message-Id: <201403041500.s24F00WO057611@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: "C Hutchinson" Subject: Re: ports/187240: sysutils/tcplist incompatible with sysutils/lsof X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: C Hutchinson List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2014 15:00:01 -0000 The following reply was made to PR ports/187240; it has been noted by GNATS. From: "C Hutchinson" To: "Ruslan Makhmatkhanov" Cc: bug-followup@freebsd.org Subject: Re: ports/187240: sysutils/tcplist incompatible with sysutils/lsof Date: Tue, 4 Mar 2014 06:56:15 -0800 (PST) Greetings, Ruslan, and thank you very much for the response. > Hi, > > this patch will fix lsof command (it works while running manually), but > tcplist itself is still broken, because it doesn't output anything. Ahh, I see. Thanks for taking the time to do this. > > By the way, doesn't sockstat(1) is what you looking for? F.e.: > > [rm@smeshariki4 tcplist]> sudo sockstat -4l > USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS > root sshd 84319 4 tcp4 *:22 *:* > mysql mysqld 84283 10 tcp4 *:3306 *:* > www httpd 84169 4 tcp4 *:80 *:* > www httpd 84168 4 tcp4 *:80 *:* > www httpd 84167 4 tcp4 *:80 *:* > www httpd 84166 4 tcp4 *:80 *:* > www httpd 84165 4 tcp4 *:80 *:* > www httpd 84164 4 tcp4 *:80 *:* > root httpd 84163 4 tcp4 *:80 *:* Indeed. In my struggle to retreive similar output from something else, I remembered sockstat(1). :) > > -- > Regards, > Ruslan > > T.O.S. Of Reality > Thanks again, for all your time, and attention to this. --Chris