GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
* Sign Up! *

Support
Customer Portal
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
filebyproc.d(1m) filebyproc.d(1m)

filebyproc.d - snoop opens by process name. Uses DTrace.

filebyproc.d

filebyproc.d is a DTrace OneLiner to print file pathnames as they are opened, including the name of the process calling the open. A line will be printed regardless of whether the open is actually successful or not.

This is useful to learn which files applications are attempting to open, such as config files, database files, log files, etc.

Docs/oneliners.txt and Docs/Examples/oneliners_examples.txt in the DTraceToolkit contain this as a oneliner that can be cut-n-paste to run.

Since this uses DTrace, only the root user or users with the dtrace_kernel privilege can run this command.

Solaris

stable - needs the syscall provider.

The CPU that recieved the event
A DTrace probe ID for the event
The DTrace probe name for the event
The first is the name of the process, the second is the file pathname.

See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with verbose descriptions explaining the output.

filebyproc.d will run forever until Ctrl-C is hit.

Brendan Gregg [Sydney, Australia]

opensnoop(1M), dtrace(1M), truss(1)

$Date:: 2007-08-05 #$ USER COMMANDS

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.