From owner-freebsd-questions@FreeBSD.ORG Thu Nov 15 19:22:36 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BEB416A421 for ; Thu, 15 Nov 2007 19:22:35 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 7874313C4BB for ; Thu, 15 Nov 2007 19:22:35 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.14.1) id lAFJMYeQ017236; Thu, 15 Nov 2007 13:22:34 -0600 (CST) (envelope-from dan) Date: Thu, 15 Nov 2007 13:22:34 -0600 From: Dan Nelson To: Yuri Message-ID: <20071115192234.GF33712@dan.emsphone.com> References: <1195154430.473c9bfef18f0@webmail.rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1195154430.473c9bfef18f0@webmail.rawbw.com> X-OS: FreeBSD 7.0-BETA1 User-Agent: Mutt/1.5.16 (2007-06-09) Cc: yuri@tsoft.com, freebsd-questions@freebsd.org Subject: Re: How to know PID responsible for network connection/listen? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2007 19:22:36 -0000 In the last episode (Nov 15), Yuri said: > 'netstat -a' gives me the listing of network connection/listening > records. But there's no link to the process id that opened it. With > lots of processes this can be a significant problem to figure out who > opened which connection. Try /usr/bin/sockstat or the sysutils/lsof port. -- Dan Nelson dnelson@allantgroup.com