No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

S7700 and S9700 V200R011C10

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
MPLS OAM Configuration Command

MPLS OAM Configuration Command

Command Support

  • The SA series cards do not support the MPLS feature.

  • The FC/SC series cards do not support the MPLS OAM.

  • The EH1D2X48SEC0 card does not support MPLS OAM.

  • The XGE interface connected to ACU2 does not support MPLS TE or MPLS OAM and can provide other MPLS features.

display mpls oam egress

Function

The display mpls oam egress command displays the status and the configuration of an OAM-enabled LSP on the egress.

Format

display mpls oam egress { all | lsp-name lsp-name | lsr-id ingress-lsr-id tunnel-id tunnel-id } [ verbose ]

Parameters

Parameter Description Value
all Displays the status and configurations of all OAM-enabled LSPs. -
lsp-name lsp-name Specifies the LSP name. The value is an existing LSP name.
lsr-id ingress-lsr-id Specifies the ID of the ingress node. -
tunnel-id tunnel-id Specifies the tunnel ID. The value is an integer and the value ranges from 1 to 65535.
verbose Displays detailed information. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Information about a main control board does not contain packet statistics about OAM instances.

Example

# Display OAM information about the LSP with the egress LSR ID of 1.1.1.1 and the tunnel ID of 100.

<HUAWEI> display mpls oam egress lsr-id 1.1.1.1 tunnel-id 100
--------------------------------------------------------------------------
No. Lsp-name          Ttsi                  Type    Frequency  Status
--------------------------------------------------------------------------
1   --                1.1.1.1 : 100         CV        1 s      Start/Non-defect
Table 9-108  Description of the display mpls oam egress command output

Item

Description

No.

Serial number.

Lsp-name

Indicates the name of a static LSP. If the LSP is a dynamic one, "--" is displayed.

Ttsi

Indicates the TTSI in the form of <LSR ID>:<Tunnel ID>.

Type

Indicates the type of an OAM packet:
  • FFD
  • CV
  • --: No detection type is specified.

Frequency

Indicates the frequency of OAM detection.

Status

Indicates the check status and the defect status. The status can be:
  • Start/Non-defect: No defect is detected.

  • Start/In-defect: A defect is detected.

  • Stop/Non-defect: OAM detection is stopped and no defect is detected.

  • Stop/In-defect: OAM detection is stopped and a defect is detected.

  • Ready: Although the auto protocol is configured, a device does not receive detection packets sent by its peer device before the timeout period elapses.

# Display detailed OAM information about the LSP with the LSR ID of 1.1.1.1 and the tunnel ID of 100.

<HUAWEI> display mpls oam egress lsr-id 1.1.1.1 tunnel-id 100 verbose
--------------------------------------------------------------------------
Verbose information about the NO.1 OAM at the egress
--------------------------------------------------------------------------

LSP basic information:                    OAM basic information:
---------------------------------------   --------------------------------
Lsp name             : --                 OAM-Index           : 256
Lsp signal status   : Up                  OAM select board    : 1
Lsp establish type  : Rsvp lsp            Enable-state        : --
Lsp incoming Label  : 3                   Auto-protocol       : Enable
Lsp ingress lsr-id  : 1.1.1.1             Auto-overtime (s)   : 300
Lsp tnl-id          : 100                 Ttsi/lsr-id         : 1.1.1.1
Lsp-id              : 2                   Ttsi/tunnel-id      : 64
Lsp Incoming-int    :  Vlanif10           
OAM detect information:                   OAM backward information:
---------------------------------------   -------------------------------
Type                : CV                  Tunnel name        : --
Frequency           : 1 s                 Share attribute    : --
Detect-state        : Start               Lsp signal status  : --
Defect-state        : Non-defect          Bdi-frequency      : --
Available-state     : Available
Unavailable time (s): 0
Hardware Error Info : No error
Table 9-109  Description of the display mpls oam egress verbose command output

Item

Description

LSP basic information

Indicates basic information about an LSP.

Lsp name

Indicates the name of an LSP.

Lsp signal status

Indicates the status of the LSP signaling protocol:

  • Up
  • Down
  • --: LSP detection does not start.

Lsp establish type

Indicates the type of the LSP:
  • Static lsp
  • Static-cr-lsp
  • Rsvp lsp

Lsp incoming Label

Indicates the incoming label.

Lsp ingress lsr-id

Indicates the LSR ID of the ingress.

Lsp tnl-id

Indicates the bound tunnel ID.

Lsp-id

Indicates the LSP ID.

Lsp Incoming-int

Indicates the incoming interface of an LSP.

OAM basic information

Indicates basic OAM information.

OAM-Index

Indicates the OAM index.

OAM select board

Board number of a status board.

NOTE:

If hyphens (--) are displayed in the OAM select board field, MPLS OAM fails to select a board.

Enable-state

Indicates whether OAM is enabled.

Auto-protocol

Indicates whether the OAM auto protocol is enabled.

Auto-overtime: (s)

Indicates the timeout period of the auto protocol.

Ttsi/lsr-id

Indicates the LSR ID of TTSI.

Ttsi/tunnel-id

Indicates the tunnel ID of TTSI.

OAM detect information

Indicates the OAM detection information.

Type

Indicates the type of an OAM packet.

  • FFD
  • CV
  • --: No detection type is specified.

Frequency

Indicates the frequency of OAM detection.

Detect-state

Indicates the status of the OAM detection.

Defect-state

Indicates the defect status:
  • Non-defect: indicates no defect.
  • dLocv: indicates that the tunnel is faulty.

Available-state

Indicates whether the OAM detection is available.

Unavailable time (s)

Indications the period during which the OAM detection is unavailable, in seconds.

OAM backward information

Indicates information about the backward tunnel.

Tunnel name

Indicates the name of the backward tunnel.

Share attribute

Indicates the occupying mode of the backward tunnel: Share or Private

Lsp signal status

Indicates the signaling status of a backward LSP.

Bdi-frequency

Indicates the interval for sending BDI packets:
  • Per-second: indicates that BDI packet is send every second.
  • Detect frequency: indicates that BDI packet is sent at the same interval as the OAM detection packet.

Hardware Error Info

Cause of failure.

Related Topics

display mpls oam egress receive-packet

Function

The display mpls oam egress receive-packet command displays statistics about the MPLS OAM packets received over the OAM-enabled LSP on the egress.

Format

display mpls oam egress receive-packet { all | ap-fdi | cv | error | fdi | ffd }

Parameters

Parameter Description Value
all Displays information about all received OAM packets on the egress. -
ap-fdi

Indicates automatic protocol (AP) forward defect indication (FDI) packets. FDI packets are used to start the self-negotiated configuration mode or to stop the OAM detection.

-
cv

Indicates connectivity verification (CV) packets.

-
error

Indicates OAM error packets.

-
fdi

Indicates FDI packets.

-
ffd

Indicates fast failure detection (FFD) packets.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view statistics about the MPLS OAM packets received over the OAM-enabled LSP on the egress, run the display mpls oam egress receive-packet command.

Example

# Display statistics about the received MPLS OAM packets on the egress.

<HUAWEI> display mpls oam egress receive-packet all
--------------------------------------------------------------------------------
CV Packet      FFD Packet     FDI Packet     AP-FDI Packet  Error Packet
--------------------------------------------------------------------------------
 60               0               0               0               0        
--------------------------------------------------------------------------------
<HUAWEI> display mpls oam egress receive-packet ap-fdi
--------------------------------------------------------------------------------
AP-FDI Packet
--------------------------------------------------------------------------------
 0  
--------------------------------------------------------------------------------
Table 9-110  Description of the display mpls oam egress receive-packet command output

Item

Description

CV Packet

Number of received CV packets

FFD Packet

Number of received FFD packets

FDI Packet

Number of received FDI packets

AP-FDI Packet

Number of received AP FDI packets

Error Packet

Number of received MPLS error packets

display mpls oam egress send-packet

Function

The display mpls oam egress send-packet command displays statistics about the MPLS OAM packets sent over the OAM-enabled LSP on the egress.

Format

display mpls oam egress send-packet { all | bdi | error }

Parameters

Parameter Description Value
all Displays information about all sent OAM packets on the egress. -
bdi

Indicates backward defect indication (BDI) packets.

-
error

Indicates MPLS error packets.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view statistics about the MPLS OAM packets sent over the OAM-enabled LSP on the egress, run the display mpls oam egress send-packet command.

Example

# Display statistics about the sent MPLS OAM packets on the egress.
<HUAWEI> display mpls oam egress send-packet all
--------------------------------------------------------------------------------
BDI Packet          Error Packet
--------------------------------------------------------------------------------
 444                  0
--------------------------------------------------------------------------------
<HUAWEI> display mpls oam egress send-packet error
--------------------------------------------------------------------------------
Error Packet
--------------------------------------------------------------------------------
 0
--------------------------------------------------------------------------------
Table 9-111  Description of the display mpls oam ingress send-packet command output

Item

Description

BDI Packet

Number of sent BDI packets

Error Packet

Number of sent MPLS error packets

display mpls oam ingress

Function

The display mpls oam ingress command displays the MPLS OAM parameters and the status of an LSP on the ingress.

Format

display mpls oam ingress { all | tunnel interface-number } [ verbose ]

Parameters

Parameter Description Value
all Displays information about the packets and defect status of all the LSPs enabled with OAM. -
tunnel interface-number Specifies the ID of a tunnel interface. -
verbose Displays the detailed information. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Compared with the OAM information on an interface board, the OAM information on a main control board contains statistics of LSPs on the local node, whereas does not contain packet statistics of OAM instances.

Example

# Display the OAM statistics on Tunnel1 of the main control board of the egress.

<HUAWEI> display mpls oam ingress tunnel 1
-------------------------------------------------------------------------
No. Tunnel-name     Ttsi              Type    Frequency  Status
-------------------------------------------------------------------------
1   Tunnel1     1.1.1.1 : 2       CV        1 s      Start/Non-defect
Table 9-112  Description of the display mpls oam ingress command output

Item

Description

Tunnel-name

Name of the tunnel to be detected

Ttsi

TTSI in the form of <LSR ID>:<Tunnel ID>

Type

Type of an OAM packet:
  • FFD
  • CV
  • --: No detection type is specified.

Frequency

Frequency of OAM detection

Status

Detection status and defect status:
  • Start/Non-defect: OAM detection is started and no defect is detected.

  • Start/In-defect: OAM detection is started and a defect is detected.

  • Stop/Non-defect: OAM detection is stopped and no defect is detected.

  • Stop/In-defect: OAM detection is stopped and a defect is detected.

Related Topics

display mpls oam ingress receive-packet

Function

The display mpls oam ingress receive-packet command displays statistics about the MPLS OAM packets received over the OAM-enabled LSP on the ingress.

Format

display mpls oam ingress receive-packet { all | bdi | error }

Parameters

Parameter Description Value
all Displays information about all received OAM packets on the ingress. -
bdi

Indicates backward defect indication (BDI) packets.

-
error

Indicates MPLS error packets.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view statistics about the MPLS OAM packets received over the OAM-enabled LSP on the ingress, run the display mpls oam ingress receive-packet command.

Example

# Display statistics about the received MPLS OAM packets on the ingress.
<HUAWEI> display mpls oam ingress receive-packet all
--------------------------------------------------------------------------------
BDI Packet          Error Packet
--------------------------------------------------------------------------------
 10                    0  
--------------------------------------------------------------------------------
<HUAWEI> display mpls oam ingress receive-packet bdi
--------------------------------------------------------------------------------
BDI Packet
--------------------------------------------------------------------------------
 6        
--------------------------------------------------------------------------------
<HUAWEI> display mpls oam ingress receive-packet error
--------------------------------------------------------------------------------
Error Packet
--------------------------------------------------------------------------------
 8          
--------------------------------------------------------------------------------
Table 9-113  Description of the display mpls oam ingress receive-packet command output

Item

Description

BDI Packet

Number of received BDI packets

Error Packet

Number of received OAM error packets

display mpls oam ingress send-packet

Function

The display mpls oam ingress send-packet command displays statistics about the MPLS OAM packets sent over the OAM-enabled LSP on the ingress.

Format

display mpls oam ingress send-packet { all | ap-fdi | cv | error | ffd }

Parameters

Parameter Description Value
all Displays information about all sent OAM packets on the ingress. -
ap-fdi

Indicates automatic protocol (AP) forward defect indication (FDI) packets. FDI packets are used to start the self-negotiated configuration mode or to stop the OAM detection.

-
cv

Indicates connectivity verification (CV) packets.

-
error

Indicates OAM error packets.

-
ffd

Indicates fast failure detection (FFD) packets.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view statistics about the MPLS OAM packets sent over the OAM-enabled LSP on the ingress, run the display mpls oam ingress send-packet command.

Example

# Display statistics about the sent MPLS OAM packets on the ingress.
<HUAWEI> display mpls oam ingress send-packet all
--------------------------------------------------------------------------------
CV Packet           FFD Packet          AP-FDI Packet       Error Packet
--------------------------------------------------------------------------------
 10                    0                    0                    0      
--------------------------------------------------------------------------------
<HUAWEI> display mpls oam ingress send-packet cv
--------------------------------------------------------------------------------
CV Packet
--------------------------------------------------------------------------------
 10 
--------------------------------------------------------------------------------
Table 9-114  Description of the display mpls oam ingress send-packet command output

Item

Description

CV Packet

Number of sent CV packets

FFD Packet

Number of sent FFD packets

AP-FDI Packet

Number of sent FDI packets

Error Packet

Number of sent MPLS error packets

display mpls oam oam-index

Function

The display mpls oam oam-index command displays OAM information of a specified OAM index.

Format

display mpls oam oam-index index-value [ verbose ]

Parameters

Parameter Description Value
index-value Displays the OAM information according to a specified OAM index. An integer ranging from 1 to 4294967294
verbose Displays all information. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display mpls oam ingress { all | tunnel interface-number } [ verbose ] or display mpls oam egress { all | tunnel interface-number } [ verbose ] command to obtain the OAM index of a tunnel.

Example

# Display brief information about OAM with the OAM index of 512.

<HUAWEI> display mpls oam oam-index 512
--------------------------------------------------------------------------------
No. Tunnel-name       Ttsi                  Type    Frequency  Status
--------------------------------------------------------------------------------
1   Tunnel2       1.1.1.1 : 200         CV        1 s      Start/Non-defect 
Table 9-115  Description of the display mpls oam oam-index command output

Item

Description

No.

Number of the entry

Tunnel-name

Name of a tunnel interface

Ttsi

TTSI in the form of <LSR ID>:<Tunnel ID>

Type

Type of an OAM packet:
  • FFD
  • CV
  • --: No detection type is specified.

Frequency

Frequency of OAM detection

Status

Check status and defect status:
  • Start/No-defect: indicates that OAM detection is enabled and no defect is detected.
  • Start/In-defect: indicates that OAM detection is enabled and a defect is detected.

display mpls te protection binding protect-tunnel

Function

The display mpls te protection binding protect-tunnel command displays the tunnel protection relationship.

Format

display mpls te protection binding protect-tunnel { tunnel-id | interface tunnel interface-number }

Parameters

Parameter Description Value
tunnel-id Displays information about the protection relationship related to a protection tunnel (that is, a backup tunnel) with a specified ID. The value is an integer that ranges from 1 to 10000.
tunnel interface-number Displays information about the protection relationship related to the specified tunnel interface. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view the tunnel protection relationship, run the display mpls te protection binding protect-tunnel command.

Example

# Display the protection relationship related to the protection tunnel with the ID of 10.

<HUAWEI> display mpls te protection binding protect-tunnel 10
------------------------------------------------------------------------        
Binding information of( tunnel id:  10 )                                        
------------------------------------------------------------------------        
    Protect-tunnel id                    :10                                    
    Protect-tunnel name                  :Tunnel1                           
    Maximum number of bound work-tunnels :16                                    
    Currently bound work-tunnels         :Total( 1 )                            
                                         :Tunnel2                           
Table 9-116  Description of the display mpls te protection binding protect-tunnel command output

Item

Description

Protect-tunnel id

ID of a protection tunnel (the backup tunnel).

Protect-tunnel name

Name of a protection tunnel (the interface name).

Maximum number of bound work-tunnels

Maximum number of tunnels that a protection tunnel can protect.

Currently bound work-tunnels

Information about the working tunnel to which a protection tunnel is currently bound, including the quantity and list.

display mpls te protection tunnel

Function

The display mpls te protection tunnel command displays information about a specified tunnel and its tunnel protection group.

Format

display mpls te protection tunnel { all | tunnel-id | interface tunnel interface-number } [ verbose ]

Parameters

Parameter Description Value
all Displays information about all tunnel protection groups. -
tunnel-id Specifies the ID of a working tunnel or its protection tunnel. The value is an integer that ranges from 1 to 10000.
interface Displays information about tunnel protection groups on an interface. -
tunnel interface-number Specifies the name of a working tunnel or its protection tunnel. -
verbose Displays detailed information. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display mpls te protection tunnel command can be used to display information about a specified tunnel protection group. The following parameters can be specified to display various types of information:
  • If the ID or tunnel interface of the working tunnel is specified, information about the working tunnel and its protection tunnel is displayed.
  • If the ID or tunnel interface of a protection tunnel is specified, information about the protection tunnel and all its protected working tunnels is displayed.

Example

# Display information about a working tunnel with the tunnel ID of 100 and its protection tunnel.
<HUAWEI> display mpls te protection tunnel 100
------------------------------------------------------------------------
No. Work-tunnel status  /id  Protect-tunnel status /id    Switch-Result
------------------------------------------------------------------------
1           in defect   /100        non-defect     /300  protect-tunnel
Table 9-117  Description of the display mpls te protection tunnel command output

Item

Description

No.

Sequence number of a tunnel protection group.

Work-tunnel status /id

Status and ID of a working tunnel. The tunnel status can be:
  • non-defect: The tunnel functions properly.
  • in defect: The tunnel fails.

Protect-tunnel status /id

Status and ID of a protection tunnel. The tunnel status can be:
  • non-defect: The tunnel functions properly.
  • in defect: The tunnel fails.

Switch-Result

Switching result:
  • work-tunnel: Traffic switches to the working tunnel.
  • protect-tunnel: Traffic switches to the protection tunnel.
# Display detailed information about working tunnels and their protection tunnels.
<HUAWEI> display mpls te protection tunnel all verbose
---------------------------------------------------------------
Verbose information about the No.1 protection-group
----------------------------------------------------------------
Work-tunnel id                           : 1
Protect-tunnel id                        : 2
Work-tunnel name                         : Tunnel1
Protect-tunnel name                      : Tunnel2
Work-tunnel reverse-lsp                  : -
Protect-tunnel reverse-lsp               : -
Bridge type                              : 1:1       
Switch type                              : unidirectional
Switch result                            : work-tunnel
Tunnel using Best-Effort                 : none
Tunnel using Ordinary                    : none
Work-tunnel frr in use                   : none
Work-tunnel defect state                 : non-defect
Protect-tunnel defect state              : non-defect
Work-tunnel forward-lsp defect state     : non-defect
Protect-tunnel forward-lsp defect state  : non-defect
Work-tunnel reverse-lsp defect state     : non-defect
Protect-tunnel reverse-lsp defect state  : non-defect
HoldOff config time                      : 0ms
HoldOff remain time                      : -
WTR config time                          : 30s
WTR remain time                          : -
Mode                                     : revertive
Using same path                          : -
Local state                              : no request
Far end request                          : no request    
Table 9-118  Description of the display mpls te protection tunnel all verbose command output

Item

Description

Work-tunnel id ID of the working tunnel.
Protect-tunnel id ID of the protection tunnel.
Work-tunnel name Tunnel interface name of the working tunnel.
Protect-tunnel name Tunnel interface name of the protection tunnel.
Work-tunnel reverse-lsp Name of the reverse CR-LSP in the working tunnel.
Protect-tunnel reverse-lsp Name of the reverse CR-LSP in the protection tunnel.
Bridge type Bridge mode.
Switch type Switch mode.
Switch result Switching result:
  • work-tunnel: Traffic switches to the working tunnel.
  • protect-tunnel: Traffic switches to the protection tunnel.
Tunnel using Best-Effort Whether or not a best-effort path is used as a protection tunnel.
Tunnel using Ordinary Whether or not an ordinary backup tunnel is used as a protection tunnel.
Work-tunnel frr in use Whether or not the working tunnel is in the FRR in-use state.
Work-tunnel defect state Working tunnel status:
  • non-defect: The working tunnel functions properly.
  • in defect: The working tunnel fails.
Protect-tunnel defect state Protection tunnel status:
  • non-defect: The protection tunnel functions properly.
  • in defect: The protection tunnel fails.
Work-tunnel forward-lsp defect state Status of the forward CR-LSP in the working tunnel:
  • non-defect: The forward CR-LSP functions properly.
  • in defect: The forward CR-LSP fails.
Protect-tunnel forward-lsp defect state Status of the forward CR-LSP in the protection tunnel:
  • non-defect: The forward CR-LSP functions properly.
  • in defect: The forward CR-LSP fails.
Work-tunnel reverse-lsp defect state Status of the reverse CR-LSP in the working tunnel:
  • non-defect: The reverse CR-LSP functions properly.
  • in defect: The reverse CR-LSP fails.
Protect-tunnel reverse-lsp defect state Status of the reverse CR-LSP in the protection tunnel:
  • non-defect: The reverse CR-LSP functions properly.
  • in defect: The reverse CR-LSP fails.

HoldOff config time

Switching delay time.

To set the switching delay time, run the mpls te protection tunnel command.

HoldOff remain time

Remain time of switching delay time.

WTR config time

Wait-to-restore time.

To set the wait-to-restore time, run the mpls te protection tunnel command.

WTR remain time

Remain time of wait-to-restore time.
Mode Switchback mode:
  • revertive: supports a switchback.
  • non-revertive: does not support a switchback.

To set the switchback mode, run the mpls te protection tunnel command.

Using same path Whether a path of the working tunnel and a path of the protection tunnel overlap:
  • yes: The two tunnels have an overlapped path.
  • no: The two tunnels do not have an overlapped path.
  • -: Undetected.
Local state Switching mode on the local end:
  • signal fail for protection
  • no request
Far end request Switching mode on the remote end.

display mpls te reverse-lsp

Function

The display mpls te reverse-lsp command displays information about a reverse LSP.

Format

display mpls te reverse-lsp [ protocol static | tunnel-interface tunnel interface-number | ingress-lsr-id ingress-lsr-id tunnel-id tunnel-id | lsp-name lsp-name ] [ verbose ]

Parameters

Parameter Description Value
protocol Specifies the type of the protocol based on which the reverse LSP is set up in the tunnel interface view. -
static Specifies the reverse static LSP configured in the tunnel interface view. -
tunnel-interface tunnel interface-number Specifies a forward tunnel interface. -
ingress-lsr-id ingress-lsr-id Specifies the LSR ID of the ingress on a reverse RSVP LSP. -
tunnel-id tunnel-id Specifies the tunnel ID of a reverse RSVP LSP. An integer ranging from 1 to 65535.
lsp-name lsp-name Specifies the name of a reverse LSP configured in the tunnel interface view. The value is an existing LSP name.
verbose Displays detailed information. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After a reverse LSP is configured using the mpls te reverse-lsp command, you can run the display mpls te reverse-lsp command to view information (name and status) about the reverse LSP.

Example

# View information about a reverse static.

<HUAWEI> display mpls te reverse-lsp  protocol static
------------------------------------------------------------------------------- 
                 LSP Information: STATIC LSP                                    
------------------------------------------------------------------------------- 
ReverseLSPName      InLabel State ObverseTunnel                                 
------------------------------------------------------------------------------- 
l1                  110     Up  Tunnel1                                   

# View detail information about a reverse LSP.

<HUAWEI> display mpls te reverse-lsp verbose
------------------------------------------------------------------------------- 
                 LSP Information: STATIC LSP                                    
------------------------------------------------------------------------------- 
  Obverse Tunnel           :  Tunnel1                                       
  Reverse LSP Name         :  l1                                                
  Reverse LSP State        :  Up                                                
  Incoming Label           :  110                                               
  Incoming Interface       :  Vlanif15                                          
Table 9-119  Description of the display mpls te reverse-lsp protocol static command output

Parameter

Description

LSP Information

Information about the reverse LSP:
  • Static LSP: a reverse static LSP

  • RSVP-LSP: a reverse RSVP LSP

Obverse Tunnel

Name of the forward tunnel interface to which the reverse LSP is bound

Reverse LSP Name

Name of the reverse static LSP

Reverse LSP State

Status of the reverse LSP:
  • Up

  • Down

Incoming Label

Incoming label of the reverse LSP

Incoming Interface

Incoming interface of the reverse LSP

Related Topics

display snmp-agent trap feature-name mpls-oam all

Function

The display snmp-agent trap feature-name mpls-oam all command displays all trap messages of the MPLS-OAM module.

Format

display snmp-agent trap feature-name mpls-oam all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The Simple Network Management Protocol (SNMP) is a standard network management protocol widely used on TCP/IP networks. It uses a central computer (a network management station) that runs network management software to manage network elements. The management agent on the network element automatically reports traps to the network management station. After that, the network administrator immediately takes measures to resolve the problem.

The display snmp-agent trap feature-name mpls-oam all command displays whether all trap functions of the MPLS OAM module are enabled.

Example

# Display all trap messages of the MPLS-OAM module.

<HUAWEI>display snmp-agent trap feature-name mpls-oam all
------------------------------------------------------------------------------
Feature name: MPLS-OAM
Trap number : 17
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
hwMplsOamIgrLSPInDefect         off                     on
hwMplsOamIgrLSPOutDefect        off                     on
hwMplsOamIgrLSPUnAva            off                     on
hwMplsOamIgrLSPAva              off                     on
hwMplsOamEgrLSPInDefect         off                     on
hwMplsOamEgrLSPOutDefect        off                     on
hwMplsOamEgrLSPUnAva            off                     on
hwMplsOamEgrLSPAva              off                     on
hwMplsOamEgrRlsnDown            off                     on
hwMplsOamL2vcInDefect           off                     on
hwMplsOamL2vcOutDefect          off                     on
hwMplsOamL2vcAva                off                     on
hwMplsOamL2vcUnAva              off                     on
hwMplsOamBidirectionalTunnelInDefect
                                off                     on
hwMplsOamBidirectionalTunnelOutDefect
                                off                     on
hwMplsOamBidirectionalTunnelAva
                                off                     on
hwMplsOamBidirectionalTunnelUnAva
                                off                     on
Table 9-120  Description of the display snmp-agent trap feature-name mpls-oam all command output

Item

Description

Feature name

Name of the module to which a trap message belongs.

Trap number

Number of trap messages.

Trap name

Name of a trap message of the MPLS-OAM module:

  • hwMplsOamIgrLSPInDefect: indicates the trap in the case that the LSP ingress enters the defect state.
  • hwMplsOamIgrLSPOutDefect: indicates the trap in the case that the LSP ingress leaves the defect state.
  • hwMplsOamIgrLSPUnAva: indicates the trap in the case that the LSP ingress enters the unavailable state.
  • hwMplsOamIgrLSPAva: indicates the trap in the case that the LSP ingress enters the available state.
  • hwMplsOamEgrLSPInDefect: indicates the trap in the case that the LSP egress enters the defect state.
  • hwMplsOamEgrLSPOutDefect: indicates the trap in the case that the LSP egress leaves the defect state.
  • hwMplsOamEgrLSPUnAva: indicates the trap in the case that the LSP egress enters the unavailable state.
  • hwMplsOamEgrLSPAva: indicates the trap in the case that the LSP egress enters the available state.
  • hwMplsOamEgrRlsnDown: indicate the trap in the case that the RLSN enter the down state.
  • hwMplsOamL2vcInDefect: L2VC at the OAM end enters the defect state.
  • hwMplsOamL2vcOutDefect: indicate the trap in the case that L2VC at the OAM end exits the defect state.
  • hwMplsOamL2vcAva: indicate the trap in the case that an alarm is triggered when L2VC at the OAM end enters an available state.
  • hwMplsOamL2vcUnAva: indicate the trap in the case that an alarm is triggered when L2VC at the OAM end enters an unavailable state.
  • hwMplsOamBidirectionalTunnelInDefect: indicate the trap in the case that the static bidirectional co-routed LSP monitored by MPLS OAM enters the defective state.
  • hwMplsOamBidirectionalTunnelOutDefect: indicate the trap in the case that the static bidirectional co-routed LSP monitored by MPLS OAM quits the defective state.
  • hwMplsOamBidirectionalTunnelAva: indicate the trap in the case that the static bidirectional co-routed LSP monitored by MPLS OAM enters the available state.
  • hwMplsOamBidirectionalTunnelUnAva: indicate the trap in the case that the static bidirectional co-routed LSP monitored by MPLS OAM enters the unavailable state.

Default switch status

Status of the default trap switch:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

Current switch status

Status of the current trap switch:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

mpls oam

Function

The mpls oam command globally enables the MPLS OAM function.

The undo mpls oam command disables the MPLS OAM function on the local node.

By default, the MPLS OAM function is globally disabled.

Format

mpls oam [ based-itu ]

undo mpls oam

Parameters

Parameter Description Value
based-itu If the parameter is set, the LSP ID field in an MPLS OAM packet is defined in compliance with the ITU-T Recommendation. By default, the parameter is not set and the LSP ID field in an MPLS OAM packet is defined in compliance with the IETF draft.

Views

MPLS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

MPLS OAM is a fault detection mechanism used at the MPLS network layer. MPLS OAM provides the following functions:
  • Effectively detects, identifies, and locates faults at the MPLS network layer.
  • Rapidly triggers protection switching if a link or node fails, which helps minimize fault duration and improve network reliability.

MPLS OAM can be configured to monitor the connectivity of LSPs and PWs and trigger tunnel switchovers. Before MPLS OAM functions are configured, MPLS OAM must be globally enabled using the mpls oam command.

Prerequisites

The MPLS view has been displayed using the mpls command.

Precautions

MPLS OAM cannot be enabled on a switch in the following situation: the MPU has the ES0D00FSUA00 card installed or the MPU is EH1D2SRUDC00/EH1D2SRUDC01. The number of port mirroring entries configured on an LPU reaches the limit.

After the undo mpls oam command is run, all MPLS OAM configurations are deleted.

If MPLS OAM is configured, BFD or TP OAM cannot be simultaneously configured for the same TE tunnel or CR-LSP.

Example

# Enable MPLS OAM globally.

<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] mpls oam

mpls oam egress

Function

The mpls oam egress command configures the MPLS OAM parameters on the egress of an LSP.

The undo mpls oam egress command deletes the specified MPLS OAM parameters on the egress of an LSP.

By default, the egress uses the auto protocol extension; the backward LSP is in share mode; the interval for sending backward BDI packets is the same as the interval for sending OAM detection packets.

Format

mpls oam egress { lsp-name lsp-name | lsr-id ingress-lsr-id tunnel-id tunnel-id } [ auto-protocol [ overtime over-time ] | type { cv | ffd frequency ffd-fre } ] [ backward-lsp tunnel interface-number [ private | share ] ] [ bdi-frequency { detect-freq | per-second } ]

undo mpls oam egress { all | lsp-name lsp-name | lsr-id ingress-lsr-id tunnel-id tunnel-id }

Parameters

Parameter Description Value
lsp-name lsp-name Specifies the name of a static LSP. The value is an existing static LSP name.
lsr-id ingress-lsr-id Specifies the LSR ID of the ingress of an LSP to be detected. -
tunnel-id tunnel-id Specifies the tunnel ID of the bound LSP to be detected. The value is an integer and the value ranges from 1 to 65535.
auto-protocol Enables the OAM auto protocol extension. -
overtime over-time Specifies the timeout period of waiting for the first packet. After the OAM function is configured, the system waits for receiving the first packet to perform the OAM detection. If the waiting time for the packet exceeds over-time, a fault is considered to occur. BDI packets are then triggered to alarm the ingress node. The value ranges from 0 to 255, with the step of 30 seconds. The default is 10, that is, 5 minutes.
type Indicates the packet type. -
cv Indicates that the type of OAM detection packets is CV.
NOTE:

The interval for sending CV packets is 1000 milliseconds.

-
ffd frequency ffd-fre Indicates that the type of OAM detection packets is CV and specifies the interval for sending FFD packets. When the MPU has the ES0D00FSUA00 card installed or the MPU is EH1D2SRUDC00/EH1D2SRUDC01, the value can be 10, 50, 100 and 500, in milliseconds. In other cases, the value can be 500, in milliseconds.
backward-lsp tunnel interface-number Specifies the number of the tunnel interface of a backward LSP. -
private Indicates that the backward LSP works in private mode. After a backward LSP is set as private, the backward LSP cannot be bound to other LSPs. -
share Indicates that a backward LSP works in share mode. That is, the backward LSP can be shared by multiple LSPs. -
bdi-frequency { detect-freq | per-second } Indicates the interval for sending BDI packets.
  • bdi-frequency: indicates that the interval for sending BDI packets is the same as that for sending OAM detection packets.
  • per-second: indicates that BDI packets are sent at an interval of one second.
By default, BDI packets are sent in bdi-frequency mode.
all Deletes all OAM configurations on the egress. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You must run the mpls oam command to globally enable MPLS OAM before configuring MPLS OAM parameters.

If an LSR ID and a tunnel ID are configured when you run the static-lsp egress command or the static-cr-lsp egress command to create a forward LSP, you can specify an LSR ID and a tunnel ID when running the mpls oam egress command. Otherwise, you must specify an LSP name.

If the type of MPLS OAM detection packets is configured on the egress, the auto protocol function is invalid.

If a static LSP or the static CR-LSP functions as the backward LSP, the backward LSP must be configured in private mode.

Only the auto protocol can be enabled automatically, and other configured OAM parameters need to be manually enabled.

Example

# On an RSVP-TE LSP, the ingress is configured with the LSR ID of 1.1.1.1 and the tunnel ID of 100. Configure the following MPLS OAM parameters on the egress. Enable the auto protocol; set the backward LSP to work in private mode; set the interval for sending BDI packets as the same as that for sending detection packets.

<HUAWEI> system-view
[HUAWEI] mpls oam egress lsr-id 1.1.1.1 tunnel-id 100 auto-protocol backward-lsp tunnel 1 private bdi-frequency detect-freq

# Change the type of MPLS OAM detection packet to CV. After the change, the auto protocol becomes invalid.

[HUAWEI] mpls oam egress lsr-id 1.1.1.1 tunnel-id 100 type cv

mpls oam egress enable

Function

The mpls oam egress enable command enables the MPLS OAM function of a specified LSP on the egress.

The undo mpls oam egress enable command disables the MPLS OAM function of a specified LSP on the egress. The configured MPLS OAM parameters remain after the command is configured.

By default, MPLS OAM function is not enabled.

Format

mpls oam egress enable { all | lsp-name lsp-name | lsr-id ingress-lsr-id tunnel-id tunnel-id }

undo mpls oam egress enable { all | lsp-name lsp-name | lsr-id ingress-lsr-id tunnel-id tunnel-id }

Parameters

Parameter Description Value
all Indicates that the MPLS OAM function is enabled on all LSPs to which the egress belongs. -
lsp-name lsp-name Specifies the name of an LSP to be detected. The value is an existing LSP name.
lsr-id ingress-lsr-id Specifies IP address of the ingress of the LSP to be detected. -
tunnel-id tunnel-id Specifies the tunnel ID of the LSP to be detected. The value is an integer and the value ranges from 1 to 65535.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The configured MPLS OAM parameters can take effect only after the mpls oam egress enable command is run.

If the OAM auto protocol is configured, the parameters can take effect automatically without the configuration of the mpls oam egress enable command.

Example

# Enable the MPLS OAM function on the LSP named egress-001.

<HUAWEI> system-view
[HUAWEI] mpls oam egress enable lsp-name egress-001
Related Topics

mpls oam ingress

Function

The mpls oam ingress command configures the MPLS OAM parameters on the ingress of a specified LSP.

The undo mpls oam ingress command deletes the MPLS OAM parameters on the ingress of a specified LSP.

By default, the type of the detection packet is CV; the interval for sending CV packets is one second; the backward tunnel is in share mode.

Format

mpls oam ingress tunnel interface-number [ type { cv | ffd frequency ffd-fre } ] [ backward-lsp { lsp-name lsp-name | lsr-id rev-ingress-lsr-id tunnel-id rev-tunnel-id | share } ] [ packet-priority priority ]

undo mpls oam ingress { all | tunnel interface-number }

Parameters

Parameter Description Value
tunnel interface-number Specifies the tunnel ID of the LSP configured with the MPLS OAM function. -
type Indicates the type of an OAM detection packet. Can be CV and FFD
cv Specifies the type of an OAM detection packet as cv. -
ffd Specifies the type of an OAM detection packet as ffd. -
frequency ffd-fre Specifies the interval for sending FFD packets. When the MPU has the ES0D00FSUA00 card installed or the MPU is EH1D2SRUDC00/EH1D2SRUDC01, the value can be 10, 50, 100 and 500, in milliseconds. In other cases, the value can be 500, in milliseconds.
backward-lsp Indicates the working mode of a backward LSP. The working mode can be share and private. In private mode, a backward LSP is specified by the LSP name, LSR ID, and tunnel ID. -
lsp-name lsp-name Specifies the name of a static LSP. The value is an existing static LSP name.
lsr-id rev-ingress-lsr-id Specifies the ID of the ingress on a backward LSP. -
tunnel-id rev-tunnel-id Specifies the tunnel ID of a backward LSP. An integer ranging from 1 to 65535
share Indicates that the backward LSP works in share mode. -
priority Specifies the sending priority of CV and FFD packets. An integer ranging from 0 to 7. The smaller the value, the higher the priority. By default, the value is 7.
all Deletes all OAM configurations on the ingress. -
tunnelinterface-number Specifies the number of a tunnel interface. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You must run the mpls oam command to globally enable MPLS OAM before configuring MPLS OAM parameters.

If a static LSP or static CR-LSP functions as a backward LSP, the private mode must be adopted.

If an LSR ID and a tunnel ID are specified when you run the static-lsp egress command or the static-cr-lsp egress command to create a backward LSP, you can specify an LSR ID and a tunnel ID when running the mpls oam ingress command. Otherwise, you must specify an LSP name.

After the OAM parameters are configured, you must run the mpls oam ingress enable command to enable OAM.

Example

# Configure the MPLS OAM parameters on Tunnel1. Set the type of detection packets as FFD; set the interval for sending FFD packets to 100 milliseconds; set the backward LSP mode as share.

<HUAWEI> system-view
[HUAWEI] mpls oam ingress tunnel 1 type ffd frequency 100 backward-lsp lsp-name 2

mpls oam ingress enable

Function

The mpls oam ingress enable command enables the MPLS OAM function of a specified LSP on the ingress.

The undo mpls oam ingress enable command disables the MPLS OAM function of a specified LSP on the ingress. The configured MPLS OAM parameters remain after the command is configured.

By default, MPLS OAM function of a specified LSP is disabled on the ingress.

Format

mpls oam ingress enable { all | tunnel interface-number }

undo mpls oam ingress enable { all | tunnel interface-number }

Parameters

Parameter Description Value
all Indicates that the MPLS OAM function is enabled on all LSPs to which the ingress belongs. -
tunnel interface-number Specifies the number of the tunnel interface of an LSP. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

On an ingress, the MPLS OAM parameters take effect only after the mpls oam ingress enable command is configured.

Example

# Enable the MPLS OAM function on Tunnel1.

<HUAWEI> system-view
[HUAWEI] mpls oam ingress enable tunnel 1
Related Topics

mpls te reverse-lsp

Function

The mpls te reverse-lsp command configures a reverse LSP for a tunnel on a specified tunnel interface. The reverse LSP and the forward LSP form a bidirectional LSP.

The undo mpls te reverse-lsp command cancels a reverse LSP for a tunnel on a specified tunnel interface.

By default, no reverse LSP is configured on a tunnel interface.

Format

mpls te reverse-lsp protocol static lsp-name lsp-name

undo mpls te reverse-lsp

Parameters

Parameter Description Value
protocol Specifies the type of the protocol based on which the reverse LSP is set up in the tunnel interface view. -
static Specifies the reverse static LSP configured in the tunnel interface view. -
lsp-name lsp-name Specifies the name of a reverse LSP on a specified tunnel. The value is an existing LSP name.

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run the mpls te reverse-lsp protocol static lsp-name lsp-name command to configure an associated bidirectional static LSP for the specified static tunnel.

On a tunnel interface, the configured incoming interface of the reverse LSP and the configured outgoing interface of the forward LSP must be the same. Otherwise, the configuration is incorrect.

Precautions

After the mpls te reverse-lsp command is configured, the mpls te commit command must be run to validate the configuration.

Example

# Set a reverse LSP named lsp1 on Tunnel1.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] mpls te reverse-lsp protocol static lsp-name lsp1
[HUAWEI-Tunnel1] mpls te commit

mpls te protect-switch

Function

The mpls te protect-switch command configures the manual switching mode for a specified tunnel.

The mpls te protect-switch clear and undo mpls te protect-switch commands delete the manual switching mode for a specified tunnel.

By default, no manual switching mode for a specified tunnel is configured.

Format

mpls te protect-switch { force | lock | manual }

mpls te protect-switch clear

undo mpls te protect-switch

Parameters

Parameter Description Value
force Forcibly directs traffic to a protection tunnel. -
lock Locks traffic in the working tunnel. Being locked, traffic cannot be switched to a protection tunnel even if the working tunnel fails. -
manual Enables manual switching. -
clear Deletes the switching request manually configured on the current tunnel. -

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If an LSP fault is detected, traffic switching is automatically triggered in a tunnel protection group. Alternatively, run the mpls te protect-switch command to trigger traffic switching.

MPLS OAM supports multiple traffic switching modes. These switching modes are prioritized. A newly configured switching mode takes effect only if its priority is higher than that of the existing switching mode.

The traffic switching modes are prioritized in descending order when the protection tunnel is Up:
  • Force switching mode: has the highest priority. If force switching is configured, traffic is forced to switch to a protection tunnel and does not switch back even if the working tunnel recovers. Both the mpls te protect-switch force command and the mpls te protect-switch lock command can trigger force switching, but force switching triggered by the latter command has a higher priority.

  • Signal failure mode: automatically triggers traffic switching if an LSP fault is detected.

  • Manual switching mode: manually switches traffic to a protection tunnel.

  • WTR mode: switches traffic back to a working tunnel after the WTR time expires. Although the WTR time is set, if a command is run to manually switch traffic, traffic will be switched immediately before the WTR time expires.

If a new local or remote request has a higher priority than an existing request manually configured using the mpls te protect-switch command, the APS state machine is changed, and the manual switching command is deleted. In the mpls te protect-switch command, the force and manual parameters, except the lock parameter, configure lower priority requests. After the mpls te protect-switch command with force or manual configured is run, the command is lost after a device is restarted. This situation is normal, in compliance with Recommendation G.8131.

Prerequisites

A tunnel protection group has been created by running the mpls te protection tunnel command.

Follow-up Procedure

The mpls te protect-switch clear command can be used to cancel force or manual switching.

Example

# Switch traffic to the protection tunnel manually on Tunnel 1.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] mpls te protect-switch manual

# Delete the traffic switching to the protection tunnel on Tunnel 1.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] mpls te protect-switch clear

mpls te protection tunnel

Function

The mpls te protection tunnel command creates a tunnel protection group by binding a configured protection tunnel to a primary tunnel.

The undo mpls te protection tunnel command deletes the binding between the protection tunnel and the primary tunnel.

By default, no protection tunnel group is created.

Format

mpls te protection tunnel tunnel-id [ holdoff holdoff-time ] [ mode { non-revertive | revertive [ wtr wtr-time ] } ]

undo mpls te protection tunnel

Parameters

Parameter Description Value
tunnel-id Specifies the ID of a protection tunnel. The value is an integer that ranges from 1 to 10000.
holdoff holdoff-time Specifies the delay time. When a fault on a primary tunnel is detected, the switchover is performed after the delay time expires. The value is an integer that ranges from 0 to 100 with the step of 100 milliseconds. The maximum delay time is 10 seconds. By default, the value is 10, indicating that the switchover is performed immediately after a fault on the primary tunnel is detected.
mode Specifies the revertive mode.
  • non-revertive: The current mode cannot be switched to the original mode.
  • revertive: The current mode can be switched to the original mode.
By default, the revertive mode is used.
wtr wtr-time Specifies the WTR time for the switchback. When a primary tunnel recovers from a fault, the switchback is performed after the WRT time expires. The value is an integer ranges from 0 to 60, with the step of 30 seconds. By default, the value is 24, that is, 12 minutes.

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

In addition to configuring a tunnel protection group to protect a working tunnel, you can configure TE FRR on the working tunnel. In this manner, the working tunnel can work under dual protection. The protection tunnel, however, cannot function as the working tunnel that is protected by another tunnel. In addition, the protection tunnel cannot be enabled with TE FRR.

After creating a protection tunnel in the tunnel interface view, you must run the mpls te commit command to commit the configuration.

NOTE:

Tunnel protection group and TE FRR cannot be configured simultaneously on the ingress of a primary tunnel.

Example

# Configure a protection tunnel for Tunnel1.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] tunnel-protocol mpls te
[HUAWEI-Tunnel1] mpls te protection tunnel 239 holdoff 100 mode revertive wtr 30
[HUAWEI-Tunnel1] mpls te commit

reset mpls oam packet-statistics egress

Function

The reset mpls oam packet-statistics egress command clears statistics about the MPLS OAM packets on the egress.

Format

reset mpls oam packet-statistics egress { all | lsp-name lsp-name | lsr-id egress-lsr-id tunnel-id tunnel-id }

Parameters

Parameter Description Value
all

Displays information about all OAM packets on the egress.

-
lsp-name lsp-name

Specifies the name of the LSP that MPLS OAM monitors.

The value is an existing LSP name.
lsr-id egress-lsr-id

Specifies the LSR ID of the tunnel egress.

-
tunnel-id tunnel-id

Specifies the tunnel ID.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

To clear statistics about the MPLS OAM packets on the egress, run the reset mpls oam packet-statistics egress command.

Example

# Clear the statistics about the MPLS OAM packets on the egress.
<HUAWEI> reset mpls oam packet-statistics egress all

reset mpls oam packet-statistics ingress

Function

The reset mpls oam packet-statistics ingress command clears statistics about the MPLS OAM packets on the ingress.

Format

reset mpls oam packet-statistics ingress { all | tunnel interface-number }

Parameters

Parameter Description Value
all Displays information about all OAM packets on the ingress. -
tunnel interface-number

Specifies the tunnel interface number.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

To clear statistics about the MPLS OAM packets on the ingress, run the reset mpls oam packet-statistics ingress command.

Example

# Clear the statistics about the MPLS OAM packets on the ingress.
<HUAWEI> reset mpls oam packet-statistics ingress all

reset mpls oam packet-statistics global

Function

The reset mpls oam packet-statistics global command clears statistics about all MPLS OAM packets.

Format

reset mpls oam packet-statistics global

Parameters

None

Views

User view

Default Level

2: Configuration level

Usage Guidelines

To clear statistics about all MPLS OAM packets, run the reset mpls oam packet-statistics global command.

Example

# Clear the statistics about all MPLS OAM packets.
<HUAWEI> reset mpls oam packet-statistics egress global

snmp-agent trap enable feature-name mpls-oam

Function

The snmp-agent trap enable feature-name mpls-oam command enables the trap function for the MPLS-OAM module.

The undo snmp-agent trap enable feature-name mpls-oam command disables the trap function for the MPLS-OAM module.

By default, the trap function is disabled for the MPLS-OAM module.

Format

snmp-agent trap enable feature-name mpls-oam [ trap-name trap-name ]

undo snmp-agent trap enable feature-name mpls-oamundo snmp-agent [ trap-name trap-name ]

Parameters

Parameter Description Value
trap-name Indicates the trap of MPLS-OAM event of specified type.
  • hwmplsoambidirectionaltunnelava: indicates the trap in the case that the static bidirectional co-routed LSP monitored by MPLS OAM enters the available state.

  • hwmplsoambidirectionaltunnelindefect: indicates the trap in the case that the static bidirectional co-routed LSP monitored by MPLS OAM enters the defective state.

  • hwmplsoambidirectionaltunneloutdefect: indicates the trap in the case that the static bidirectional co-routed LSP monitored by MPLS OAM quits the defective state.

  • hwmplsoambidirectionaltunnelunava: indicates the trap in the case that the static bidirectional co-routed LSP monitored by MPLS OAM enters the unavailable state.

  • hwmplsoamegrlspava: indicates the trap in the case that the LSP egress enters the available state.

  • hwmplsoamegrlspindefect: indicates the trap in the case that the LSP egress enters the defect state.

  • hwmplsoamegrlspoutdefect: indicates the trap in the case that the LSP egress leaves the defect state.

  • hwmplsoamegrlspunava: indicates the trap in the case that the LSP egress enters the unavailable state.

  • hwmplsoamegrrlsndown: indicates the trap in the case that the RLSN enter the down state.

  • hwmplsoamigrlspava: indicates the trap in the case that the LSP ingress enters the available state.

  • hwmplsoamigrlspindefect: indicates the trap in the case that the LSP ingress enters the defect state.

  • hwmplsoamigrlspoutdefect: indicates the trap in the case that the LSP ingress leaves the defect state.

  • hwmplsoamigrlspunava: indicates the trap in the case that the LSP ingress enters the unavailable state.

  • hwmplsoaml2vcava: indicates the trap in the case that an alarm is triggered when L2VC at the OAM end enters an available state.

  • hwmplsoaml2vcindefect: indicates the trap in the case that an alarm is triggered when L2VC at the OAM end enters the defect state.

  • hwmplsoaml2vcoutdefect: indicates the trap in the case that L2VC at the OAM end exits the defect state.

  • hwmplsoaml2vcunava: indicate the trap in the case that an alarm is triggered when L2VC at the OAM end enters an unavailable state.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

To enable the traps of one or more events, you can specify type-name.

Example

# Enables hwmplsoamegrlspava trap of MPLS-OAM module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name mpls-oam trap-name hwmplsoamegrlspava
Translation
Download
Updated: 2019-10-18

Document ID: EDOC1000178288

Views: 26694

Downloads: 109

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next