xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/tcptop_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is a demonstration of the tcptop command,
2
3
4tcptop will display info on newly established TCP connections,
5
6   # tcptop -C 10
7   Tracing... Please wait.
8   2005 Jul  5 04:55:25,  load: 1.11,  TCPin:      2 KB,  TCPout:    110 KB
9
10    UID    PID LADDR           LPORT FADDR           FPORT      SIZE NAME
11    100  20876 192.168.1.5     36396 192.168.1.1        79      1160 finger
12    100  20875 192.168.1.5     36395 192.168.1.1        79      1160 finger
13    100  20878 192.168.1.5     36397 192.168.1.1        23      1303 telnet
14    100  20877 192.168.1.5       859 192.168.1.1       514    115712 rcp
15
16   2005 Jul  5 04:55:35,  load: 1.10,  TCPin:      0 KB,  TCPout:      0 KB
17
18    UID    PID LADDR           LPORT FADDR           FPORT      SIZE NAME
19      0    242 192.168.1.5        79 192.168.1.1     54220       272 inetd
20      0  20879 192.168.1.5        79 192.168.1.1     54220       714 in.fingerd
21
22   [...]
23
24
25In the above output, we run it with a 10 second interval and with -C so
26that the screen does not clear. Some traffic was captured, around 110 Kbytes
27by the rcp process (PID 20877), etc.
28
29