xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/icmpstat_example.txt (revision c29d51755812ace2e87aeefdb06cb2b4dac7087a)
1The following is a demonstration of the icmpstat.d script,
2
3
4Here we run it and catch an inbound ping,
5
6   # icmpstat.d
7   2005 Jul 25 23:05:39,
8
9                          STATISTIC    VALUE
10
11   2005 Jul 25 23:05:40,
12
13                          STATISTIC    VALUE
14                        icmpOutMsgs        1
15                    icmpOutEchoReps        1
16                        icmpInEchos        1
17                         icmpInMsgs        1
18
19   2005 Jul 25 23:05:41,
20
21                          STATISTIC    VALUE
22
23   ^C
24
25Files such as /usr/include/inet/mib2.h may explain each of the statistics.
26
27The icmpstat.d is a simple demonstration of tracing ICMP activity. It may
28serve as the starting point for other scripts.
29
30