Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


clear mld statistics


Syntax (MX Series)


Clear Multicast Listener Discovery (MLD) statistics. Clearing MLD statistics zeros the statistics counters as if you rebooted the device.

By default, Junos OS multicast devices collect statistics of received and transmitted MLD control messages that reflect currently active multicast group subscribers. Some devices also automatically maintain continuous MLD statistics globally on the device in addition to the default active subscriber statistics—these are persistent, continuous statistics of received and transmitted MLD 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.



(Same as logical-system all) Clear MLD statistics for all interfaces. This form of the command clears statistics for currently active subscribers only.


Clear only the continuous MLD 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 MLD statistics for the specified interface. 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

When you enter this command, you are provided feedback on the status of your request.

Sample Output

clear mld statistics

clear mld statistics continuous

Release Information

Command introduced before Junos OS Release 7.4.

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