From owner-freebsd-questions@FreeBSD.ORG Thu May 11 22:22:01 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E55216A44E for ; Thu, 11 May 2006 22:22:01 +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 28CE043D68 for ; Thu, 11 May 2006 22:21:58 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k4BMLw2T093471; Thu, 11 May 2006 17:21:58 -0500 (CDT) (envelope-from dan) Date: Thu, 11 May 2006 17:21:58 -0500 From: Dan Nelson To: Ian Lord Message-ID: <20060511222158.GE76653@dan.emsphone.com> References: <7.0.0.16.2.20060511141310.06394960@msdi.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7.0.0.16.2.20060511141310.06394960@msdi.ca> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: Windows Filemon equivalent for freebsd 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, 11 May 2006 22:22:01 -0000 In the last episode (May 11), Ian Lord said: > Just a quick question, do you know a port that will do about the same > thing as filemon for windows ? > > Basically, just a command line tool to list all access to disk showing > > 1- File being access > 2- Success of failure > 3- Process accessing the file "ktrace -di -p0 -ti" is the closest we have at the moment, but that only logs the I/O actions themselves, not the syscalls generating the I/O. Removing the "-ti" flag will tell ktrace to log all I/O and all syscall activity, which may be information overload. If you're only interested in a single process, take a look at the truss command. If/when the port of Solaris' dtrace is completed, it will be able to do exactly what you want and more. -- Dan Nelson dnelson@allantgroup.com