< Home

reset lldp statistics

Function

The reset lldp statistics command clears LLDP packet statistics on all interfaces or on a specified interface.

Format

reset lldp statistics [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Specifies the type and number of the interface where the LLDP statistics you want to reset. In the command:
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If no interface is specified, LLDP packet statistics of all interfaces are cleared.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To troubleshoot LLDP faults, you may need to view LLDP packet statistics within a certain period of time. In this case, you must run the reset lldp statistics command to clear existing LLDP packet statistics, and run the display lldp statistics command to view the new LLDP packet statistics.

Prerequisites

LLDP has been enabled globally using the lldp enable (system view) command.

Example

# Clear LLDP packet statistics on all interfaces.

<HUAWEI> reset lldp statistics
Warning: This Command will clear LLDP statistics of all the ports. Continue? [Y/N]:y

# Clear LLDP packet statistics of GigabitEthernet0/0/1.

<HUAWEI> reset lldp statistics interface gigabitethernet 0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >