command stringlengths 2 75 | syntax stringlengths 0 289k | hierarchy_level stringlengths 0 6.91k | description stringlengths 0 45.2k | options listlengths 0 499 | required_privilege_level stringlengths 0 330k | release_information stringlengths 0 3.14k | related_documentation listlengths 0 22 |
|---|---|---|---|---|---|---|---|
clear igmp statistics | clear igmp statistics
(<continuous> | <interface interface-name>)
<logical-system (all | logical-system-name)> | 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 de... | [
{
"name": "none",
"desc": "Clear IGMP statistics on all interfaces. This form of the command clears statistics for currently active subscribers only."
},
{
"name": "continuous",
"desc": "Clear only the continuous IGMP statistics that account for both past and current multicast group subscribers ... | clear
Output Fields
See "show igmp statistics" on page 21099 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 fo... | Command introduced before Junos OS Release 7.4.
continuous option added in Junos OS Release 19.4R1 for MX Series routers. | [] | |
clear ike security-associations | clear ike security-associations
<destination-ip-address> | (Encryption interface on M Series and T Series routers only) Clear information about the current Internet
Key Exchange (IKE) security association. This command is valid for dynamic security associations only.
For IKEv2, this command creates new security associations for IKE SA and IPSEC SAs. | [
{
"name": "none",
"desc": "Clear all IKE security associations."
},
{
"name": "destination-ip-address",
"desc": "(Optional) Clear the IKE security association at the specified destination address."
}
] | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear ike security-associations
user@host> clear ike security-associations | Command introduced before Junos OS Release 7.4. | [] | |
clear ilmi statistics | clear ilmi statistics | Set Integrated Local Management Interface (ILMI) statistics to zero. | [] | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear ilmi statistics
user@host> clear ilmi statistics | Command introduced before Junos OS Release 7.4. | [] | |
clear inband-flow-telemetry stats | clear inband-flow-telemetry stats | Clear Inband Flow Analyzer 2.0 (IFA 2.0) statistics.
You retrieve IFA statistics directly from the Packet Forwarding Engine. The Routing Engine does not
maintain these statistics. Therefore, restarting the Packet Forwarding Engine process clears the
statistics, whereas a Routing Engine process restart does not have any... | [] | network
Output Fields
This command produces no output.
Sample Output
clear inband-flow-telemetry stats (QFX5120-48Y and QFX5120-32C)
user@host> clear inband-flow-telemetry stats | Command introduced in Junos OS Release 21.4R1. | [
"Inband Flow Analyzer (IFA) 2.0 Probe for Real-Time Performance Monitoring"
] | |
clear interfaces aeX forwarding-options load-balance state | clear interfaces aeX unit logical-unit-number aggregate forwarding-options load-balance state | Clear the specified aggregate Ethernet interface load balancing state and re-create it newly. If the traffic
flows become aged frequently, then the device needs to remove or refresh the load balancing states. As
a result, you must configure rebalancing or run the clear command at periodic intervals for proper load-
bal... | [
{
"name": "aeX",
"desc": "Name of a particular aggregated Ethernet interface."
},
{
"name": "logical-unit-number",
"desc": "Number of the logical unit of the interface."
},
{
"name": "forwarding-options load-balance state",
"desc": "Cause the load-balancing state to be cleared for th... | clear
Sample Output
clear interfaces aeX aggregate forwarding-options
user@host> clear interfaces ae1 aggregate forwarding-options load-balance state | Command introduced in Junos OS Release 13.2R1. | [] | |
clear interfaces aggregate forwarding-options load-balance state | clear interfaces aggregate forwarding-options load-balance state | Clear all the aggregate Ethernet interface load balancing states and re-create them newly. If the traffic
flows become aged frequently, then the device needs to remove or refresh the load balancing states. As
a result, you must configure rebalancing or run the clear command at periodic intervals for proper load-
balanc... | [
{
"name": "interface-name",
"desc": "Name of a particular interface."
}
] | clear
Sample Output
clear interfaces aggregate forwarding-options
user@host> clear interfaces aggregate forwarding-options load-balance state | Command introduced in Junos OS Release 13.2R1. | [] | |
clear interfaces interface-set statistics | clear interfaces interface-set statistics interface-set-name | Set interface set statistics to zero. | [
{
"name": "interface-set-name",
"desc": "Set statistics on a specified interface set to zero. Wildcard values can be used in the interface set name. This command will not clear the statistics of the member logical interfaces."
}
] | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear interfaces interface-set statistics
user@host> clear interfaces interface-set statistics | Command introduced in Junos OS Release 8.5. | [] | |
clear interfaces interval | clear interfaces interval interface-name | Clear the channel service unit (CSU) alarm and defect counters so that only the current time interval is
displayed. This operation affects the show interface interval command, but not an SNMP query. | [
{
"name": "interface-name",
"desc": "Name of a particular interface."
}
] | clear
Output Fields
See "show interfaces interval" on page 22013 for an explanation of output fields.
Sample Output
clear interfaces interval
The following example displays the output for a T3 interface before and after the clear interfaces
command is entered:
user@host> show interfaces interval t3-0/3/0:4
Physica... | Command introduced before Junos OS Release 7.4. | [] | |
clear interfaces lb-stats af | clear interfaces lb-stats af-interface-name | Clears the information about the load balancing of transmit traffic on each peer packet forwarding
engine of the abstracted fabric (af) interface. This command restarts the load balancing transmit values
from zero. | [] | View
Sample Output
show interfaces lb-stats af2
user@host> show interfaces lb-stats af2
Physical interface: af2, Enabled, Physical link is Up
Interface index: 147, SNMP ifIndex: 501
Type: Ethernet, Link-level type: Ethernet, MTU: 1518, Speed: 3000000mbps
Device flags : Present Running
Interface flags: Interna... | Command introduced in Junos OS Release 21.4R1. | [] | |
clear interfaces mac-database statistics | clear interfaces mac-database statistics (interface-name |all) | Clear statistics that are collected for every MAC address, including policer statistics, on a physical or
logical interface or all interfaces. | [
{
"name": "(interface-name | all)",
"desc": "Clear MAC database statistics for the specified physical or logical gigabit or 10-Gigabit Ethernet interface. Specify all to clear the MAC database statistics for all interfaces."
}
] | view
Output Fields
This command produces no output.
Sample Output
clear interfaces mac-database statistics (Gigabit Ethernet)
user@host> clear interfaces mac-database statistics ge-0/1/0 | Command introduced in Junos OS Release 8.3. | [] | |
clear interfaces mac-database | clear interfaces mac-database (interface-name | aex) <mac-address mac-address> | Clear learned media access control (MAC) addresses from the hardware and MAC database for Gigabit
Ethernet IQ2 interfaces or aggregated Ethernet interfaces. Static MAC addresses configured by the
operator are not cleared. | [
{
"name": "interface-name",
"desc": "Name of a physical or logical interface. When you clear a physical interface, all learned MAC addresses on all the logical interfaces under the physical interface are cleared."
},
{
"name": "aex",
"desc": "Name of aggregated Ethernet interface."
},
{
... | view
Output Fields
This command produces no output.
Sample Output
clear interfaces mac-database
user@host> clear interfaces mac-database ge-0/0/0.0 | Command introduced in Junos OS Release 8.3.
Support for statement with the aex option introduced in Junos OS Release 15.1. | [] | |
clear interfaces statistics swfabx | clear interfaces statistics <swfab0 | swfab1> | Clear interface statistics for the specified swfab interface. | [] | clear
Output Fields
When you enter this command, interface statistics for swfab0 and swfab1 are cleared.
Sample Output
clear interfaces statistics <swfab0 | swfab1>
user@host> clear interfaces statistics <swfab0 | swfab1> | Command introduced in Junos OS Release 11.1. | [] | |
clear interfaces statistics | clear interfaces statistics (all | interface-name) | 17.3R1
Starting in Junos OS Release 17.3R1, this command supports the clearing of Packet Forwarding Engine
accounting statistics on logical interfaces configured with accounting options. | [
{
"name": "all",
"desc": "Set statistics on all interfaces to zero."
},
{
"name": "interface-name",
"desc": "Set statistics on a particular interface to zero."
}
] | clear
Output Fields
When you enter this command, you are provided no feedback on the status of your request.
Sample Output
clear interfaces statistics
user@host> clear interfaces statistics | Command introduced before Junos OS Release 7.4.
Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to
determine if a feature is supported on your platform.
Release | [] | |
clear interfaces transport pm | clear interfaces transport pm (all | optics | otn) (all | current | current-day) (all |
interface-name) | Clear optics and OTN information from the transport performance monitoring data. | [
{
"name": "(all | optics | otn)",
"desc": "Clear both optics and OTN information or either only optics or only OTN information."
},
{
"name": "(all | current | current-day)",
"desc": "Clear information for the current 15-minute interval, the ninety-six 15-minute intervals, the current day, and t... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear interfaces transport pm
user@host> clear interfaces transport pm transport otn current all | Command introduced in Junos OS Release 14.2. | [
"100-Gigabit Ethernet OTN Options Configuration Overview"
] | |
clear ipsec security-associations | clear ipsec security-associations
<sa-name> | (Encryption interface on M Series and T Series routers only) Clear information about the current IP
Security (IPsec) security association. This command is valid for dynamic security associations only. For
IKEv1, this command creates new security associations for IKE SA and IPSEC SAs. | [
{
"name": "none",
"desc": "Clear all IPsec security associations."
},
{
"name": "sa-name",
"desc": "(Optional) Clear the specified security association."
}
] | view
Output Fields
See the "show ipsec security-associations" on page 22605 for an explanation of output fields.
Sample Output
clear ipsec security-associations
The following output from the show ipsec security-associations detail command is displayed before and
after the clear ipsec security-associations command is is... | Command introduced before Junos OS Release 7.4. | [] | |
clear ipv6 neighbors (SRX Series) | clear ipv6 neighbors
<all | host hostname> | Clear IPv6 neighbor cache information. | [
{
"name": "none",
"desc": "Clear all IPv6 neighbor cache information."
},
{
"name": "all",
"desc": "(Optional) Clear all IPv6 neighbor cache information."
},
{
"name": "host hostname",
"desc": "(Optional) Clear the information for the specified IPv6 neighbors."
}
] | clear
Output Fields
Sample Output
clear ipv6 neighbors
user@host> clear ipv6 neighbors
11:11::2 00:19:e2:4b:61:83 deleted
12:12::2 00:19:e2:4b:61:83 deleted
10:1::2 00:00:0a:00:00:00 deleted | Command introduced in Junos OS Release 12.1X45-D10. | [] | |
clear ipv6 neighbors | clear ipv6 neighbors
<all>
< host hostname>
< interface interface-name>
< logical-system logical-system-name>
< tenant name>
< vpn vpn-name> | Clear IPv6 neighbor cache information.
On Junos OS, issuing the clear ipv6 neighbors command does not clear the cache for IPv6
neighbors in a reachable state.
On Junos OS Evolved, issuing the clear ipv6 neighbors command clears the cache for IPv6
neighbors in a reachable state. | [
{
"name": "none",
"desc": "Clear all IPv6 neighbor cache information."
},
{
"name": "all",
"desc": "(Optional) Clear all IPv6 neighbor cache information."
},
{
"name": "host hostname",
"desc": "(Optional) Clear the information for the specified IPv6 neighbors."
},
{
"name": "... | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear ipv6 neighbors
user@host> clear ipv6 neighbors | Command introduced before Junos OS Release 7.4. | [] | |
clear ipv6 router-advertisement | clear ipv6 router-advertisement
<interface interface>
<logical-system (all | logical-system-name)> | Clear IPv6 router advertisement counters. | [
{
"name": "none",
"desc": "Clear IPv6 router advertisement counters for all interfaces."
},
{
"name": "interface interface",
"desc": "(Optional) Clear IPv6 router advertisement counters for the specified interface."
},
{
"name": "logical-system (all | logical-system-name)",
"desc": "... | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear ipv6 router-advertisement
user@host> clear ipv6 router-advertisement | Command introduced before Junos OS Release 7.4. | [] | |
clear isis adjacency | clear isis adjacency
<all>
<instance instance-name>
<interface interface-name>
<neighbor> | Remove entries from the IS-IS adjacency database. | [
{
"name": "all",
"desc": "Remove all entries from the adjacency database."
},
{
"name": "instance instance-name",
"desc": "(Optional) Clear all adjacencies for the specified routing instance only."
},
{
"name": "interface interface-name",
"desc": "(Optional) Clear all adjacencies for... | clear
Output Fields
See "show isis adjacency" on page 22629 for an explanation of output fields.
Sample Output
clear isis adjacency
The following sample output displays IS-IS adjacency database information before and after the clear
isis adjacency command is entered:
user@host> show isis adjacency
IS-IS adjacency data... | Command introduced before Junos OS Release 7.4.
all option introduced in Junos OS Release 14.2. | [] | |
clear isis database | clear isis database
<all>
<entries>
<instance instance-name> | Remove the entries from the IS-IS link-state database, which contains prefixes and topology information. | [
{
"name": "all",
"desc": "Remove all entries from the IS-IS link-state database for all routing instances."
},
{
"name": "entries",
"desc": "(Optional) Name of the database entry."
},
{
"name": "instance instance-name",
"desc": "(Optional) Clear all entries for the specified routing ... | clear
Output Fields
See "show isis database" on page 22653 for an explanation of output fields.
Sample Output
clear isis database
The following sample output displays IS-IS link-state database information before and after the clear isis
database all command is entered:
user@host> show isis database
IS-IS level 1 link... | Command introduced before Junos OS Release 7.4. | [] | |
clear isis overload | clear isis overload
<instance instance-name> | Reset the IS-IS dynamic overload bit. This command can appear to not work, continuing to display
overload after execution. The bit is reset only if the root cause is corrected by configuration remotely or
locally.
When other routers detect that the overload bit is set, they do not use this routing device for transit
tr... | [
{
"name": "none",
"desc": "Reset the IS-IS dynamic overload bit."
},
{
"name": "instance instance-name",
"desc": "(Optional) Reset the IS-IS dynamic overload bit for the specified routing instance."
},
{
"name": "logical-system (all | logical-system-name)",
"desc": "(Optional) Perfor... | clear
Output Fields
See "show isis database" on page 22653 for an explanation of output fields.
Sample Output
clear isis overload
The following sample output displays IS-IS database information before and after the clear isis overload
command is entered:
user@host> show isis database
IS-IS level 1 link-state database:... | Command introduced before Junos OS Release 7.4. | [] | |
clear isis spring traffic-statistics | clear isis spring traffic-statistics
<all>
<interface interface>
<logical-system (all | logical-system-name> | Clear all IS-IS SPRING traffic statistics. The Packet Forwarding Engine (PFE) does not support clearing
the counters. The IS-IS routing protocol must maintain the traffic counters corresponding to the time
when clear was issued and subtract it from the next sample.
Use this command when the routing protocol process (rp... | [
{
"name": "none",
"desc": "Clear IS-IS SPRING traffic statistics."
},
{
"name": "all",
"desc": "(Optional) Clear IS-IS SPRING traffic statistics for all interfaces."
},
{
"name": "interface interface",
"desc": "(Optional) Clear all IS-IS SPRING traffic statistics for an interface."
... | clear | Command introduced in Junos OS Release 17.3R1. | [] | |
clear isis statistics | clear isis statistics
<instance instance-name> | Set statistics about IS-IS traffic to zero. | [
{
"name": "none",
"desc": "Set IS-IS traffic statistics to zero for all routing instances."
},
{
"name": "instance instance-name",
"desc": "(Optional) Set IS-IS traffic statistics to zero for the specified routing instance only."
},
{
"name": "logical-system (all |",
"desc": ""
},
... | view
Output Fields
See "show isis statistics" on page 22714 for an explanation of output fields.
Sample Output
clear isis statistics
The following sample output displays IS-IS statistics before and after the clear isis statistics command
is entered:
user@host> show isis statistics
IS-IS statistics for merino:
PDU typ... | Command introduced before Junos OS Release 7.4. | [] | |
clear l2-learning mac-move-buffer | clear l2-learning mac-move-buffer
<active> | Clear the MAC move buffer entries. | [
{
"name": "none",
"desc": "Clear the MAC move buffer entries."
},
{
"name": "active",
"desc": "(Optional) Unblock the interfaces that were blocked by the MAC move action feature. This allows the user to keep the reopen-time configured to a large value, but when the looping error is fixed, the us... | clear
Output Fields
When you enter this command, the MAC move buffer entries are deleted.
Sample Output
clear l2-learning mac-move-buffer
user@host> clear l2-learning mac-move-buffer
clear l2-learning mac-move-buffer active
user@host> clear l2-learning mac-move-buffer active | Command introduced in Junos OS Release 13.2. | [] | |
clear lacp statistics interfaces | clear lacp statistics interfaces <interface-name> | Clear the LACP statistics. If you do not specify an interface name, LACP statistics for all interfaces are
cleared. | [
{
"name": "interface-name",
"desc": "(Optional) Name of an interface."
}
] | clear
Output Fields
This command produces no output. | Command modified in Junos OS Release 10.2. | [
"Verifying LACP on Redundant Ethernet Interfaces"
] | |
clear ldp neighbor | clear ldp neighbor
<instance instance-name>
<logical-system (all | logical-system-name)>
<neighbor> | Tear down Label Distribution Protocol (LDP) neighbor connections. | [
{
"name": "none",
"desc": "Tear down connections with all LDP neighbors for all routing instances."
},
{
"name": "instance instance name",
"desc": "(Optional) Clear the LDP session for the specified routing instance only."
},
{
"name": "logical-system (all |",
"desc": ""
},
{
... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear ldp neighbor
user@host> clear ldp neighbor | [] | ||
clear ldp session | clear ldp session
<all>
<destination>
<instance instance-name>
<logical-system (all | logical-system-name)> | Clear Label Distribution Protocol (LDP) sessions. | [
{
"name": "all",
"desc": "Clear LDP sessions for all destinations for all routing instances."
},
{
"name": "destination",
"desc": "(Optional) Clear an LDP session for the specified destination (IP address)."
},
{
"name": "instance instance-name",
"desc": "(Optional) Clear the LDP ses... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear ldp session
user@host> clear ldp session all | Command introduced before Junos OS Release 7.4. | [] | |
clear ldp statistics | clear ldp statistics
<instance instance-name>
<logical-system (all | logical-system-name)> | Set all Label Distribution Protocol (LDP) statistics to zero. | [
{
"name": "none",
"desc": "Set all LDP statistics to zero for all routing instances."
},
{
"name": "instance instance-name",
"desc": "(Optional) Clear the LDP session for the specified routing instance only."
},
{
"name": "logical-system (all | logical-system-name)",
"desc": "(Option... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear ldp statistics
user@host> clear ldp statistics | Command introduced before Junos OS Release 7.4. | [] | |
clear lldp neighbors | clear lldp neighbors
<interface interface> | Clear the learned remote neighbor information on all or selected interfaces. | [
{
"name": "none",
"desc": "Clear the remote neighbor information on all interfaces."
},
{
"name": "interface interface",
"desc": "(Optional) Clear the remote neighbor information from one or more selected interfaces."
}
] | clear
Sample Output
clear lldp neighbors
user@switch> clear lldp neighbors
clear lldp neighbors interface ge-0/1/1.0
user@switch> clear lldp neighbors interface ge-0/1/1.0 | Command introduced in Junos OS Release 9.0. | [
"Understanding LLDP",
"Configuring LLDP (CLI Procedure)",
"Understanding LLDP and LLDP-MED on EX Series Switches"
] | |
clear lldp statistics | clear lldp statistics
<interface interface-name> | Clear all Link Layer Discovery Protocols (LLDP) statistics or LLDP statistics associated with the specified
interface.
For information about interface names in the Junos Fusion technology, see Understanding Junos Fusion
Ports . | [
{
"name": "none",
"desc": "Clear LLDP statistics on all interfaces."
},
{
"name": "interface interface-name",
"desc": "(Optional) Clear LLDP statistics on the specified interface."
}
] | clear
Output Fields
When you enter this command, you are provided no feedback on the status of your request. You can
enter the show lldp statistics command before and after clearing the LLDP statistics to verify the clear
operation.
Sample Output
clear lldp statistics
user@switch> clear lldp statistics
clear lldp stat... | Command introduced in Junos OS Release 9.0. | [
"Device Discovery Using LLDP and LLDP-MED on Switches",
"Device Discovery Using LLDP and LLDP-MED on Switches",
"Device Discovery Using LLDP and LLDP-MED on Switches"
] | |
clear log (JDM) | clear log file-name | Clear the system log or trace files. | [] | View
Output Fields
This command produces no output.
Sample Output
clear log
user@jdm> clear log syslog | Command introduced in Junos OS Release 17.4R1. | [] | |
clear log (Next Gen Services) | clear log service-set | interface | file-name | Clear log for service-set, interface, or file. | [
{
"name": "service-set",
"desc": "Specify the name of the service-set for which you want to clear the log."
},
{
"name": "interface-name",
"desc": "Specify the name of the interface for which you want to clear the log."
},
{
"name": "file-name",
"desc": "Specify the file-name for whi... | View
Output Fields
This command produces no output.
Sample Output
clear log
user@host> clear log vms 1/0/0 | Command introduced in Junos OS Release 20.3R1. | [] | |
clear log | clear log filename
<all> | Remove contents of a log file. | [
{
"name": "filename",
"desc": "Name of the specific log file to delete. Note that the file name cannot contain any special"
},
{
"name": "characters, including: ![=;|(){}]",
"desc": ""
},
{
"name": "all",
"desc": "(Optional) Delete the specified log file and all archived versions of ... | clear and trace-control
Output Fields
See file list for an explanation of output fields.
Sample Output
clear log
The following sample commands list log file information, clear the contents of a log file, and then display
the updated log file information:
user@host> file list lcc0-re0:/var/log/sampled detail
lcc0-re0:
-... | Command introduced before Junos OS Release 7.4. | [
"show log"
] | |
clear loop-detect enhanced interface | clear loop-detect enhanced interface
<interface-name> | Restore a specified logical interface or all logical interfaces to their prior state after the device detects a
loop and applies a configured action to break the loop.
You can configure the lightweight PE to CE loop detect feature on leaf devices for server-facing Layer 2
logical interfaces using the loop-detect state... | [
{
"name": "interface-name",
"desc": "Logical interface to revert to the state prior to the loop detect action. If you don't specify an interface name, this command defaults to restoring the state of all logical interfaces affected by the loop detect action."
}
] | clear
Sample Output
clear loop-detect enhanced interface
user@host> clear loop-detect enhanced interface
user@host>
clear loop-detect enhanced interface interface-name
user@host> clear loop-detect enhanced interface xe-0/0/10.0
user@host> | Command introduced in Junos OS Release 20.4R1. | [
"EVPN-VXLAN Lightweight Leaf to Server Loop Detection"
] | |
clear mac-vrf forwarding mac-ip-table | clear mac-vrf forwarding mac-ip-table
<address>
<instance routing instance>
<ipv4>
<ipv6>
<vlan-name vlan name> | Clear all learned media access control (MAC) address to IP address (MAC+IP) mappings from MAC-VRF
type routing instances. | [
{
"name": "none",
"desc": "Clear all learned MAC+IP addresses learned through ARP from the device."
},
{
"name": "ipv4 ipv4-address",
"desc": "(Optional) Clear the specified (learned) IPv4 address from the device."
},
{
"name": "ipv6 ipv6-address",
"desc": "(Optional) Clear the speci... | clear | Command introduced in Junos OS Release 20.4R1. | [] | |
clear mac-vrf forwarding mac-learning-log | clear mac-vrf forwarding mac-learning-log | (QFX Series switches only) Clear the mac learning log. This action applies to all entries in the mac
learning log, regardless of source. | [] | clear | Command introduced in Junos OS Release 20.4R1. | [] | |
clear mac-vrf forwarding mac-table | clear mac-vrf forwarding mac-table
<address>
<instance routing instance>
<interface interface name>
<isid isis id>
<persistent-learning>
<vlan-id vlan id>
<vlan-name vlan name> | Clear all learned media access control (MAC) addresses from the MAC-VRF type routing instances. | [
{
"name": "none",
"desc": "Clear all learned MAC address entries from the device."
},
{
"name": "address",
"desc": "(Optional) Clear the specified MAC address from the device."
},
{
"name": "instance routing instance",
"desc": "(Optional) Clear MAC addresses from the specified MAC-VR... | clear | Command introduced in Junos OS Release 20.4R1. | [] | |
clear mac-vrf forwarding recovery-timeout | clear mac-vrf forwarding recovery-timeout
<interface interface name> | Clear all port errors that the device registered due to MAC address limits. If you configure MAC limiting
with the shutdown option, the device shuts down the affected interfaces until you clear the error. | [
{
"name": "interface interface",
"desc": ""
},
{
"name": "name",
"desc": "(Optional) Clear only those port errors that the device has registered on a specific interface due to MAC address limits."
}
] | clear | Command introduced in Junos OS Release 20.4R1. | [] | |
clear mac-vrf forwarding redundancy-group | clear mac-vrf forwarding redundancy-group
<redundancy-group-id>
<arp-statistics>
<nd-statistics> | Clear redundancy group statistics counters within all MAC-VRF routing instances. | [
{
"name": "none",
"desc": "Clear all redundancy group statistics counters."
},
{
"name": "redundancy-group-id",
"desc": "(Optional) Clear the counters for the specified redundancy group."
},
{
"name": "arp-statistics",
"desc": "(Optional) Clear multichassis aggregated-Ethernet ARP sy... | clear | Command introduced in Junos OS Release 20.4R1. | [] | |
clear mld membership | clear mld membership
<all>
<group group-name>
<interface interface-name>
<logical-system (all | logical-system-name)> | Clear Multicast Listener Discovery (MLD) group membership. | [
{
"name": "all",
"desc": "Clear MLD memberships for groups and interfaces in the master instance."
},
{
"name": "group group-name",
"desc": "(Optional) Clear MLD membership for the specified group."
},
{
"name": "interface interface-name",
"desc": "(Optional) Clear MLD group membersh... | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear mld membership all
user@host> clear mld membership all | Command introduced before Junos OS Release 7.4. | [] | |
clear mld snooping membership | clear mld snooping membership
<vlan vlan-name> | Clear MLD snooping dynamic membership information from the multicast forwarding table. | [
{
"name": "none",
"desc": "Clear dynamic membership information for all VLANs."
},
{
"name": "vlan vlan-name",
"desc": "(Optional) Clear dynamic membership information for the specified VLAN."
}
] | view
Sample Output
clear mld snooping membership vlan employee-vlan
user@host> clear mld snooping membership vlan employee-vlan | Command introduced in Junos OS Release 12.1. | [
"Understanding MLD Snooping",
"Example: Configuring MLD Snooping on SRX Series Devices"
] | |
clear mld snooping statistics | clear mld snooping statistics | Clear MLD snooping statistics. | [] | view
Sample Output
clear mld snooping statistics
user@host> clear mld snooping statistics | Command introduced in Junos OS Release 12.1. | [
"Understanding MLD Snooping",
"Example: Configuring MLD Snooping on SRX Series Devices"
] | |
clear mld statistics | clear mld statistics
(<continuous> | <interface interface-name>)
<logical-system (all | logical-system-name)> | 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 als... | [
{
"name": "none",
"desc": "(Same as logical-system all) Clear MLD statistics for all interfaces. This form of the command clears statistics for currently active subscribers only."
},
{
"name": "continuous",
"desc": "Clear only the continuous MLD statistics that account for both past and current ... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear mld statistics
user@host> clear mld statistics
clear mld statistics continuous
user@host> clear mld statistics continuous | Command introduced before Junos OS Release 7.4.
continuous option added in Junos OS Release 19.4R1 for MX Series routers. | [] | |
clear monitor security flow filter | clear monitor security flow filter <filter-name> | Specify the security flow filters to be deleted. Once deleted, the filters are removed from the Packet
Forwarding Engine and the Routing Engine. .
NOTE: Specifying the filter name is optional. If no filter is specified, all filters are deleted. | [] | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output | Command introduced in Junos OS Release 12.1X46-D10. | [
"Monitoring Security Flow Sessions Overview"
] | |
clear mpls container-lsp | clear mpls container-lsp
<autobandwidth>
<history>
<logical-system (all | logical-system-name)>
<member>
<name name>
<optimize | optimize-aggressive>
<statistics> | Release the routes and states associated with MPLS container label-switched paths (LSPs), and start
new LSPs. | [
{
"name": "none",
"desc": "Reset and restart all LSPs that originated from this routing device; that is, all LSPs for which this routing device is the ingress routing device. Depending on the number of LSPs involved, it might take a while to restart all the LSPs."
},
{
"name": "autobandwidth",
"... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear mpls container-lsp
user@host> clear mpls container-lsp
clear mpls container-lsp name
user@host> clear mpls container-lsp name name
clear mpls container-lsp statistics
user@host> clear mpls con... | Statement introduced in Junos OS Release 14.2.
Statement introduced for QFX Switches in Junos OS Release 15.1X53-D30. | [] | |
clear mpls lsp | clear mpls lsp
<all>
<autobandwidth>
<name name>
<optimize | optimize-aggressive>
<path regular-expression>
<statistics> | Release the routes and states associated with MPLS label-switched paths (LSPs), and start new LSPs.
CAUTION: This command disconnects existing Resource Reservation Protocol (RSVP)
sessions on the ingress routing device. If there is a time lag between the old path being
torn down and the new path being set up, this comm... | [
{
"name": "all",
"desc": "Reset and restart all LSPs that originated from this routing device; that is, all LSPs for which this routing device is the ingress routing device. Depending on the number of LSPs involved, it might take a while to restart all the LSPs."
},
{
"name": "autobandwidth",
"d... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear mpls lsp all
user@host> clear mpls lsp all | Command introduced before Junos OS Release 7.4. | [] | |
clear mpls tunnel manager statistics | clear mpls tunnel manager statistics
<logical-system (all | logical-system-name)> | Clear the counters that track the number of Multiprotocol Label Switching (MPLS) label-switched paths
(LSPs) that have been updated in-place without any change to LSP identifier (ID). | [
{
"name": "none",
"desc": "Clear in-place updated LSP counter statistics."
},
{
"name": "logical-system (all | logical-system-name)",
"desc": "(Optional) Perform this operation on all logical systems or on a particular logical system."
}
] | view
Sample Output
clear mpls tunnel manager statistics | Command introduced in Junos OS Release 20.4R1. | [] | |
clear msdp cache | clear msdp cache
<all>
<instance instance-name>
<logical-system (all | logical-system-name)>
<peer peer-address> | Clear the entries in the Multicast Source Discovery Protocol (MSDP) source-active cache. | [
{
"name": "all",
"desc": "Clear all MSDP source-active cache entries in the master instance."
},
{
"name": "instance instance-name",
"desc": "(Optional) Clear entries for a specific MSDP instance."
},
{
"name": "logical-system (all |",
"desc": ""
},
{
"name": "logical-system-... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear msdp cache all
user@host> clear msdp cache all | Command introduced before Junos OS Release 7.4. | [] | |
clear msdp statistics | clear msdp statistics
<instance instance-name>
<logical-system (all | logical-system-name)>
<peer peer-address> | Clear Multicast Source Discovery Protocol (MSDP) peer statistics. | [
{
"name": "none",
"desc": "Clear MSDP statistics for all peers."
},
{
"name": "instance instance-name",
"desc": "(Optional) Clear statistics for the specified instance."
},
{
"name": "logical-system (all | logical-system-name)",
"desc": "(Optional) Perform this operation on all logic... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear msdp statistics
user@host> clear msdp statistics | Command introduced before Junos OS Release 7.4. | [] | |
clear multicast bandwidth-admission | clear multicast bandwidth-admission
<group group-address>
<inet | inet6>
<instance instance-name>
<interface interface-name>
<source source-address> | Reapply IP multicast bandwidth admissions. | [
{
"name": "none",
"desc": "Reapply multicast bandwidth admissions for all IPv4 forwarding entries in the master routing instance."
},
{
"name": "group group-address",
"desc": "(Optional) Reapply multicast bandwidth admissions for the specified group."
},
{
"name": "inet",
"desc": "(O... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear multicast bandwidth-admission
user@host> clear multicast bandwidth-admission | Command introduced in Junos OS Release 8.3.
inet6 and instance options introduced in Junos OS Release 10.0 for EX Series switches. | [] | |
clear multicast forwarding-cache | clear multicast forwarding-cache
<all>
<inet | inet6>
<instance instance-name>
<logical-system (all | logical-system-name)> | Clear IP multicast forwarding cache entries.
This command is not supported for next-generation multiprotocol BGP multicast VPNs (MVPNs). | [
{
"name": "all",
"desc": "Clear all multicast forwarding cache entries in the master instance."
},
{
"name": "inet",
"desc": "(Optional) Clear multicast forwarding cache entries for IPv4 family addresses."
},
{
"name": "inet6",
"desc": "(Optional) Clear multicast forwarding cache ent... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear multicast forwarding-cache all
user@host> clear multicast forwarding-cache all | Command introduced in Junos OS Release 12.2. | [] | |
clear multicast scope | clear multicast scope
<inet | inet6>
<interface interface-name> | Clear IP multicast scope statistics. | [
{
"name": "none",
"desc": "(Same as logical-system all) Clear multicast scope statistics."
},
{
"name": "inet",
"desc": "(Optional) Clear multicast scope statistics for IPv4 family addresses."
},
{
"name": "inet6",
"desc": "(Optional) Clear multicast scope statistics for IPv6 family ... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear multicast scope
user@host> clear multicast scope | Command introduced in Junos OS Release 7.6.
inet6 option introduced in Junos OS Release 10.0 for EX Series switches. | [] | |
clear multicast sessions | clear multicast sessions
<regular-expression> | Clear IP multicast sessions. | [
{
"name": "none",
"desc": "(Same as logical-system all) Clear multicast sessions."
},
{
"name": "logical-system (all | logical-system-name)",
"desc": "(Optional) Perform this operation on all logical systems or on a particular logical system."
},
{
"name": "regular-expression",
"desc... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear multicast sessions
user@host> clear multicast sessions | Command introduced before Junos OS Release 7.4. | [] | |
clear multicast snooping statistics | clear multicast snooping statistics
<instance instance-name>
<interface interface-name>
<logical-system (all | logical-system-name)> | Clear IP multicast snooping statistics. | [
{
"name": "none",
"desc": "Clear multicast snooping statistics for all supported address families on all interfaces."
},
{
"name": "instance instance-name",
"desc": "(Optional) Clear multicast snooping statistics for the specified instance."
},
{
"name": "interface interface-name",
"... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear multicast snooping statistics
user@host> clear multicast snooping statistics | Command introduced in Junos OS Release 8.5. | [] | |
clear multicast statistics | clear system-packet-forwarding-options multicast-statistics
There are no available options for the EX4300. | Clear IP multicast statistics. | [
{
"name": "none",
"desc": "Clear multicast statistics for all supported address families on all interfaces."
},
{
"name": "inet",
"desc": "(Optional) Clear multicast statistics for IPv4 family addresses."
},
{
"name": "inet6",
"desc": "(Optional) Clear multicast statistics for IPv6 f... | clear
Output Fields
When you enter this command, you get feedback on the status of your request.
Sample Output
clear multicast statistics
user@host> clear multicast statistics | Command introduced before Junos OS Release 7.4.
inet6 and instance options introduced in Junos OS Release 10.0 for EX Series switches.
Syntax added in Junos OS Release 19.2R1 for clearing multicast route statistics (EX4300 switches). | [] | |
clear mvrp statistics | clear mvrp statistics
<interface interface-name>
<routing-instance routing-instance-name> | Clear all Multiple VLAN Registration Protocol (MVRP) interface and, for SRX Series Firewalls, routing
instances statistics. | [
{
"name": "none",
"desc": "Clear all MVRP statistics."
},
{
"name": "interface interface-name",
"desc": "Clear the MVRP statistics on the specified interface."
},
{
"name": "routing-instance",
"desc": ""
},
{
"name": "name",
"desc": "Clear the MVRP statistics on the speci... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear mvrp statistics
user@switch> clear mvrp statistics
clear mvrp statistics interface ge-0/0/1.0
user@switch> clear mvrp statistics interface ge-0/0/1.0 | Command introduced in Junos OS Release 10.0. | [
"Example: Configuring Automatic VLAN Administration Using MVRP on EX Series Switches"
] | |
clear neighbor-discovery-inspection statistics | clear neighbor-discovery-inspection statistics
<interface interface-name> | Clear IPv6 neighbor discovery inspection statistics. | [
{
"name": "none",
"desc": "Clear neighbor discovery inspection statistics on all interfaces."
},
{
"name": "interface interface-name",
"desc": "(Optional) Clear neighbor discovery inspection statistics on one or more interfaces."
}
] | clear
Output Fields
This command produces no output.
Sample Output
clear neighbor-discovery-inspection statistics
user@switch> clear neighbor-discovery-inspection statistics | Command introduced in Junos OS Release 14.1X53-D10. | [
"Example: Configuring Port Security (non-ELS)"
] | |
clear network access nas-5g statistics | clear network-access nas-5g statistics | Clear the counter tracking network NAS 5G messages. | [
{
"name": "none",
"desc": ""
}
] | view | Command introduced in Junos OS Release 22.3R1. | [] | |
clear network-access aaa saml assertion-cache | clear network-access aaa saml assertion-cache
<domain-name domain-name>
<username username> | Clear Security Assertion Markup Language (SAML) authentication assertion cache information. If you
don't specify an option, the firewall clears all the entries by default. | [
{
"name": "domain-name",
"desc": ""
},
{
"name": "domain-name",
"desc": "Specify the domain name such as example.net or any. This domain should match the domain configured in the profile at set access profile demo saml identity-provider."
},
{
"name": "username",
"desc": ""
},
{
... | clear | Command introduced in Junos OS Release 24.4R1. | [] | |
clear network-access aaa saml idp-metadata | clear network-access aaa saml idp-metadata
<all>
<id id> | Clear Security Assertion Markup Language (SAML) authentication identity provider (IdP) metadata. | [
{
"name": "all",
"desc": "Clear all IdP metadata."
},
{
"name": "id id",
"desc": "Specify the IdP metadata ID."
}
] | view | Command introduced in Junos OS Release 24.4R1. | [] | |
clear network-access aaa statistics | clear network-access aaa statistics
<accounting>
<address-assignment (client | pool pool-name)>
<authentication>
<dynamic-requests>
<radius>
<re-authentication>
<saml>
<session-limit-per-username username username access-profile profile-name>
<terminate-code> | Clear AAA statistics. | [
{
"name": "accounting",
"desc": "(Optional) Clear AAA accounting statistics."
},
{
"name": "address-assignment",
"desc": ""
},
{
"name": "client",
"desc": "(Optional) Clear AAA address-assignment statistics for the client."
},
{
"name": "address-assignment",
"desc": ""
... | maintenance
Output Fields
When you enter this command, you get a feedback on the status of your request.
Sample Output
clear network-access aaa statistics accounting
user@host> clear network-access aaa statistics accounting
clear network-access aaa statistics address-assignment pool
user@host> clear network-access aaa... | Command introduced in Junos OS Release 10.0.
radius option introduced in Junos OS Release 11.4
terminate-code option introduced in Junos OS Release 11.4.
session-limit-per-username option introduced in Junos OS Release 18.4R1 on MX Series routers.
Support for saml added in Junos OS Release 24.4R1. | [
"Verifying and Managing Subscriber AAA Information",
"Understanding Session Options for Subscriber Access",
"Limiting the Number of Active Sessions per Username and Access Profile",
"show network-access aaa statistics"
] | |
clear network-access aaa subscriber | clear network-access aaa subscriber
<session-id identifier <reconnect>>
<statistics username username>
<username username <reconnect>> | Clear AAA subscriber statistics and log out subscribers. You can log out subscribers based on the
username or on the subscriber session identifier. Use the session identifier when more than one session
has the same username string. | [
{
"name": "reconnect",
"desc": "(Optional) Reconnect as a Layer 2 wholesale session when the subscriber session has been fully logged out. This option is equivalent to issuing a RADIUS-initiated disconnect with reconnect semantics; that is, when the message includes Acct-Terminate-Cause (RADIUS attribute 49... | maintenance
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear network-access aaa subscriber statistics username
user@host> clear network-access aaa subscriber statistics username user22@example.com
clear network-access aaa subscriber statistics user... | Command introduced in Junos OS Release 9.1.
reconnect and session-id options added in Junos OS Release 16.1R4. | [
"Verifying and Managing Subscriber AAA Information"
] | |
clear network-access gx-plus replay | clear network-access gx-plus replay | Clear pending Gx-Plus login and logout requests (replays). Sends JSER message to PCRF that includes
the Juniper-Event-Type AVP (AVP code 2103) with a value of 3 indicating a discovery request. The
PCRF returns a JDER message to initiate discovery of all subscribers. When this discovery completes, all
pending subscriber... | [] | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear network-access gx-plus replay
user@host> clear network-access gx-plus replay | Command introduced in Junos OS Release 11.2. | [] | |
clear network-access gx-plus statistics | clear network-access gx-plus statistics | Clear Gx-Plus statistics. | [] | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear network-access gx-plus statistics
user@host> clear network-access gx-plus statistics | Command introduced in Junos OS Release 11.2. | [] | |
clear network-access ocs statistics | clear network-access ocs statistics | Clear Online Charging System (OCS) provisioning statistics information. | [] | maintenance
Output Fields
When you enter this command, you are provided no feedback on the status of your request.
Sample Output
clear network-access ocs statistics
user@host> clear network-access ocs statistics | Command introduced in Junos OS Release 16.2. | [
"3GPP Policy and Charging Control for Wireline Provisioning and Accounting",
"3GPP Policy and Charging Control for Wireline Provisioning and Accounting",
"3GPP Policy and Charging Control for Wireline Provisioning and Accounting"
] | |
clear network-access pcrf | clear network-access pcrf (statistics | subscribers) | Clear Policy and Charging Rules Function (PCRF) provisioning statistics and subscribers information. | [
{
"name": "statistics",
"desc": "(Optional) Clear PCRF provisioning statistics."
},
{
"name": "subscribers",
"desc": "(Optional) Force logout of all PCRF subscribers. Used with draining mode to flush all subscribers before making substantial configuration changes."
}
] | maintenance
Output Fields
When you enter this command, you are provided no feedback on the status of your request.
Sample Output
clear network-access pcrf statistics
user@host> clear network-access pcrf statistics
Sample Output
clear network-access pcrf subscribers
user@host> clear network-access pcrf subscribers | Command introduced in Junos OS Release 16.2. | [
"3GPP Policy and Charging Control for Wireline Provisioning and Accounting",
"3GPP Policy and Charging Control for Wireline Provisioning and Accounting",
"3GPP Policy and Charging Control for Wireline Provisioning and Accounting"
] | |
clear network-access radsec state | clear network-access radsec state
<destination destination-id> | Clear the connection state information for RADSEC destinations. | [
{
"name": "destination destination–id",
"desc": "(Optional) Clear connection state information for the specified RADSEC destination."
}
] | clear
Output Fields
This command produces no output. | Command introduced in Junos OS Release 19.1R1. | [
"RADIUS over TLS (RADSEC)"
] | |
clear network-access radsec statistics | clear network-access radsec statistics
<destination destination-id> | Clear the connection statistics for RADSEC destinations. | [
{
"name": "destination destination–id",
"desc": "(Optional) Clear connection statistics for the specified RADSEC destination."
}
] | clear
Output Fields
This command produces no output. | Command introduced in Junos OS Release 19.1R1. | [
"RADIUS over TLS (RADSEC)"
] | |
clear network-access requests pending | clear network-access requests pending
<index index-number > | Clear or cancel all pending authentication requests. | [
{
"name": "none",
"desc": "Clear all network access requests pending."
},
{
"name": "index index-number",
"desc": "Clear the specified authentication request. To display index numbers, use the show"
}
] | clear
Output Fields
Sample Output
The following example displays the network access requests that are pending, clears the requests, and
displays the results of the clear operation:
clear network-access requests pending
user@host> show network-access requests pending
Information about pending authentication entries
T... | Command introduced in Release 8.5 of Junos OS. | [] | |
clear network-access requests statistics | clear network-access requests statistics | Clear general authentication statistics for the configured authentication type. | [] | clear
Output Fields
This command produces no output. | Command introduced in Release 8.5 of Junos OS. | [] | |
clear network-access securid-node-secret-file | clear network-access securid-node-secret-file | Delete the node secret file for the SecurID authentication type. | [] | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear network-access securid-node-secret-file
user@host> clear network-access securid-node-secret-file | Command introduced in Junos OS Release 9.1. | [
"Firewall User Authentication Overview"
] | |
clear node reboot | clear node reboot node-name | When you use this command, Junos OS Evolved cancels any pending reboots or shutdowns. If there are
no such commands, a fail message gets returned.
Sample Output
clear node reboot
user@host> clear node reboot re0
Cancel reboot of node at Tue Feb 22 13:31:09 2022 | [] | Command introduced in Junos OS Evolved 19.2R1.
clear oam ethernet connectivity-fault-management continuity- | [] | ||
measurement | clear oam ethernet connectivity-fault-management continuity-measurement
maintenance-domain md-name
maintenance-association ma-name
<local-mep local-mep-id>
<remote-mep remote-mep-id> | For all routers that support IEEE 802.1ag OAM connectivity fault management (CFM), clear the existing
continuity measurement and restart counting the operational uptime (that is, the total time during which
CCM adjacency is active for a particular remote MEP.). | [
{
"name": "maintenance-domain md-name",
"desc": "Name of an existing CFM maintenance domain."
},
{
"name": "maintenance-association ma-name",
"desc": "Name of an existing CFM maintenance association."
},
{
"name": "local-mep local-mep-id",
"desc": "(Optional) Display connectivity fau... | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear oam ethernet connectivity-fault- management continuity-measurement
user@host> clear oam ethernet connectivity-fault-management continuity-measurement maintenance-
domain md5 maintenance-associati... | Command introduced in Junos OS Release 11.1. | [
"Manage Continuity Measurement Statistics",
"Ethernet Interfaces User Guide for Routing Devices"
] | |
clear oam ethernet connectivity-fault-management delay-statistics | clear oam ethernet connectivity-fault-management delay-statistics
maintenance-association maintenance-association-name
maintenance-domain maintenance-domain-name
<logical-system logical-system-name>
<one-way>
<two-way> | On MX Series routers and EX Series switches, clear ITU-T Y.1731 Ethernet frame delay measurement
(ETH-DM) delay statistics and ETH-DM frame counts. | [
{
"name": "maintenance-association",
"desc": ""
},
{
"name": "maintenance-association-name",
"desc": "Clear ETH-DM delay statistics and ETH-DM frame counts for the specified maintenance association."
},
{
"name": "maintenance-domain",
"desc": ""
},
{
"name": "maintenance-doma... | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear oam ethernet connectivity-fault- management delay statistics
user@switch> clear oam ethernet connectivity-fault-management delay-statistics maintenance-
domain md1 maintenance-association ma1
De... | Command introduced in Junos OS Release 9.6. | [] | |
clear oam ethernet connectivity-fault-management event | clear oam ethernet connectivity-fault-management event
(adjacency-loss| all-defects | cross-connect-ccm | erroneous-ccm | receive-ais)
maintenance-domain md-name
maintenance-association ma-name
local-mep local-mep-id
logical-system
remote-mep remote-mep-id | Clear the event for the configured action profile. If you have configured the action profile at the local
MEP level, when you clear the event for the configured action profile, you can specify only the local
MEP numeric identifier to clear the event. You need not specify the remote MEP numeric identifier. If
you have c... | [
{
"name": "adjacency loss",
"desc": "Clear the adjacency loss event."
},
{
"name": "all-defects",
"desc": "Clear the all-defects event."
},
{
"name": "cross-connect-ccm",
"desc": "Clear the cross-connect-ccm event."
},
{
"name": "erroneous-ccm",
"desc": "Clear the erroneo... | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear oam ethernet connectivity-fault-management event
user@host> clear oam ethernet connectivity-fault-management event maintenance-domain md5
maintenance-association ma5 local-mep 2 remote-mep 1
Act... | Command introduced in Junos OS Release 20.2.
clear oam ethernet connectivity-fault-management linktrace path- | [] | |
database | clear oam ethernet connectivity-fault-management linktrace path-database mac-address maintenance-
association ma-name maintenance-domain md-name | Clear all the linktrace entries and the relevant path information from the database for a particular
remote host on M320, MX Series, T320, and T640 routers. | [
{
"name": "mac-address",
"desc": "Clear connectivity fault management path database information for the specified MAC address of the remote host."
},
{
"name": "maintenance-association",
"desc": ""
},
{
"name": "ma-name",
"desc": "Clear connectivity fault management path database inf... | view
Sample Output
clear oam ethernet connectivity-fault- management linktrace path-database
user@host> clear oam ethernet connectivity-fault-management linktrace path-database maintenance-
domain md1 maintenance-association ma3 00058573e483
This command produces no output. | Command introduced in Junos OS Release 9.0. | [] | |
clear oam ethernet connectivity-fault-management loss-statistics | clear oam ethernet connectivity-fault-management loss-statistics
<interface ethernet-interface-name>
<level md-level> | For all routers that support IEEE 802.1ag OAM connectivity fault management (CFM), clear all loss
statistics maintained by CFM for a given maintenance domain and maintenance association.
In addition, for Ethernet interfaces on MX Series routers , clear any ITU-T Y.1731 Ethernet frame loss
measurement (ETH-LM) statistic... | [
{
"name": "interface ethernet-interface-name",
"desc": "(Optional) Clear ETH-LM statistics and ETH-LM frame counts only for MEPs attached to the specified Ethernet physical interface."
},
{
"name": "level md-level",
"desc": "(Optional) Clear ETH-LM statistics and ETH-LM frame counts only for MEP... | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear oam ethernet connectivity-fault- management loss-statistics
user@host> clear oam ethernet connectivity-fault-management loss-statistics
Cleared loss measurements statistics of all CFM sessions | Command introduced in Junos OS Release 11.1. | [
"Configuring Ethernet Frame Loss Measurement"
] | |
clear oam ethernet connectivity-fault-management path-database | clear oam ethernet connectivity-fault-management path-database maintenance-domain md-name
maintenance-association ma-name host <mac-addr> | Clear the relevant path information from the database for the specified remote host. | [
{
"name": "host",
"desc": "MAC address of remote host in xx:xx:xx:xx:xx:xx format."
},
{
"name": "maintenance-association",
"desc": "Name of the maintenance association."
},
{
"name": "maintenance-domain",
"desc": "Name of the maintenance domain."
}
] | clear
Sample Output
clear oam ethernet connectivity-fault- management path-database
user@host> clear oam ethernet connectivity-fault-management path-database maintenance-domain
private maintenance-association private-ma 00:00:5E:00:53:AA
Path database entries cleared for the remote-host | Statement introduced in Junos OS Release 12.1X44-D10. | [
"show oam ethernet connectivity-fault-management path-database"
] | |
clear oam ethernet connectivity-fault-management policer | clear oam ethernet connectivity-fault-management policer maintenance-domain md-name maintenance-
association ma-name | On M7i and M10i with the Enhanced CFEB (CFEB-E), M320, M120, MX Series, T320, and T640 routers,
clear connectivity-fault-management policer statistics. | [
{
"name": "maintenance-domain",
"desc": ""
},
{
"name": "md-name",
"desc": "Name of an existing CFM maintenance domain. If this option is not specified, policer statistics are cleared for all maintenance associations for all maintenance domains."
},
{
"name": "maintenance-association ma-... | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
clear oam ethernet connectivity- fault-management policer
command-name
user@host> clear oam ethernet connectivity-fault-management
policer
Policer statistics cleared
clear oam ethernet connectivity- fault-management... | Command introduced in Junos OS Release 10.0. | [] | |
clear oam ethernet connectivity-fault-management sla-iterator-statistics | clear oam ethernet connectivity-fault-management sla-iterator-statistics
maintenance-association maintenance-association-name
maintenance-domain maintenance-domain-name
<local-mep local-mep-id>
<remote-mep remote-mep-id>
sla-iterator sla-iterator | Clear Ethernet Operation, Administration, and Maintenance (OAM) service-level agreement (SLA)
iterator statistics. For MX Series routers, clear the SLA iterator statistics and proactive Ethernet
synthetic loss measurement (ETH-SLM) statistics. | [
{
"name": "maintenance-domain maintenance-domain-name",
"desc": "Name of the maintenance domain."
},
{
"name": "local-mep local-mep-id",
"desc": "(Optional) Identifier of the local MEP."
},
{
"name": "remote-mep remote-mep-id",
"desc": "(Optional) Identifier of the remote MEP."
},
... | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear oam ethernet connectivity-fault -management sla-iterator- statistics
user@switch> clear oam ethernet connectivity-fault-management sla-iterator-statistics
maintenance-domain md1 maintenance-asso... | Command introduced in Junos OS Release 11.4. | [] | |
clear oam ethernet connectivity-fault-management statistics | clear oam ethernet connectivity-fault-management statistics
interface ethernet-interface-name
level md-level | For all routers that support IEEE 802.1ag OAM connectivity-fault management (CFM), clear all statistics
maintained by CFM.
In addition, for Ethernet interfaces on Dense Port Concentrators (DPCs) in MX Series routers only, also
clear any ITU-T Y.1731 Ethernet frame delay measurement (ETH-DM) statistics and ETH-DM frame
... | [
{
"name": "interface ethernet-interface-name",
"desc": "(Optional) Clear CFM statistics, ETH-DM statistics, and ETH-DM frame counts only for MEPs attached to the specified Ethernet physical interface."
},
{
"name": "level md-level",
"desc": "(Optional) Clear CFM statistics, ETH-DM statistics, an... | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear oam ethernet connectivity-fault- management statistics
user@host> clear oam ethernet connectivity-fault-management statistics
Cleared statistics of all CFM sessions | Command introduced in Junos OS Release 8.4.
Support for ETH-DM statistics and frame counts added in Junos OS Release 9.5. | [
"clear oam ethernet connectivity-fault-management synthetic-loss-"
] | |
measurement | clear oam ethernet connectivity-fault-management synthetic-loss-measurement
maintenance-domain md-name
maintenance-association ma-name
<local-mep local-mep-id>
<remote-mep remote-mep-id> | (MX Series routers)—For all routers that support IEEE 802.1ag OAM connectivity fault management
(CFM), clear the existing on-demand Ethernet synthetic loss measurement (ETH-SLM) statistics and
restart counting the ETH-SLM frame counts and statistics. | [
{
"name": "maintenance-domain md-name",
"desc": "Name of an existing CFM maintenance domain."
},
{
"name": "maintenance-association ma-name",
"desc": "Name of an existing CFM maintenance association."
},
{
"name": "local-mep local-mep-id",
"desc": "(Optional) Clear connectivity fault... | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear oam ethernet connectivity-fault- management synthetic-loss- measurement
user@host> clear oam ethernet connectivity-fault-management synthetic-loss-measurement
maintenance-domain md5 maintenance... | Command introduced in Junos OS Release 13.2. | [] | |
clear oam ethernet link-fault-management state | clear oam ethernet link-fault-management state <interface-name> | On all M Series, MX Series, ACX series, PTX Series, T320, and T640 routers, clear link fault management
state information, restart the link discovery process, and reset OAM loopback state (if set previously) on
Ethernet interfaces. | [
{
"name": "none",
"desc": "Clear OAM link fault management state information, restart the link discovery process, and reset OAM loopback state (if set previously) on all Ethernet interfaces."
},
{
"name": "interface-name",
"desc": "(Optional) Clear OAM link fault management state information, re... | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear oam ethernet link-fault-management state
user@host> clear oam ethernet link-fault-management state ge-0/3/3
Cleared link-fault-management state for interface ge-0/3/3 | Command introduced in Junos OS Release 8.4. | [] | |
clear oam ethernet link-fault-management statistics | clear oam ethernet link-fault-management <interface-name> | On M320, M120, MX Series, PTX Series, T320, and T640 routers, clear Operation, Administration, and
Management (OAM) link fault management statistics or state information from Ethernet interfaces. | [
{
"name": "none",
"desc": "Clear OAM link fault management statistics from all Ethernet interfaces."
},
{
"name": "interface-name",
"desc": "(Optional) Clear OAM link fault management statistics from the specified Ethernet interface only."
}
] | view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear oam ethernet link-fault-management statistics
user@host> clear oam ethernet link-fault-management statistics
Cleared link-fault-management statistics for all interfaces | Command introduced in Junos OS Release 8.2. | [] | |
clear ovsdb commit failures | clear ovsdb commit failures
<transaction-id> | Remove a transaction from a queue maintained by a Juniper Networks switch that supports the Open
vSwitch Database (OVSDB) management protocol and Virtual Extensible LANs (VXLANs). The
transaction includes OVSDB-managed VXLANs and associated logical interfaces that the Juniper
Networks switch dynamically configured and ... | [
{
"name": "none",
"desc": "Remove the transaction that currently appears in the show ovsdb commit failures command output, and retry committing all configurations in the transaction."
},
{
"name": "transaction-id",
"desc": "Remove the transaction with the specified numerical ID, and retry commit... | clear
Sample Output
clear ovsdb commit failures
user@host> clear ovsdb commit failures
clear ovsdb commit failures (Specific Transaction)
user@host> clear ovsdb commit failures 1 | Command introduced in Junos OS Release 14.1X53-D26. | [] | |
clear passive-monitoring statistics | clear passive-monitoring statistics (all | interface interface-name) | (M40e, M160, and M320 Series routers and T Series routers only) Clear statistics for one passive
monitoring interface or for all passive monitoring interfaces. | [
{
"name": "all",
"desc": "Clear statistics for all configured passive monitoring interfaces."
},
{
"name": "interface interface-name",
"desc": "Clear statistics for the specified passive monitoring interface (mo-fpc/pic/port)."
}
] | network
Output Fields
When you enter this command, you are not provided feedback on the status of your request.
Sample Output
clear passive-monitoring statistics
user@host> clear passive-monitoring statistics interface mo-5/0/0 | Command introduced in Junos OS Release 7.6. | [] | |
clear path-computation-client statistics | clear path-computation-client statistics
<pce-id | all> | Clear Path Computation Element (PCE) statistics. | [
{
"name": "pce-id",
"desc": "(Optional) Clear statistics of the specified PCE."
},
{
"name": "all",
"desc": "(Optional) Clear statistics of all available PCEs configured on the path computation client (PCC)."
}
] | clear
Output Fields
When you enter this command, you are not provided feedback on the status of your request.
Sample Output
clear path-computation-client statistics pce-id
user@host> clear path-computation-client statistics pce1
clear path-computation-client statistics all
user@host> clear path-computation-client stat... | Statement introduced in Junos OS Release 12.3. | [] | |
clear performance-monitoring mpls lsp | clear performance-monitoring mpls lsp
<name lsp-name> | Restart the performance monitoring statistics. | [
{
"name": "none",
"desc": "Reset and restart all performance monitoring for all LSPs."
},
{
"name": "name lsp-name",
"desc": "(Optional) Reset and restart performance monitoring for the specified LSP."
}
] | clear
Output Fields
When you enter this command, performance monitoring is restarted.
Sample Output
clear performance-monitoring mpls lsp
user@host> clear performance-monitoring mpls lsp | Command introduced in Junos OS Release 15.1. | [] | |
clear pfe sflow egress-mcast-stats | clear pfe sflow egress-mcast-stats | Clears sFlow egress multicast related statistics like dropped samples count and replicated samples count
from the Packet Forwarding Engine. | [] | view
Sample Output
clear pfe sflow egress-mcast-stats
user@host> clear pfe sflow egress-mcast-stats
Slot 0
Sflow VxLAN Stats cleared | Command introduced in Junos OS Release 21.2R1. | [] | |
clear pim join | clear pim join
<all>
<group-address>
<dense | sparse>
<exact>
<inet | inet6>
<instance instance-name>
<rp ip-address/prefix | source ip-address/prefix>
<sg | star-g> | Clear the Protocol Independent Multicast (PIM) join and prune states. | [
{
"name": "all",
"desc": "To clear PIM join and prune states for all groups and family addresses in the master instance, you must specify “all”.."
},
{
"name": "group-address",
"desc": "(Optional) Clear the PIM join and prune states for a group address."
},
{
"name": "bidirectional | den... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear pim join all
user@host> clear pim join all
Cleared 8 Join/Prune states
clear pim join inet6 all
user@host> clear pim join inet6 all
Cleared 4 Join/Prune states
clear pim join inet6 star-g all... | Command introduced before Junos OS Release 7.4.
inet6 and instance options introduced in Junos OS Release 10.0 for EX Series switches.
Multiple new filter options introduced in Junos OS Release 13.2. | [] | |
clear pim join-distribution | clear pim join-distribution
<all>
<instance instance-name>
<logical-system (all | logical-system-name)> | Clear the PIM join-redistribute states.
Use the show pim source command to find out if there are multiple paths available for a source (for
example, an RP).
When you include the join-load-balance statement in the configuration, the PIM join states are distributed
evenly on available equal-cost multipath links. When an ... | [
{
"name": "all",
"desc": "(Optional) Clear the PIM join-redistribute states for all groups and family addresses in the master instance."
},
{
"name": "none",
"desc": "Automatically clear all PIM join/prune states."
},
{
"name": "instance instance-name",
"desc": "(Optional) Redistribu... | clear
Output Fields
When you enter this command, you are provided no feedback on the status of your request. You can
enter the show pim join command before and after distributing the join state to verify the operation.
Sample Output
clear pim join-distribution all
user@host> clear pim join-distribution all | Command introduced in Junos OS Release 10.0. | [] | |
clear pim register | clear pim register
<inet | inet6>
<instance instance-name>
<logical-system (all | logical-system-name)> | Clear Protocol Independent Multicast (PIM) register message counters. | [
{
"name": "all",
"desc": "Required to clear the PIM register message counters for all groups and family addresses in the master instance."
},
{
"name": "inet | inet6",
"desc": "(Optional) Clear PIM register message counters for IPv4 or IPv6 family addresses, respectively."
},
{
"name": "... | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear pim register all
user@host> clear pim register all | Command introduced in Junos OS Release 7.6.
inet6 and instance options introduced in Junos OS Release 10.0 for EX Series switches. | [] | |
clear pim snooping join | clear pim snooping join
<instance instance-name>
<logical-system logical-system-name>
<vlan-id vlan-id> | Clear information about Protocol Independent Multicast (PIM) snooping joins. | [
{
"name": "none",
"desc": "Display detailed information."
},
{
"name": "instance instance-name",
"desc": "(Optional) Clear PIM snooping join information for the specified routing instance."
},
{
"name": "logical-system logical-system-name",
"desc": "(Optional) Delete the IGMP snoopin... | view
Output Fields
See "show pim snooping join" on page 24029 for an explanation of the output fields.
Sample Output
clear pim snooping join
The following sample output displays information about PIM snooping joins before and after the clear
pim snooping join command is entered:
user@host> show pim snooping join extens... | Command introduced in Junos OS Release 12.3. | [
"PIM Snooping for VPLS"
] | |
clear pim snooping statistics | clear pim snooping statistics
<instance instance-name>
<interface interface-name>
<logical-system logical-system-name>
<vlan-id vlan-id> | Clear Protocol Independent Multicast (PIM) snooping statistics. | [
{
"name": "none",
"desc": "Clear PIM snooping statistics for all family addresses, instances, and interfaces."
},
{
"name": "instance instance-name",
"desc": "(Optional) Clear statistics for a specific PIM-snooping-enabled routing instance."
},
{
"name": "interface interface-name",
"... | clear
Output Fields
See "show pim snooping statistics" on page 24042 for an explanation of the output fields.
Sample Output
clear pim snooping statistics
The following sample output displays PIM snooping statistics before and after the clear pim snooping
statistics command is entered:
user@host> show pim snooping stati... | Command introduced in Junos OS Release 12.3. | [
"PIM Snooping for VPLS"
] | |
clear pim statistics | clear pim statistics
<inet | inet6>
<instance instance-name>
<interface interface-name> | Clear Protocol Independent Multicast (PIM) statistics. | [
{
"name": "none",
"desc": "Clear PIM statistics for all family addresses, instances, and interfaces."
},
{
"name": "inet | inet6",
"desc": "(Optional) Clear PIM statistics for IPv4 or IPv6 family addresses, respectively."
},
{
"name": "instance instance-name",
"desc": "(Optional) Cle... | clear
Output Fields
See "show pim statistics" on page 24053 for an explanation of output fields.
Sample Output
clear pim statistics
The following sample output displays PIM statistics before and after the clear pim statistics command is
entered:
user@host> show pim statistics
PIM statistics on all interfaces:
PIM Mess... | Command introduced before Junos OS Release 7.4.
inet6 and instance options introduced in Junos OS Release 10.0 for EX Series switches. | [] | |
clear policy statistics | clear policy statistics
<policy -name> | Clear policy statistics. | [
{
"name": "none",
"desc": "Clear statistics for all policies."
},
{
"name": "policy-name",
"desc": "(Optional) Clear statistics for the specified policy only."
}
] | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear policy statistics
user@host> clear policy statistics | Command introduced in Junos OS Release 15.1F6. | [] | |
clear pppoe lockout atm-identifier | clear pppoe lockout atm-identifier device-name device-name vpi vpi-identifier vci vci-identifier
<aci circuit-id | mac-address mac-address > | Clear the lockout condition for the PPPoE client associated with the specified ATM encapsulation type
and, optionally, media access control (MAC) source address or agent circuit identifier (ACI) value.
Because the lockout condition persists even in the absence of an underlying interface or after automatic
removal of th... | [
{
"name": "circuit-id",
"desc": "(Optional) ACI value associated with the PPPoE client for which you want to clear lockout. To clear the lockout condition by a specified ACI value, you must specify the filter aci option in the short-cycle-protection statement when you configure PPPoE subscriber session lock... | clear
Sample Output
clear pppoe lockout atm-identifier device-name vpi vci (PPPoE Client with Specified VPI and
VCI on ATM Physical Interface)
user@host> clear pppoe lockout atm-identifier device-name at-1/0/0 vpi 10 vci 40
clear pppoe lockout atm-identifier device-name vpi vci aci (PPPoE Client with Specified VPI
and ... | Command introduced in Junos OS Release 15.2. | [
"Clearing Lockout of PPPoE Subscriber Sessions",
"Configuring Lockout of PPPoE Subscriber Sessions"
] | |
clear pppoe lockout vlan-identifier | clear pppoe lockout vlan-identifier device-name device-name
<aci circuit-id | mac-address mac-address >
<svlan-id svlan-identifier>
<vlan-id vlan-identifier> | Clear the lockout condition for the PPPoE client associated with the specified VLAN encapsulation type
and, optionally, media access control (MAC) source address and agent circuit identifier (ACI) value.
Because the lockout condition persists even in the absence of an underlying interface or after automatic
removal of ... | [
{
"name": "circuit-id",
"desc": "(Optional) ACI value associated with the PPPoE client for which you want to clear lockout. To clear the lockout condition by a specified ACI value, you must specify the filter aci option in the short-cycle-protection statement when you configure PPPoE subscriber session lock... | clear
Sample Output
clear pppoe lockout vlan-identifier device-name (Untagged VLAN on Aggregated Ethernet
Bundle)
user@host> clear pppoe lockout vlan-identifier device-name ae3
clear pppoe lockout vlan-identifier device-name vlan-id (Single-Tagged VLAN on Gigabit
Ethernet Interface)
user@host> clear pppoe lockout vlan... | Command introduced in Junos OS Release 15.2. | [
"Clearing Lockout of PPPoE Subscriber Sessions",
"Configuring Lockout of PPPoE Subscriber Sessions"
] | |
clear pppoe lockout | clear pppoe lockout
<aci circuit-id | mac-address mac-address >
<underlying-interfaces underlying-interface-name> | Clear the lockout condition for the PPPoE client associated with the specified media access control
(MAC) source address or agent circuit identifier (ACI) value. | [
{
"name": "none",
"desc": "Clear the lockout condition for the PPPoE clients associated with all MAC source addresses on all PPPoE underlying interfaces."
},
{
"name": "aci circuit-id",
"desc": "(Optional) Clear the lockout condition for the PPPoE client associated with the specified ACI value. ... | clear
Sample Output
clear pppoe lockout (All MAC Source Addresses on All Underlying Interfaces)
user@host> clear pppoe lockout
clear pppoe lockout mac-address (Specified MAC Source Address)
user@host> clear pppoe lockout mac-address 00:00:5e:00:53:30
clear pppoe lockout mac-address underlying-interfaces (Specified MAC ... | Command introduced in Junos OS Release 11.4.
aci option introduced in Junos OS Release 13.3. | [
"Clearing Lockout of PPPoE Subscriber Sessions",
"Configuring Lockout of PPPoE Subscriber Sessions"
] | |
clear pppoe statistics | clear pppoe statistics
<interface interface-name>
<underlying-interface-name> | Reset PPPoE session statistics information. | [
{
"name": "none",
"desc": "Reset PPPoE statistics for all interfaces."
},
{
"name": "underlying-interface-name",
"desc": "(Optional) Reset PPPoE statistics for the specified underlying PPPoE interface."
}
] | clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear pppoe statistics
user@host> clear pppoe statistics
clear pppoe statistics
user@host> clear pppoe statistics ge-4/0/3.2 | Command introduced before Junos OS Release 7.4.
underlying-interface-name option introduced in Junos OS Release 9.5. | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.