03-Monitor Link Commands
Chapters Download (120.81 KB)
Syntax
display monitor-link group { group-id | all }
View
Any view
Default Level
1: Monitor level
Parameters
group-id: Monitor link group ID, in the range of 1 to 16.
all: Displays information about all monitor link groups.
Description
Use the display monitor-link group command to display monitor link group information.
Examples
# Display information about monitor link group 1.
<Sysname> display monitor-link group 1
Monitor link group 1 information:
Group status: DOWN
Last-up-time: 16:37:20 2009/4/21
Last-down-time: 16:38:26 2009/4/21
Member Role Status
------------------------------------------
GigabitEthernet1/0/1 UPLINK DOWN
GigabitEthernet1/0/2 DOWNLINK DOWN
Table 1-1 display monitor-link group command output description
Field |
Description |
Monitor link group 1 information |
Information about monitor link group 1 |
Group status |
Monitor link group state, which can be up or down |
Last-up-time |
Last time when the monitor link group was up |
Last-down-time |
Last time when the monitor link group was down |
Member |
Member ports of the monitor link group |
Role |
Port role, which can be uplink port or downlink port |
Status |
Member link state, which can be up or down |
Syntax
monitor-link group group-id
undo monitor-link group group-id
View
System view
Default Level
2: System level
Parameters
group-id: Monitor link group ID, in the range of 1 to 16.
Description
Use the monitor-link group command to create a monitor link group and enter monitor link group view. If the specified monitor link group already exists, this command directly leads you to monitor link group view.
Use the undo monitor-link group command to remove a monitor link group.
Related commands: port monitor-link group, port.
Examples
# Create monitor link group 1 and enter the view of monitor link group 1.
<Sysname> system-view
[Sysname] monitor-link group 1
[Sysname-mtlk-group1]
port interface-type interface-number { uplink | downlink }
undo port interface-type interface-number
View
Monitor link group view
Default Level
2: System level
Parameters
interface-type interface-number: Specifies a port by type and number.
uplink: Specifies an uplink port.
downlink: Specifies a downlink port.
Description
Use the port command to assign a port to the monitor link group.
Use the undo port command to remove a port from the monitor link group.
l You can assign Ethernet ports and Layer 2 aggregate interfaces to a monitor link group as member ports.
l A port can be assigned to only one monitor link group.
l Alternatively, you can assign a port to a monitor link group with the port monitor-link group command in Ethernet interface view or Layer 2 aggregate interface view.
Related commands: port monitor-link group.
Examples
# Create monitor link group 1, and configure GigabitEthernet 1/0/1 as an uplink port and GigabitEthernet 1/0/2 as a downlink port for monitor link group 1.
<Sysname> system-view
[Sysname] monitor-link group 1
[Sysname-mtlk-group1] port gigabitethernet 1/0/1 uplink
[Sysname-mtlk-group1] port gigabitethernet 1/0/2 downlink
Syntax
port monitor-link group group-id { uplink | downlink }
undo port monitor-link group group-id
View
Ethernet interface view, Layer 2 aggregate interface view
Default Level
2: System level
Parameters
group-id: Monitor link group ID, in the range of 1 to 16.
uplink: Specifies an uplink port.
downlink: Specifies a downlink port.
Description
Use the port monitor-link group command to assign the current port to a monitor link group as a member port.
Use the undo port monitor-link group command to remove the current port from a monitor link group.
l You can assign Ethernet ports and Layer 2 aggregate interfaces to a monitor link group as member ports.
l A port can be assigned to only one monitor link group.
l Alternatively, you can assign a port to a monitor link group with the port command in monitor link group view.
Related commands: port.
Examples
# Create monitor link group 1, and configure GigabitEthernet 1/0/1 as an uplink port and GigabitEthernet 1/0/2 as a downlink port for monitor link group 1.
<Sysname> system-view
[Sysname] monitor-link group 1
[Sysname-mtlk-group1] quit
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port monitor-link group 1 uplink
[Sysname-GigabitEthernet1/0/1] quit
[Sysname] interface gigabitethernet 1/0/2
[Sysname-GigabitEthernet1/0/2] port monitor-link group 1 downlink