- Table of Contents
- Related Documents
- 
                        
| Title | Size | Download | 
|---|---|---|
| 08-Monitor Link Commands | 74.15 KB | 
Monitor Link configuration commands
display monitor-link group
Syntax
display monitor-link group { group-id | all } [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
group-id: Monitor link group ID, which ranges from 1 to 24.
all: Displays information about all monitor link groups.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display monitor-link group to display information about the specified or all monitor link groups.
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
------------------------------------------
GigabitEthernet3/0/2 UPLINK DOWN
GigabitEthernet3/0/3 DOWNLINK DOWN
GigabitEthernet3/0/6 DOWNLINK DOWN
Table 1 Command output
| Description | |
| Monitor link group 1 information | Information about monitor link group 1 | 
| Group status | Monitor link group state: 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: uplink port or downlink port | 
| Status | Member link state: up or down | 
monitor-link group
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, which ranges from 1 to 24.
Description
Use monitor-link group to create a monitor link group and enter monitor link group view. If the specified monitor link group already exists, you enter monitor link group view directly.
Use undo monitor-link group to remove a monitor link group.
You cannot remove a monitor link group that contains member ports.
Related commands: port monitor-link group and 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
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 its type and number.
uplink: Specifies an uplink port.
downlink: Specifies a downlink port. This keyword is not supported by RPR logical interfaces.
Description
Use port to assign a port to the monitor link group.
Use undo port to remove a port from the monitor link group.
| 
 | NOTE: · You can assign Layer 2 Ethernet ports, Layer 2 aggregate interfaces, or RPR logical interfaces to a monitor link group as member ports. RPR logical interfaces can only be configured as uplink ports. · A port can be assigned to only one monitor link group. · Alternatively, you can assign a port to a monitor link group by using the port monitor-link group command in Layer 2 Ethernet interface view, Layer 2 aggregate interface view, or RPR logical interface view. | 
Related commands: port monitor-link group.
Examples
# Create monitor link group 1, and configure GigabitEthernet 4/0/1 as an uplink port and GigabitEthernet 4/0/2 as a downlink port for monitor link group 1.
<Sysname> system-view
[Sysname] monitor-link group 1
[Sysname-mtlk-group1] port gigabitethernet 4/0/1 uplink
[Sysname-mtlk-group1] port gigabitethernet 4/0/2 downlink
port monitor-link group
Syntax
port monitor-link group group-id { uplink | downlink }
undo port monitor-link group group-id
View
Layer 2 Ethernet interface view, Layer 2 aggregate interface view, RPR logical interface view
Default level
2: System level
Parameters
group-id: Monitor link group ID, which ranges from 1 to 24.
uplink: Specifies an uplink port.
downlink: Specifies a downlink port. This keyword is not supported by RPR logical interfaces.
Description
Use port monitor-link group to assign the current port to a monitor link group as a member port.
Use undo port monitor-link group to remove the current port from a monitor link group.
| 
 | NOTE: · A port can be assigned to only one monitor link group. · RPR logical interfaces can only be configured as uplink ports. · 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 4/0/1 as an uplink port and GigabitEthernet 4/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 4/0/1
[Sysname-GigabitEthernet4/0/1] port monitor-link group 1 uplink
[Sysname-mtlk-group1] quit
[Sysname] interface gigabitethernet 4/0/2
[Sysname-GigabitEthernet4/0/2] port monitor-link group 1 downlink
 Login
Login
