Manual Pages for UNIX Darwin command on man rwsnoop
MyWebUniversity

Manual Pages for UNIX Darwin command on man rwsnoop

rwsnoop(1m) USER COMMANDS rwsnoop(1m)

NAME

rwsnoop - snoop read/write events. Uses DTrace.

SYNOPSIS

rrwwssnnoooopp [-jPtvZ] [-n name] [-p PID]

DESCRIPTION

This is measuring reads and writes at the application level. This matches the syscalls read, write, pread and pwrite. Since this uses DTrace, only the root user or users with the dtracekernel privilege can run this command. OOPPTTIIOONNSS

-j print project ID

-P print parent process ID

-t print timestamp, us

-v print time, string

-Z print zone ID

-n name

process name to track

-p PID PID to track

EEXXAAMMPPLLEESS Default output,

# rrwwssnnoooopp

Print zone ID,

# rrwwssnnoooopp -.TMPonitor processes named "bash", # rrwwssnnoooopp -n bash

FFIIEELLDDSS TIME timestamp, us TIMESTR time, string ZONE zone ID PROJ project ID UID user ID PID process ID PPID parent process ID CMD command name for the process D direction, Read or Write BYTES total bytes during sample FILE filename, if file based. Reads and writes that are not file based, for example with sockets, will print "" as the filename. DDOOCCUUMMEENNTTAATTIIOONN

See the DTraceToolkit for further documentation under the Docs direc-

tory. The DTraceToolkit docs may include full worked examples with ver-

bose descriptions explaining the output. EEXXIITT

rwsnoop will run forever until Ctrl-C is hit.

AUTHOR Brendan Gregg [Sydney, Australia]

SEE ALSO

rwtop(1M), dtrace(1M)

version 0.70 Jul 24, 2005 rwsnoop(1m)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™