Page 431 / 757 Scroll up to view Page 426 - 430
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
427
show lldp statistics
Purpose
Used to display the system LLDP statistics information.
Syntax
show lldp statistics
Description
The global LLDP statistics displays an overview of neighbor detection activity on the switch.
Parameters
None.
Restrictions
None.
Example usage:
To display global statistics information:
DGS-3627:admin# show lldp statistics
Command: show lldp statistics
Last Change Time
: 4875
Number of Table Insert : 0
Number of Table Delete : 0
Number of Table Drop
: 0
Number of Table Ageout : 0
DGS-3627:admin#
show lldp statistics ports
Purpose
Used to display the ports LLDP statistics information.
Syntax
show lldp statistics ports{<portlist>}
Description
The per-port LLDP statistics command displays per-port LLDP statistics.
Parameters
<portlist>
Use this parameter to define ports to be configured. When portlist is not
specified, information for all ports will be displayed.
Restrictions
None.
Example usage:
To display statistics information of port 1:
DGS-3627:admin# show lldp statistics ports 1
Command: show lldp statistics ports 1
Port ID : 1:1
---------------------------------------------
LLDPStatsTxPortFramesTotal
: 0
LLDPStatsRxPortFramesDiscardedTotal
: 0
LLDPStatsRxPortFramesErrors
: 0
LLDPStatsRxPortFramesTotal
: 0
LLDPStatsRxPortTLVsDiscardedTotal
: 0
LLDPStatsRxPortTLVsUnrecognizedTotal : 0
LLDPStatsRxPortAgeoutsTotal
: 0
DGS-3627:admin#
Page 432 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
428
55
LOOPBACK INTERFACE COMMANDS
The Loopback Interface commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Command
Parameters
config loopdetect
{recover_timer [0 | <sec 60-1000000>] | interval <sec 1-32767> | mode [port-
based | vlan-based]}(1)
config loopdetect ports
[<portlist> | all] state [enable | disable]
enable loopdetect
disable loopdetect
show loopdetect
show loopdetect ports
{<portlist>}
config loopdetect trap
[none | loop_detected | loop_cleared | both]
Each command is listed, in detail, in the following sections.
config loopdetect
Purpose
This command is used to setup the loop-back detection function (LBD) for the entire Switch.
±
Syntax
config loopdetect {recover_timer [0 | <sec 60-1000000>] | interval <sec 1-32767> |
mode [port-based | vlan-based]}(1)
Description
This command is used to setup the loop-back detection function (LBD) for the entire Switch.
±
Parameters
recover_timer
- (Optional) The time interval (in seconds) used by the Auto-Recovery
mechanism to decide how long to check before determining that the loop status has gone.
The valid range is from 60 to 1000000. 0 is a special value that specifies that the auto-
recovery mechanism should be disabled. When the auto-recovery mechanism is disabled, a
user would need to manually recover a disabled port. The default value for the recover timer
is 60 seconds.
0
- Specifies that the value of 0 will be set to the recovery timer.
<
sec 60-1000000
> - Enter the recovery timer value here. This value must be between 60 and
1000000 seconds.
interval
- (Optional) The time interval (in seconds) that the device will transmit all the CTP
(Configuration Test Protocol) packets to detect a loop-back event. The default setting is 10
seconds. The valid range is from 1 to 32767 seconds.
<
sec - 1-32767
> - Enter the time interval value here. This value must be between 1 and
32767 seconds.
mode
- (Optional) Specify the loop-detection operation mode. In port-based mode, the port
will be shut down (disabled) when loop has been detected In VLAN-based mode, the port
cannot process the packets of the VLAN that has detected the loop.
port-based
- Specifies that the loop-detection operation mode will be set to port-based mode.
vlan-based
- Specifies that the loop-detection operation mode will be set to vlan-based mode.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Page 433 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
429
To set the auto-recover time to 0, which disables the auto-recovery mechanism, the interval to 20 seconds and specify
VLAN-based mode:
DGS-3627:admin#
config loopdetect recover_timer 0 interval 20 vlan-based
Command: config loopdetect
recover_timer 0 interval 20 vlan-based
Success.
DGS-3627:admin#
config loopdetect ports
Purpose
This command is used to setup the loop-back detection function for the interfaces on the
Switch.
Syntax
config loopdetect ports [<portlist> | all] state [enable | disable]
Description
This command is used to setup the loop-back detection function for the interfaces on the
Switch.
Parameters
ports
- Specify the range of ports that LBD will be configured on.
<
portlist
> - Enter a list of ports
all
- To set all ports in the system, you may use the “all” parameter.
state
- Specify whether the LBD function should be enabled or disabled on the ports specified
in the port list. The default state is disabled.
enable
- Specify to enable the LBD function.
disable
- Specify to disable the LBD function.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To enable the LBD function on ports 1:1-1:5:
DGS-3627:admin#
config loopdetect ports 1:1-1:5 state enable
Command: config loopdetect ports 1:1-1:5 state enable
Success.
DGS-3627:admin#
enable loopdetect
Purpose
This command is used to enable the LBD function globally on the Switch.
Syntax
enable loopdetect
Description
This command is used to enable the LBD function globally on the Switch. The default state is
enabled.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To enable the LBD function globally:
Page 434 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
430
DGS-3627:admin# enable loopdetect
Command: enable loopdetect
Success.
DGS-3627:admin#
disable loopdetect
Purpose
This command is used to disable the LBD function globally on the Switch.
Syntax
disable loopdetect
Description
This command is used to disable the LBD function globally on the Switch.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To disable the LBD function globally:
DGS-3627:admin# disable loopdetect
Command: disable loopdetect
Success.
DGS-3627:admin#
show loopdetect
Purpose
This command is used to display the LBD global configuration.
Syntax
show loopdetect
Description
This command is used to display the LBD global configuration.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To show the LBD global settings:
DGS-3627:admin# show loopdetect
Command: show loopdetect
LBD Global Settings
----------------------------------
Status
: Enabled
Mode
: VLAN-based
Interval
: 20 sec
Recover Time
: 60 sec
Trap State
: None
Log State
: Enabled
DGS-3627:admin#
Page 435 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
431
show loopdetect ports
Purpose
This command is used to display the LBD per-port configuration.
Syntax
show loopdetect ports {<portlist>}
Description
This command is used to display the LBD per-port configuration.
Parameters
ports
- Specify the range of member ports that will display the LBD settings.
<
portlist
> - Enter the list of port to be configured here.
If no port is specified, the configuration for all ports will be displayed.
Restrictions
None.
Example usage:
To show the LBD settings on ports 1-9:
DGS-3627:admin# show loopdetect
ports 1-9
Command: show loopdetect
ports 1-9
Port
Loopdetect State
Loop Status
------ ------------------ ----------
1
Enabled
Normal
2
Enabled
Normal
3
Enabled
Normal
4
Enabled
Normal
5
Enabled
Loop!
6
Enabled
Normal
7
Enabled
Loop!
8
Enabled
Normal
9
Enabled
Normal
DGS-3627:admin#
config loopdetect trap
Purpose
This command is used to configure the trap modes for LBD.
Syntax
config loopdetect trap [none | loop_detected | loop_cleared | both]
Description
This command is used to configure the trap modes for LBD.
Parameters
none
- There is no trap in the LBD function.
loop_detected
- Trap will only be sent when the loop condition is detected.
loop_cleared
- Trap will only be sent when the loop condition is cleared.
both
- Trap will either be sent when the loop condition is detected or cleared.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To specify that traps will be sent when the loop condition is detected or cleared:
DGS-3627:admin# config loopdetect trap both
Command: config loopdetect trap both
Success.
DGS-3627:admin#

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top