--- title: "loop-detection" slug: "cli-as-loop-detection" tags: ["Assurance Sensor CLI"] updated: 2025-07-04T20:10:04Z published: 2025-09-04T19:22:30Z canonical: "docs.crossworkassurance.cisco.com/cli-as-loop-detection" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # loop-detection ## loop-detection add link loop-detection add link - Add a link-based loop-detection instance **Description:** Add a link-based loop-detection instance. **Syntax:** ``` loop-detection add link {{state {enable | disable} } | {name } | {interval <1-30> } | {index <1-200> } | {auto-block {enable | disable} } | {revertive {enable | disable} } }+ ``` **Parameters:** | Parameter | Description | | --- | --- | | | Only physical, non-management ports are accepted. | | state | Enable execution of the loop-detection instance. | | name | A unique name. If the name is omitted, a free name is allocated automatically. | | interval | Beacon transmission rate (1-30 seconds). Default: 1. | | index | A free index. If the index is omitted, a free index is allocated automatically. | | auto-block | Enable auto-block mechanism. | | revertive | Enable revertive mode for the auto-block mechanism. | ## loop-detection add tunnel loop-detection add tunnel - Add a tunnel-based loop-detection instance **Description:** Add a tunnel-based loop-detection instance. **Syntax:** ``` loop-detection add tunnel {{state {enable | disable} } | {name } | {interval <1-30> } | {index <1-200> } | {auto-block {enable | disable} } | {revertive {enable | disable} } }+ ``` **Parameters:** | Parameter | Description | | --- | --- | | | Only single-tagged VLAN interfaces are accepted. | | state | Enable execution of the loop-detection instance. | | name | A unique name. If the name is omitted, a free name is allocated automatically. | | interval | Beacon transmission rate (2-30 seconds). Default: 2. | | index | A free index. If the index is omitted, a free index is allocated automatically. | | auto-block | Enable auto-block mechanism. | | revertive | Enable revertive mode for the auto-block mechanism. | ## loop-detection clear all counters loop-detection clear all counters - Clear all loop-detection counters **Description:** Clear statistics of all loop-detection counters, including sent frames, received frames and loop-detected frames. **Syntax:** ``` loop-detection clear all counters ``` ## loop-detection clear global-counter loop-detection clear global-counter - Clear loop-detection global counter **Description:** Clear statistics of loop-detection global counter, including sent frames, received frames and loop-detected frames. **Syntax:** ``` loop-detection clear global-counter ``` ## loop-detection clear link counters loop-detection clear link counters - Clear statistics of a link-based loop-detection instance **Description:** Clear statistics of a link-based loop-detection instance, including sent frames, received frames and loop-detected frames. **Syntax:** ``` loop-detection clear link counters [] ``` **Parameters:** | Parameter | Description | | --- | --- | | name | Identifies the loop-detection instance to clear. | | index | Identifies the loop-detection instance to clear by index. | ## loop-detection clear tunnel counters loop-detection clear tunnel counters - Clear statistics of a tunnel-based loop-detection instance **Description:** Clear statistics of a tunnel-based loop-detection instance, including sent frames, received frames and loop-detected frames. **Syntax:** ``` loop-detection clear tunnel counters [] ``` **Parameters:** | Parameter | Description | | --- | --- | | name | Identifies the loop-detection instance to clear. | | index | Identifies the loop-detection instance to clear by index. | ## loop-detection delete link loop-detection delete link - Delete a link-based loop-detection instance **Description:** Delete an existing link-based loop-detection instance. **Syntax:** ``` loop-detection delete link ``` **Parameters:** | Parameter | Description | | --- | --- | | name | Identifies the loop-detection instance to clear. | | index | Identifies the loop-detection instance to clear by index. | ## loop-detection delete tunnel loop-detection delete tunnel - Delete a tunnel-based loop-detection instance **Description:** Delete an existing tunnel-based loop-detection instance. **Syntax:** ``` loop-detection delete tunnel index ``` **Parameters:** | Parameter | Description | | --- | --- | | name | Identifies the loop-detection instance to clear. | | index | Identifies the loop-detection instance to clear by index. | ## loop-detection diagnostic send loop-detection diagnostic send - Send a one-shot loop-detection beacon **Description:** Send a one-shot loop-detection beacon. **Syntax:** ``` loop-detection diagnostic send {vlan-state } {vlan-id <0-4094> } {vlan-ethertype } {timeout <3-30> } ``` **Parameters:** | Parameter | Description | | --- | --- | | port-name | Outgoing physical port. | | vlan-enable | Enable encapsulation of VLAN in the beacon. | | vlan-id | VLAN ID. | | vlan-ethertype | VLAN ethertype. | | timeout | Timeout (3-30 seconds). Default: 3. | ## loop-detection diagnostic show-status loop-detection diagnostic show-status - Show the loop-detection beacon status **Description:** Show the loop-detection beacon status. **Syntax:** ``` loop-detection diagnostic show-status ``` ## loop-detection edit link loop-detection edit link - Edit link-based loop-detection instance attributes **Description:** Edit link-based loop-detection instance attributes. **Syntax:** ``` loop-detection edit link {{state {enable | disable} } | {new-name } | {interval <1-30> } | {auto-block {enable | disable} } | {revertive {enable | disable} } }+ ``` **Parameters:** | Parameter | Description | | --- | --- | | name | Identifies the loop-detection instance to edit. | | index | Identifies the loop-detection instance to edit by index. | | state | Enable execution of the loop-detection instance. | | new-name | Unique name associated with the loop-detection instance. | | interval | Beacon transmission rate in seconds. | | auto-block | Enable auto-block mechanism. | | revertive | Enable revertive mode for the auto-block mechanism. | ## loop-detection edit tunnel loop-detection edit tunnel - Edit tunnel-based loop-detection instance attributes **Description:** Edit tunnel-based loop-detection instance attributes. **Syntax:** ``` loop-detection edit tunnel {{state {enable | disable} } | {name } | {interval <2-30> } | {auto-block {enable | disable} } | {revertive {enable | disable} } }+ ``` **Parameters:** | Parameter | Description | | --- | --- | | name | Identifies the loop-detection instance to edit. | | index | Identifies the loop-detection instance to edit by index. | | state | Enable execution of the loop-detection instance. | | new-name | Unique name associated with the loop-detection instance. | | interval | Beacon transmission rate in seconds. | | auto-block | Enable auto-block mechanism. | | revertive | Enable revertive mode for the auto-block mechanism. | ## loop-detection show all configuration loop-detection show all configuration - Show loop-detection configuration **Description:** Display a configuration summary of all loop-detection instances. **Syntax:** ``` loop-detection show all configuration ``` ## loop-detection show all counters loop-detection show all counters - Show loop-detection beacon statistics **Description:** Display beacon statistics of each loop-detection instance, including sent frames, received frames and loop-detected frames. **Syntax:** ``` loop-detection show all counters ``` ## loop-detection show all status loop-detection show all status - Show loop-detection status **Description:** Display the state of each loop-detection instance, whether it is loop-detected or not. **Syntax:** ``` loop-detection show all status ``` ## loop-detection show global-counter loop-detection show global-counter - Show loop-detection statistics summary **Description:** Display a summary beacon statistics for all instances, including sent frames, received frames and loop-detected frames. **Syntax:** ``` loop-detection show global-counter ``` ## loop-detection show link configuration loop-detection show link configuration - Show configuration of link-based loop-detection instances **Description:** Display a configuration summary of all link-based loop-detection instances. **Syntax:** ``` loop-detection show link configuration ``` ## loop-detection show link counters loop-detection show link counters - Show statistics of link-based loop-detection instances **Description:** Display statistics of each link-based loop-detection instance, including sent frames, received frames and loop-detected frames. **Syntax:** ``` loop-detection show link counters ``` ## loop-detection show link status loop-detection show link status - Show status of link-based loop-detection instances **Description:** Display the state of each link-based loop-detection instance, whether it is loop-detected or not. **Syntax:** ``` loop-detection show link status ``` ## loop-detection show tunnel configuration loop-detection show tunnel configuration - Show configuration of tunnel-based loop-detection instances **Description:** Display a configuration summary of all tunnel-based loop-detection instances. **Syntax:** ``` loop-detection show tunnel configuration ``` ## loop-detection show tunnel counters loop-detection show tunnel counters - Show statistics of tunnel-based loop-detection instances **Description:** Display statistics of each tunnel-based loop-detection instance, including sent frames, received frames and loop-detected frames. **Syntax:** ``` loop-detection show tunnel counters ``` ## loop-detection show tunnel status loop-detection show tunnel status - Show status of tunnel-based loop-detection instances **Description:** Display the state of each tunnel-based loop-detection instance, whether it is loop-detected or not. **Syntax:** ``` loop-detection show tunnel status ``` ## loop-detection traffic block link loop-detection traffic block link - Block traffic link-based loop-detection instance attributes **Description:** Block traffic link-based loop-detection instance attributes. **Syntax:** ``` loop-detection traffic block link ``` **Parameters:** | Parameter | Description | | --- | --- | | name | Identifies the loop-detection instance to clear. | | index | Identifies the loop-detection instance to clear by index. | ## loop-detection traffic block tunnel loop-detection traffic block tunnel - Block traffic tunnel-based loop-detection instance attributes **Description:** Block traffic tunnel-based loop-detection instance attributes. **Syntax:** ``` loop-detection traffic block tunnel ``` **Parameters:** | Parameter | Description | | --- | --- | | name | Identifies the loop-detection instance to clear. | | index | Identifies the loop-detection instance to clear by index. | ## loop-detection traffic clear link loop-detection traffic clear link - Clear traffic link-based loop-detection instance attributes **Description:** Clear traffic link-based loop-detection instance attributes. **Syntax:** ``` loop-detection traffic clear link ``` **Parameters:** | Parameter | Description | | --- | --- | | name | Identifies the loop-detection instance to clear. | | index | Identifies the loop-detection instance to clear by index. | ## loop-detection traffic clear tunnel loop-detection traffic clear tunnel - Clear traffic tunnel-based loop-detection instance attributes **Description:** Clear traffic tunnel-based loop-detection instance attributes. **Syntax:** ``` loop-detection traffic clear tunnel ``` **Parameters:** | Parameter | Description | | --- | --- | | name | Identifies the loop-detection instance to clear. | | index | Identifies the loop-detection instance to clear by index. | **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)