xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/tcpstat_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is a demonstration of the tcpstat.d script,
2
3
4Here we run tcpstat.d as a large file is downloaded,
5
6   # tcpstat.d
7       TCP_out   TCP_outRe      TCP_in   TCP_inDup    TCP_inUn
8             0           0           0           0           0
9            20           0        1540           0           0
10           632           0         576           0           0
11           560           0      115552           0           0
12          1872           0     2900480           0           0
13          1968           0     3032320           0           0
14          1776           0     2752160           0           0
15           752           0      999824           0           0
16             0           0           0           0           0
17             0           0           0           0           0
18             0           0           0           0           0
19   ^C
20
21We can see the TCP_in value rise to around 3 Mb/sec as the download occurs.
22
23