Windows Filemon equivalent for freebsd

Dan Nelson dnelson at allantgroup.com
Thu May 11 15:22:01 PDT 2006


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 at allantgroup.com


More information about the freebsd-questions mailing list