Page 461 / 757 Scroll up to view Page 456 - 460
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
457
DGS-3627:admin# disable mirror
Command: disable mirror
Success.
DGS-3627:admin#
show mirror
Purpose
Used to show the current ports mirroring configuration on the switch.
Syntax
show mirror {group_id <value 1-4>}
Description
The show mirror command displays the current mirror function state and mirror session
configuration on the switch. If don’t specify the “group_id” parameter, display the all mirror
settings.
Parameters
group_id
- The mirror group identify.
value
- The mirror group identify value.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To display mirroring configuration:
DGS-3627:admin# show mirror
Command: show mirror
Mirror Global State: Enabled
Group
State
Target Port
Source Ports
-----------------------------------------------------
1
Enabled
2:1
RX: 1:1
TX: 1:1
3
Enabled
3:5
RX: 1:24
TX: 1:24
DGS-3627:admin#
create mirror group_id
Purpose
Used to create a mirror group on the switch.
Syntax
create mirror group_id <value 1-4>
Description
This command used to create a mirror group. If the mirror group has existed, do nothing and
return success.
Parameters
group_id
- The mirror groups identify.
value
- The mirror groups identify value.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Create mirror group 3:
Page 462 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
458
DGS-3627:admin# create mirror group_id 3
Command: create mirror group_id 3
Success.
DGS-3627:admin#
delete mirror group_id
Purpose
Used to delete a mirror group on the switch.
Syntax
delete mirror group_id <value 1-4>
Description
This command used to delete a mirror group.
Parameters
group_id
- The mirror groups identify.
value
- The mirror groups identify value.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Create mirror group 2:
DGS-3627:admin# delete mirror group_id 3
Command: delete mirror group_id 3
Success.
DGS-3627:admin#
config mirror group_id
Purpose
Used to configure mirror group on the switch.
Syntax
config mirror group_id <value 1-4> {target_port <port> | [add | delete] source ports
<portlist> [rx | tx | both] | state [enable | disable]}(1)
Description
This command used to configure mirror group’s parameters. It can configure mirror group’s
target port, state and source ports. The mirror group target port can’t be a member of all
mirror groups’ source ports. Each mirror group’s target port can be the same port. But each
mirror group’s source ports can’t overlap.
Parameters
group_id
- The mirror groups identify.
value
- The mirror groups identify value.
target_port
- The port that will receive the packets duplicated at the mirror port.
state
- The mirror group state to enable or disable the mirror group function
add
- The mirror source ports to be add.
delete
- The mirror source ports to be delete
portlist
- The port list of mirror group source ports
rx
- Only the received packets on the mirror group source ports will be mirrored to the mirror
group target port.
tx
- Only the sent packets on the mirror group source ports will be mirrored to the mirror
group target port.
both
- Both the received and sent packets on the mirror group source ports will be mirrored to
the mirror group target port.
Restrictions
Only Administrator and Operator-level users can issue this command.
Page 463 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
459
Example usage:
Configure mirror group 2 with state enable and add source ports 1:4-1:9:
DGS-3627:admin# config mirror group_id 2 state enable add source ports 1:4-1:9 both
Command: config mirror group_id 2 state enable add source ports 1:4-1:9 both
Success.
DGS-3627:admin#
Page 464 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
460
61
MSTP DEBUG ENHANCEMENT COMMANDS
The MSTP Debug Enhancement commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Command
Parameters
debug buffer
utilization | dump | clear | upload_toTFTP <ipaddr> <path_filename 64>]
debug output
module mstp [buffer | console]
debug stp config ports
[ < portlist > | all ] [ event | bpdu | state_machine | all ] state [ disable | brief |
detail ]
debug stp show information
debug stp show flag
{ports <portlist>}
debug stp show counter
{ports [<portlist> | all]}
debug stp clear counter
[ports < portlist > | all ]
debug stp state
[enable | disable]
Each command is listed, in detail, in the following sections.
debug buffer
Purpose
Use the debug buffer command to dump, clear, or upload the debug buffer to the TFTP
server.
Syntax
debug buffer [utilization | dump | clear | upload_toTFTP <ipaddr> <path_filename 64>]
Description
Dump, clear or upload the debug buffer to a TFTP server.
Parameters
dump
- Displays the debug message in the debug message buffer.
clear
- Clears the debug message buffer.
upload_toTFTP <ipaddr>
- Uploads the debug message buffer to a TFTP server with a
specified IP address
<path_filename 64>
- Upload the debug message buffer to a TFTP server and name the
uploaded file using the string identified in the <path_filename 64> option.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To clear the debug information in the buffer:
DGS-3627:admin# debug buffer clear
Command: debug buffer clear
Success.
DGS-3627:admin#
Page 465 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
461
debug output
Purpose
Use the debug output command to specify if the MSTP debug message output should be to
the buffer or console.
Syntax
debug output module mstp [buffer | console]
Description
Sets if the MSTP debug message output should be set to the buffer or console.
Parameters
buffer
- Specifies the debug messages of MSTP will output to the buffer.
console
- Specifies the debug messages of MSTP will output to the console.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To set the MSTP debug information to output to the console:
DGS-3627:admin# debug output module mstp console
Command: debug output module mstp console
Success.
DGS-3627:admin#
debug stp config ports
Purpose
Used to configure per-port STP debug level.
Syntax
debug stp config ports [ < portlist > | all ] [ event | bpdu | state_machine | all ] state [
disable | brief | detail ]
Description
This command used to configure per-port STP debug level on the specified ports.
Parameters
debug flags
- See below:
event
- Debug the external operation and event processing.
bpdu
- Debug the BPDU’s that have been received and transmitted.
state_machine
- Debug the state change of the STP state machine.
all
- Debug all of the above.
ports
- See below:
portlist
- Specifies the STP port range to debug.
all
- Specifies to debug all ports on the switch.
state
- See below:
disable
- Disables the debug mechanism.
brief
- Sets the debug level to brief.
detail
- Sets the debug level to detail.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure all STP debug flags to brief level on all ports:
DGS-3627:admin# debug stp config ports all all state brief
Command: debug stp config ports all all state brief
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