clear igmp statistics
Syntax
clear igmp statistics <interface interface-name> <logical-system (all | logical-system-name)>
Syntax (EX Series)
clear igmp statistics <interface interface-name>
Syntax (MX Series)
clear igmp statistics (<continuous> | <interface interface-name>) <logical-system (all | logical-system-name)>
Description
Clear Internet Group Management Protocol (IGMP) statistics. Clearing IGMP statistics zeros the statistics counters as if you rebooted the device.
By default, Junos OS multicast devices collect statistics of received and transmitted IGMP control messages that reflect currently active multicast group subscribers. Some devices also automatically maintain continuous IGMP statistics globally on the device in addition to the default active subscriber statistics—these are persistent, continuous statistics of received and transmitted IGMP control packets that account for both past and current multicast group subscriptions processed on the device. The device maintains continuous statistics across events or operations such as routing daemon restarts, graceful Routing Engine switchovers (GRES), in-service software upgrades (ISSU), or line card reboots. The default active subscriber-only statistics are not preserved in these cases.
Run this command to clear the currently active subscriber statistics.
On devices that support continuous statistics, run this command with
the continuous
option to clear the continuous statistics.
You must run these commands separately to clear both types of statistics
because the device maintains and clears the two types of statistics
separately.
Options
none | Clear IGMP statistics on all interfaces. This form of the command clears statistics for currently active subscribers only. |
continuous | Clear only
the continuous IGMP statistics that account for both past and current
multicast group subscribers instead of the default statistics that
only reflect currently active subscribers. This option is not available
with the |
interface interface-name | (Optional) Clear IGMP statistics for the
specified interface only. This option is not available with the |
logical-system (all | logical-system-name) | (Optional) Perform this operation on all logical systems or on a particular logical system. |
Required Privilege Level
clear
Output Fields
See show igmp statistics for an explanation of output fields.
Sample Output
clear igmp statistics
The following sample output displays IGMP statistics information
before and after the clear igmp statistics
command is entered:
user@host> show igmp statistics IGMP packet statistics for all interfaces IGMP Message type Received Sent Rx errors Membership Query 8883 459 0 V1 Membership Report 0 0 0 DVMRP 19784 35476 0 PIM V1 18310 0 0 Cisco Trace 0 0 0 V2 Membership Report 0 0 0 Group Leave 0 0 0 Mtrace Response 0 0 0 Mtrace Request 0 0 0 Domain Wide Report 0 0 0 V3 Membership Report 0 0 0 Other Unknown types 0 IGMP v3 unsupported type 0 IGMP v3 source required for SSM 0 IGMP v3 mode not applicable for SSM 0 IGMP Global Statistics Bad Length 0 Bad Checksum 0 Bad Receive If 0 Rx non-local 1227 user@host> clear igmp statistics user@host> show igmp statistics IGMP packet statistics for all interfaces IGMP Message type Received Sent Rx errors Membership Query 0 0 0 V1 Membership Report 0 0 0 DVMRP 0 0 0 PIM V1 0 0 0 Cisco Trace 0 0 0 V2 Membership Report 0 0 0 Group Leave 0 0 0 Mtrace Response 0 0 0 Mtrace Request 0 0 0 Domain Wide Report 0 0 0 V3 Membership Report 0 0 0 Other Unknown types 0 IGMP v3 unsupported type 0 IGMP v3 source required for SSM 0 IGMP v3 mode not applicable for SSM 0 IGMP Global Statistics Bad Length 0 Bad Checksum 0 Bad Receive If 0 Rx non-local 0
Release Information
Command introduced before Junos OS Release 7.4.
continuous
option added in Junos OS Release 19.4R1
for MX Series routers.