]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Man/man1m/tcpstat.d.1m
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Man / man1m / tcpstat.d.1m
1 .TH tcpstat.d 1m  "$Date:: 2007-08-05 #$" "USER COMMANDS"
2 .SH NAME
3 tcpstat.d \- print TCP statistics. Uses DTrace.
4 .SH SYNOPSIS
5 .B tcpstat.d
6 .SH DESCRIPTION
7 tcpstat.d is a DTrace program to print TCP statistics every second,
8 retrieved from the MIB provider.
9
10 This program can be used to help identify how utilised the network 
11 interfaces may be, as well as TCP transmission errors.
12
13 The TCP statistics are documented in the mib2_tcp struct
14 in /usr/include/inet/mib2.h; and also in the mib provider
15 chapter of the DTrace Guide, found at 
16 http://docs.sun.com/db/doc/817-6223.
17
18 Since this uses DTrace, only the root user or users with the
19 dtrace_kernel privilege can run this command.
20 .SH OS
21 Solaris
22 .SH STABILITY
23 stable - needs the mib provider.
24 .SH EXAMPLES
25 .TP
26 Print statistics every second,
27
28 .B tcpstat.d
29 .PP
30 .SH FIELDS
31 .TP
32 TCP_out
33 TCP bytes sent
34 .TP
35 TCP_outRe
36 TCP bytes retransmitted
37 .TP
38 TCP_in
39 TCP bytes received
40 .TP
41 TCP_inDup
42 TCP bytes received duplicated
43 .TP
44 TCP_inUn
45 TCP bytes received out of order
46 .PP
47 .SH DOCUMENTATION
48 See the DTraceToolkit for further documentation under the 
49 Docs directory. The DTraceToolkit docs may include full worked
50 examples with verbose descriptions explaining the output.
51 .SH EXIT
52 tcpstat.d will run forever until Ctrl\-C is hit. 
53 .SH AUTHOR
54 Brendan Gregg
55 [Sydney, Australia]
56 .SH SEE ALSO
57 nicstat(1M), dtrace(1M)
58