/*
* icmpstat.d - print ICMP statistics. Uses DTrace.
*
* This prints ICMP statistics every second, retrieved from the MIB provider.
* This is a simple script to demonstrate the ability to trace ICMP events.
*
* $Id: icmpstat.d 3 2007-08-01 10:50:08Z brendan $
*
* USAGE: icmpstat.d
*
* FIELDS:
* STATISTIC ICMP statistic name
* VALUE total of statistic during sample
*
* The above ICMP statistics are documented in the mib2_icmp struct
* chapter of the DTrace Guide, http://docs.oracle.com/cd/E23824_01/html/E22973.
*
* COPYRIGHT: Copyright (c) 2005 Brendan Gregg.
*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* See the License for the specific language governing permissions
* and limitations under the License.
*
* CDDL HEADER END
*
* 25-Jul-2005 Brendan Gregg Created this.
* 25-Jul-2005 " " Last update.
*/
/*
* Save Data
*/
{
}
/*
* Print Output
*/
{
printf("\n");
}