]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - cddl/contrib/dtracetoolkit/Examples/icmpstat_example.txt
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.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