]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/icmpstat_example.txt
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / icmpstat_example.txt
1 The following is a demonstration of the icmpstat.d script,
2
3
4 Here 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
25 Files such as /usr/include/inet/mib2.h may explain each of the statistics.
26
27 The icmpstat.d is a simple demonstration of tracing ICMP activity. It may 
28 serve as the starting point for other scripts.
29