Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


clear igmp statistics


Syntax (EX Series)

Syntax (MX Series)


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.



Clear IGMP statistics on all interfaces. This form of the command clears statistics for currently active subscribers only.


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 option for interface-specific statistics.

interface interface-name

(Optional) Clear IGMP statistics for the specified interface only. This option is not available with the continuous option.

logical-system (all | logical-system-name)

(Optional) Perform this operation on all logical systems or on a particular logical system.

Required Privilege Level


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:

Release Information

Command introduced before Junos OS Release 7.4.

continuous option added in Junos OS Release 19.4R1 for MX Series routers.