01-Access Volume

09-Monitor Link Commands

Chapters Download  (120.5 KB)

09-Monitor Link Commands


Monitor Link Configuration Commands

Monitor Link Configuration Commands

display monitor-link group

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 1 to 25.

all: Specifies all monitor link groups.

Description

Use the display monitor-link group command to display information about the specified or all smart 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 2006/4/21

  Last-down-time: 16:38:26 2006/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

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 or downlink

Status

Member link state, which can be 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, in the range 1 to 25.

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, you enter monitor link group view directly.

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.

<Sysname> system-view

[Sysname] monitor-link group 1

[Sysname-mtlk-group1]

port

Syntax

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: Port type and port 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          Both Ethernet ports and Layer-2 aggregate interfaces can be assigned to a monitor link group.

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

# Configure member ports 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

port monitor-link group

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 1 to 25.

uplink: Specifies an uplink port.

downlink: Specifies a downlink port.

Description

Use the port monitor-link group command to assign the port to the specified monitor link group.

Use the undo port monitor-link group command to remove the port from the specified monitor link group.

 

l          Both Ethernet ports and Layer-2 aggregate interfaces can be assigned to a monitor link group.

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

# Configure GigabitEthernet 1/0/1 as an uplink port of 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

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.