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).
Hardware Configuration Commands

Hardware Configuration Commands

Command Support

Commands provided in this section and all the parameters in the commands are supported by all switch models by default, unless otherwise specified. For details, see specific commands.

assign acl-mode

Function

The assign acl-mode command sets the ACL resource allocation mode on an interface card.

The undo assign acl-mode command restores the default ACL resource allocation mode on an interface card.

By default, the ACL resource allocation mode is dual-ipv4-ipv6.

NOTE:

Only the X1E, X2E, and X2H series cards support this command.

X2E and X2H series cards support this command only after the resource mode is set to mac-acl using the assign resource-mode command.

Format

assign acl-mode slot slot-id mode { dual-ipv4-ipv6 | ipv4 | l2 | l2-ipv4 | l2-ipv6 }

undo assign acl-mode slot slot-id

Parameters

Parameter

Description

Value

mode { dual-ipv4-ipv6 | ipv4 | l2 | l2-ipv4 | l2-ipv6 }

Specifies an ACL resource allocation mode.

  • dual-ipv4-ipv6: configures the IPv4 and IPv6 ACL resource allocation mode.
  • l2-ipv4: configures the Layer 2 IPv4 ACL resource allocation mode.
  • l2-ipv6: configures the Layer 2 IPv6 ACL resource allocation mode.
  • l2: configures the Layer 2 ACL resource allocation mode.
  • ipv4: configures the IPv4 ACL resource allocation mode.

slot slot-id

Specifies the slot ID of an interface card.

The value is an integer. The value range depends on the device configuration.

Views

System view

Default Level

3: Management level

Usage Guidelines

If the default number of ACLs for IPv4, IPv6, or Layer 2 services cannot meet service requirements, you can change the ACL resource allocation mode to increase the number of ACLs for the services.

You can use this command to change the ACL resource allocation mode according to service changes on a device. Before making any change, consider the advantages and disadvantages of the change. For example, if the ACL resource allocation mode is changed from dual-ipv4-ipv6 to ipv4, more ACLs are supported for IPv4 services, but the number of ACLs for IPv6 and VLAN services reduces to 0.

Changes to the ACL resource allocation mode take effect only after the interface card is reset.

After the ACL resource allocation mode is set for a card in a slot, the mode will be deleted if the card is replaced by another one that does not support the ACL resource allocation mode.

Table 3-24  ACL specifications in different resource allocation modes (X1E series cards)
Resource Allocation Mode Maximum Number of IPv4 ACLs Maximum Number of Layer 2+IPv4 ACLs Maximum Number of IPv6 ACLs Maximum Number of Layer 2+IPv6 ACLs Maximum Number of Layer 2 ACLs Total Number of ACLs
dual-ipv4-ipv6 20K 20K 8K 8K 20K 20K(IPv4)+8K(IPv6)
l2-ipv4 36K 36K 0 0 36K 36K
l2-ipv6 0 0 16K 16K 16K 16K
ipv4 64K 0 0 0 0 64K
l2 0 0 0 0 64K 64K
Table 3-25  ACL specifications in different resource allocation modes (X2E series cards)
Resource Allocation Mode Maximum Number of IPv4 ACLs Maximum Number of Layer 2+IPv4 ACLs Maximum Number of IPv6 ACLs Maximum Number of Layer 2+IPv6 ACLs Maximum Number of Layer 2 ACLs Total Number of ACLs
dual-ipv4-ipv6 38K 38K 16K 16K 38K 38K(IPv4)+16K(IPv6)
l2-ipv4 70K 70K 0 0 70K 70K
l2-ipv6 0 0 32K 32K 32K 32K
ipv4 128K 0 0 0 0 128K
l2 0 0 0 0 128K 128K
Table 3-26  ACL specifications in different resource allocation modes (X2H series cards)
Resource Allocation Mode Maximum Number of IPv4 ACLs Maximum Number of Layer 2+IPv4 ACLs Maximum Number of IPv6 ACLs Maximum Number of Layer 2+IPv6 ACLs Maximum Number of Layer 2 ACLs Total Number of ACLs
dual-ipv4-ipv6 70K 70K 32K 32K 70K 70K(IPv4)+32K(IPv6)
l2-ipv4 134K 134K 0 0 134K 134K
l2-ipv6 0 0 64K 64K 64K 64K
ipv4 256K 0 0 0 0 256K
l2 0 0 0 0 256K 256K
Table 3-27 lists the resource allocation modes supported by different services. For example, the free mobility service is supported in the Dual IPv4 and IPv6 mode. After the Dual IPv4 and IPv6 mode is changed to the IPv4 mode and the LPU is restarted, the free mobility service becomes invalid.
NOTE:

The services not included in the table are supported in all modes.

Table 3-27  Resource allocation modes and services
Resource Allocation Mode dual-ipv4-ipv6 l2-ipv4 l2-ipv6 l2 ipv4
IPSG (IPv4) Y Y Y N N
IPSG (IPv6) Y N Y N N
Service Chain Y Y N N N
Free mobility Y Y N N N
RADIUS authorization Y Y N N N
Authentication free rules Y Y N N N
User group Y Y N N N
Portal authentication Y Y N N N
802.1X-based fast deployment Y Y N N N
NQA Y Y Y N N
Packet capturing Y Y Y N N
All-0 MAC address alarm Y Y Y Y N
Global blackhole MAC address entry Y Y Y Y N
MAC Swap loopback test Y Y Y N N

Example

# Change the ACL resource allocation mode on the X1E interface card in slot 10 to mode l2.

<HUAWEI> system-view
[HUAWEI] assign acl-mode slot 10 mode l2

assign resource-mode

Function

The assign resource-mode command sets the resource mode for extended entry register space of an LPU. The resource mode determines register space for MAC address entries, ACL entries, and IP address entries.

The undo assign resource-mode command restores the resource mode for extended entry register space of an LPU.

By default, see the following specification list for default specifications of different LPU series.

NOTE:
  • Only the BC, ED, EE, EC, and X series LPUs support this command.

  • For different LPUs' support for this command, see the following specification list.

  • After setting the resource mode for extended entry register space of an LPU, save the configuration and reset the LPU for the configuration to take effect.

  • For an X2E or X2H series LPU, set the acl mode to dual-ipv4-ipv6 before configuring this command.
  • In enhanced-ipv4 or ipv4-ipv6 resource mode, EH1D2X48SEC0 LPUs do not support redirection to low-priority next hops.
  • In enhanced-arp resource mode, EH1D2X48SEC0 LPUs do not support MPLS.

  • In 128k-arp resource mode, EE series LPUs do not support MPLS.

  • After the resource mode is set to limiting-mac on the X2S series, the X2S series cannot function as an authentication point for user access.

Format

assign resource-mode slot slot-id mode mode

undo assign resource-mode slot slot-id

Parameters

Parameter

Description

Value

slot slot-id

Specifies the slot ID of an LPU.

The value is an integer, and the value range depends on the hardware configuration of the switch.

mode mode

Sets the resource mode for extended entry register space.

The value is a character string, and the value range depends on the resource modes supported by an LPU. After entering a slot ID, enter a question mark (?) and select a resource mode supported by the LPU. The available resource modes are described as follows:
  • close-all: closes the entire extended entry register space and does not allocate any entry register space.
  • enhanced-mac: MAC address entry enhanced mode.
  • enhanced-ipv4: IPv4 entry enhanced mode.
  • mac-acl: MAC ACL entry mode.
  • ipv4-acl: IPv4 ACL entry mode.
  • enhanced-ipv6: IPv6 entry enhanced mode.
  • ipv6-acl: IPv6 ACL entry mode.
  • ipv4-nac: IPv4 NAC entry mode.
  • l2-acl: Layer 2 ACL entry mode.
  • ipv4-ipv6: allocates register space for IPv4 and IPv6 entries in proportion of 6:1, 2:1, or 2:3.
  • 3m-ipv4: 3 M IPv4 entry mode.
  • 2m-ipv4: 2 M IPv4 entry mode.
  • enhanced-arp: ARP entry enhanced mode
  • ipv4-ipv6-acl: IPv4 and IPv6 ACL entry balanced mode.
  • ipv4: IPv4 entry mode.
  • mac-ipv4: MAC IPv4 mode.
  • mac-fib: MAC FIB mode.
  • 128k-arp: 128K ARP mode.
  • limiting-mac: MAC limiting mode.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If a device's built-in register space for MAC address entries, IP entries, or ACL entries is not large enough to meet service requirements, you can use this command change the resource mode of the extended entry register space, so as to extend the entry space.

Precautions

The requirements for different entry spaces will change when service configuration is adjusted. In this case, you can change the resource mode to meet the new service requirements. Before changing the resource mode, consider the benefit and loss that the new mode will bring. For example, after the resource mode is changed from enhanced-mac to enhanced-ipv4, more IPv4 FIB entries are supported, but the MAC entry space is reduced to the built-in MAC entry space.

The new resource mode takes effect only after the LPU is reset. You can run the display resource-assign configuration command to view the resource allocation configuration of the extended entry register space.

For the EH1D2X48SEC0 card, if the resource mode is set to enhanced-ipv4 or ipv4-ipv6 6:1 using the assign resource-mode command, and the ipv4 destination-unreachable drop or ipv6 destination-unreachable dropcommand is configured on the device, the configuration the function of discarding packets that match no routing entry does not take effect.

The EE series LPUs support the network admission control (NAC) function in IPv4-ACL mode.

If a slot has a new LPU installed and the new LPU does not support the resource mode that has been configured in the slot, the resource mode will be restored to the default mode of the new LPU.

The following table lists the entry space specifications obtained by different LPU series when the resource mode for extended entry register space is configured. In the table,
  • K indicates 1024, for example, 32K indicates 32 x 1024.
  • Default indicates the default LPU mode, for example, enhanced-mac (Default).
  • Share indicates that the current specification shares resources with another specification, for example, 128000 (shared with FIB6).
  • 64-bit indicates IPv6 entries with the mask length less than or equal to 64 bits, for example: (12K IPv4 or 6K IPv6 64-bit) + 1K IPv6 128-bit.
  • 128-bit indicates IPv6 entries with the mask length longer than 64 bits, for example: (12K IPv4 or 6K IPv6 64-bit) + 1K IPv6 128-bit.
  • BC/EC series (excluding the EH1D2X48SEC0)

    Mode

    Specification

    MAC

    FIBv4

    FIBv6

    ARP

    ND

    Multicast IPv4

    Multicast IPv6

    ACL (Ingress)

    ACL (Egress)

    Number of NAC Users

    Close All

    32K

    16K IPv4 or 8K IPv6

    16376

    8K

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    enhanced-mac (Default)

    128K

    16K IPv4 or 8K IPv6

    16376

    8K

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    enhanced-ipv4

    32K

    128K

    8K

    16376

    8K

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    mac-acl

    64K

    16K IPv4 or 8K IPv6

    16376

    8K

    4000

    (6K IPv4 or 3K IPv6) + 16K L2 ACL

    1K IPv4 or 256 IPv6

    3K

    ipv4-acl

    32K

    64K

    8K

    16376

    8K

    4000

    (6K IPv4 or 3K IPv6) + 16K IPv4 ACL

    1K IPv4 or 256 IPv6

    3K

    enhanced-ipv6

    32K

    16K

    64K

    16376

    16376

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    ipv6-acl

    32K

    16K IPv4 or 8K IPv6

    16376

    16376

    4000

    (6K IPv4 or 3K IPv6) + 32K IPv6 ACL

    1K IPv4 or 256 IPv6

    3K

    ipv4-nac

    32K

    16K IPv4 or 8K IPv6

    16376

    8K

    4000

    (6K IPv4 or 3K IPv6) + 32K IPv4 ACL

    1K IPv4 or 256 IPv6

    3K

    l2-acl

    32K

    16K IPv4 or 8K IPv6

    16376

    8K

    4000

    (6K IPv4 or 3K IPv6) + 32K L2 ACL

    1K IPv4 or 256 IPv6

    3K

    ipv4-ipv6 (2:1)

    32K

    64K IPv4 + 32K IPv6

    16376

    16376

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    ipv4-ipv6 (6:1)

    32K

    96K IPv4 + 16K IPv6

    16376

    16376

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    ipv4-ipv6 (2:3)

    32K

    32k IPv4 + 48K IPv6

    16376

    16376

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    mac-ipv4

    64K

    64K

    8K

    16376

    8K

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

  • ED Series

    Mode

    Specification

    MAC

    FIBv4

    FIBv6

    ARP

    ND

    Multicast IPv4

    Multicast IPv6

    ACL (Ingress)

    ACL (Egress)

    Number of NAC Users

    Close All

    32K

    16K IPv4 or 8K IPv6

    16376

    8K

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    enhanced-mac (Default)

    512K

    16K IPv4 or 8K IPv6

    16376

    8K

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    enhanced-ipv4

    32K

    512K

    8K

    16376

    8K

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    mac-acl

    256K

    16K IPv4 or 8K IPv6

    16376

    8K

    4000

    (6K IPv4 or 3K IPv6) + 64K L2 ACL

    1K IPv4 or 256 IPv6

    3K

    ipv4-acl

    32K

    256K

    8K

    16376

    8K

    4000

    (6K IPv4 or 3K IPv6) + 64K IPv4 ACL

    1K IPv4 or 256 IPv6

    3K

    enhanced-ipv6

    32K

    16K

    256K

    16376

    16376

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    ipv6-acl

    32K

    16K IPv4 or 8K IPv6

    16376

    8K

    4000

    (6K IPv4 or 3K IPv6) + 64K IPv6 ACL

    1K IPv4 or 256 IPv6

    3K

    ipv4-nac

    32K

    16K IPv4 or 8K IPv6

    16376

    8K

    4000

    (6K IPv4 or 3K IPv6) + 64K IPv4 ACL

    1K IPv4 or 256 IPv6

    3K

    l2-acl

    32K

    16K IPv4 or 8K IPv6

    16376

    8K

    4000

    (6K IPv4 or 3K IPv6) + 64K L2 ACL

    1K IPv4 or 256 IPv6

    3K

    ipv4-ipv6 (2:1)

    32K

    256K IPv4 + 128K IPv6

    16376

    16376

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    ipv4-ipv6 (6:1)

    32K

    384K IPv4 + 64K IPv6

    16376

    16376

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    ipv4-ipv6 (2:3)

    32K

    128K IPv4 + 192K IPv6

    16376

    16376

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

    mac-ipv4

    256K

    256K

    8K

    16376

    8K

    4000

    6K IPv4 or 3K IPv6

    1K IPv4 or 256 IPv6

    3K

  • EE Series

    Mode

    Specification

    MAC

    FIBv4

    FIBv6

    ARP

    ND

    Multicast IPv4

    Multicast IPv6

    ACL (Ingress)

    ACL (Egress)

    Number of NAC Users

    enhanced-mac

    688K

    (12K IPv4 or 6K IPv6 64-bit) + 1K IPv6 128-bit

    64K

    64K

    4000

    (6K IPv4 or 3K IPv6) * 2

    (1K IPv4 or 512 IPv6) * 2

    3K

    enhanced-ipv4

    176K

    512K

    7K

    64K

    64K

    4000

    (6K IPv4 or 3K IPv6) * 2

    (1K IPv4 or 512 IPv6) * 2

    3K

    enhanced-ipv6

    256K

    16K

    256K

    64K

    64K

    4000

    (6K IPv4 or 3K IPv6) * 2

    (1K IPv4 or 512 IPv6) * 2

    3K

    ipv6-acl

    96K

    (12K IPv4 or 6K IPv6 64-bit) + 1K IPv6 128-bit

    64K

    64K

    4000

    ((6K IPv4 or 3K IPv6) + 64K IPv6 ACL) * 2

    (1K IPv4 or 512 IPv6) * 2

    3K

    ipv4-acl

    96K

    (12K IPv4 or 6K IPv6 64-bit) + 1K IPv6 128-bit

    64K

    64K

    4000

    ((6K IPv4 or 3K IPv6) + 128K IPv4 ACL) * 2

    (1K IPv4 or 512 IPv6) * 2

    3K

    enhanced-arp

    NOTE:

    The S7700 does not support this mode.

    144K

    256K

    128K

    64K

    64K

    4000

    (6K IPv4 or 3K IPv6) * 2

    (1K IPv4 or 512 IPv6) * 2

    3K

    128k-arp

    144K

    256K

    128K

    128000

    64K

    4000

    (6K IPv4 or 3K IPv6) * 2

    (1K IPv4 or 512 IPv6) * 2

    3K

    ipv4-ipv6-acl (Default)

    160K

    256K

    64K

    64K

    64K

    4000

    ((6K IPv4 or 3K IPv6) + 32K IPv4 ACL) * 2

    (1K IPv4 or 512 IPv6) * 2

    3K

  • X1E series

    Mode

    Specification

    MAC

    FIBv4

    FIBv6

    ARP

    ND

    Multicast IPv4

    Multicast IPv6

    ACL (Ingress)

    ACL (Egress)

    Number of NAC Users

    enhanced-mac

    1M

    128K

    16K

    256000

    16K

    128000

    See the specifications in acl-mode.

    • S7700 series switches equipped with SRUH or SRUE main control units: 16K
    • other devices: 8K

    ipv4-ipv6 (2:1)

    256K

    Default: 256K

    Max: 512K

    Default: 128K

    Max: 256K

    256000

    128000 (shared with FIB6)

    128000

    See the specifications in acl-mode.

    • S7700 series switches equipped with SRUH or SRUE main control units: 16K
    • other devices: 8K

    enhanced-ipv4 (Default)

    256K

    Default: 256K

    Max: 1024K

    16K

    256000

    16K

    128000

    See the specifications in acl-mode.

    • S7700 series switches equipped with SRUH or SRUE main control units: 16K
    • other devices: 8K

    enhanced-ipv6

    128K

    16K

    Default: 128K

    Max: 464K

    16K

    256000 (shared with FIB6)

    4K

    See the specifications in acl-mode.

    • S7700 series switches equipped with SRUH or SRUE main control units: 16K
    • other devices: 8K

    2m-ipv4

    128K

    Default: 256K

    Max: 2M

    128K

    256000

    16K

    32K

    See the specifications in acl-mode.

    • S7700 series switches equipped with SRUH or SRUE main control units: 16K
    • other devices: 8K

    3m-ipv4

    128K

    Default: 256K

    Max: 3072000

    16K

    128K

    16K

    4K

    See the specifications in acl-mode.

    • S7700 series switches equipped with SRUH or SRUE main control units: 16K
    • other devices: 8K
  • EH1D2X48SEC0

    Mode

    Specification

    MAC

    FIBv4

    FIBv6

    ARP

    ND

    Multicast IPv4

    Multicast IPv6

    ACL (Ingress)

    ACL (Egress)

    Number of NAC Users

    Close All (Default)

    96K

    (12K IPv4 or 6K IPv6 64-bit) + 1K IPv6 128-bit

    48K

    48K

    4000

    3K IPv4 or 1.5K IPv6

    1K IPv4 or 512 IPv6

    3K

    enhanced-mac

    288K

    (12K IPv4 or 6K IPv6 64-bit) + 1K IPv6 128-bit

    16K

    8K

    4000

    3K IPv4 or 1.5K IPv6

    1K IPv4 or 512 IPv6

    3K

    enhanced-ipv4

    32K

    128K

    80K (64-bit) (shared with IPv4)

    16K

    8K

    4000

    3K IPv4 or 1.5K IPv6

    1K IPv4 or 512 IPv6

    3K

    ipv4-ipv6 (6:1)

    32K

    64K

    10K (10K 64-bit or 10K 128-bit)

    16K

    8K

    4000

    3K IPv4 or 1.5K IPv6

    1K IPv4 or 512 IPv6

    3K

    enhanced-arp

    96K

    (12K IPv4 or 6K IPv6 64-bit) + 1K IPv6 128-bit

    128000

    64000

    4000

    3K IPv4 or 1.5K IPv6

    1K IPv4 or 512 IPv6

    3K

  • X2S series

    Mode

    Specification

    MAC

    FIBv4

    FIBv6

    ARP

    ND

    Multicast IPv4

    Multicast IPv6

    ACL (Ingress)

    ACL (Egress)

    Number of NAC Users

    enhanced-arp (default)

    64K

    64K (Min 16K, Other Share)

    22K (Min 4K, Other Share)

    64K (Share with FIBv4)

    22K (Share with FIBv6)

    32K (Min 4K, Other Share)

    2K

    6K (IPv4&IPv6) (shared ingress/egress)

    • S7700 series switches equipped with SRUH or SRUE main control units: 16K
    • other devices: 8K

    enhanced-mac

    128K

    16K

    8K

    16K (Share with FIBv4)

    8K (Share with FIBv6)

    4K

    4K

    6K (IPv4&IPv6) (shared ingress/egress)

    8K

    enhanced-ipv4

    16K

    128K

    4K

    16K (Share with FIBv4)

    4K (Share with FIBv6)

    4K

    4K

    6K (IPv4&IPv6) (shared ingress/egress)

    8K

    enhanced-ipv6

    16K

    8K

    32K

    8K (Share with FIBv4)

    32K (Share with FIBv6)

    4K

    4K

    6K (IPv4&IPv6) (shared ingress/egress)

    8K

    limiting-mac

    256000

    512 (Share with FIBv6/ND/ARP)

    32 (Share with FIBv4/ND/ARP)

    512 (Share with FIBv4/FIBv6/ND)

    32 (Share with FIBv4/FIBv6/ARP)

    256

    32

    6K(IPv4&IPv6) (shared ingress/egress)

    0

  • X2E series

    Mode

    Specification

    MAC

    FIBv4

    FIBv6

    ARP

    ND

    Multicast IPv4

    Multicast IPv6

    ACL (Ingress)

    ACL (Egress)

    Number of NAC Users

    enhanced-arp (default)

    150K

    256K (Share)

    126K (Share)

    256000 (Share)

    126K (Share)

    32K (Share)

    22K (IPv4) or 8K(IPv6) (shared ingress/egress)

    • S7700 series switches equipped with SRUH or SRUE main control units: 16K
    • other devices: 8K

    enhanced-mac

    384K

    16K

    8K

    16K (Share with FIBv4)

    8K (Share with FIBv6)

    4K

    4K

    6K (IPv4&IPv6) (shared ingress/egress)

    8K

    enhanced-ipv4

    16K

    256K

    32K

    256000 (Share with FIBv4)

    32K (Share with FIBv6)

    4K

    4K

    6K (IPv4&IPv6) (shared ingress/egress)

    8K

    enhanced-ipv6

    16K

    128K

    128K

    64K (Share with FIBv4)

    128000 (Share with FIBv6)

    4K

    4K

    6K (IPv4&IPv6) (shared ingress/egress)

    8K

    mac-acl

    64K

    64K

    4K

    64K (Share with FIBv4)

    4K (Share with FIBv6)

    4K

    2K

    128K (largest, different with acl-mode)

    • S7700 series switches equipped with SRUH or SRUE main control units: 16K
    • other devices: 8K
  • X2H series

    Mode

    Specification

    MAC

    FIBv4

    FIBv6

    ARP

    ND

    Multicast IPv4

    Multicast IPv6

    ACL (Ingress)

    ACL (Egress)

    Number of NAC Users

    enhanced-arp (default)

    150K

    Default: 256K

    Max: 1024K

    (Share)

    Default: 128K

    Max: 510K

    (Share)

    256000 (Share)

    128000 (Share)

    32K (Share)

    38K (IPv4) or 16K (IPv6) (shared ingress/egress)

    • S7700 series switches equipped with SRUH or SRUE main control units: 16K
    • other devices: 8K

    enhanced-mac

    1152K

    16K

    8K

    16K (Share with FIBv4)

    8K (Share with FIBv6)

    4K

    4K

    6K (IPv4&IPv6) (shared ingress/egress)

    8K

    enhanced-ipv4

    16K

    Default: 256K

    Max: 1024K

    32K

    256000 (Share with FIBv4)

    32K (Share with FIBv6)

    4K

    4K

    6K (IPv4&IPv6) (shared ingress/egress)

    8K

    enhanced-ipv6

    16K

    128K

    Default: 128K

    Max: 512K

    64K (Share with FIBv4)

    128000 (Share with FIBv6)

    4K

    4K

    6K (IPv4&IPv6) (shared ingress/egress)

    8K

    mac-acl

    64K

    64K

    4K

    64K (Share with FIBv4)

    4K (Share with FIBv6)

    4K

    2K

    256K (largest, different with acl-mode)

    • S7700 series switches equipped with SRUH or SRUE main control units: 16K
    • other devices: 8K

    mac-fib

    384K

    Default: 256K

    Max: 768K

    (Share)

    Default: 128K

    Max: 382K

    (Share)

    256000 (Share)

    128000 (Share)

    4K

    4K

    6K (IPv4&IPv6) (shared ingress/egress)

    • S7700 series switches equipped with SRUH or SRUE main control units: 16K
    • other devices: 8K

Example

# Change the resource mode of the extended entry register space in slot 1 to enhanced-mac.

<HUAWEI> system-view
[HUAWEI] assign resource-mode slot 1 mode enhanced-mac

assign system-resource-mode static

Function

The assign system-resource-mode static command configures the static resource allocation mode for LPUs. In this mode, the system allocates only two internal forwarding resources to each LPU, regardless of the LPU type.

The undo assign system-resource-mode static command restores the default resource allocation mode.

NOTE:

Only the S7706 and S7712 can use this command to change the resource allocation mode.

Format

assign system-resource-mode static

undo assign system-resource-mode static

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A switch completes internal forwarding using limited resources. By default, S7706 and S7712 dynamically allocate internal forwarding resources to LPUs based on LPU types, and the number of the internal forwarding resources ranges from 1 to 4. A standalone switch or a CSS system has a total of 64 internal forwarding resources. In dynamic resource allocation mode, a standalone switch not running the CSS function provides 54 internal forwarding resources for LPUs, and a standalone switch running the CSS function or a CSS system provides 46 internal forwarding resources for LPUs. Some LPUs require many internal forwarding resources; therefore, if the CSS function is enabled on a switch, allocable internal forwarding resources may be insufficient for LPUs of the switch. In this case, the LPUs that are allocated no internal forwarding resources or insufficient internal forwarding resources fail to register and cannot provide services.

The static resource allocation mode can prevent this problem. When this mode is configured, the system allocates only two internal forwarding resources to each LPU, regardless of the LPU types.

Precautions

When the static resource allocation mode is used, SA series LPUs of the S7700 cannot register with the system.

This command cannot be executed by multiple users at the same time.

Example

# Configure the static resource allocation mode for LPUs.

<HUAWEI> system-view
[HUAWEI] assign system-resource-mode static
Warning: This command will take effect only after rebooting the system. 
The SA series boards will fail to register in this mode. Continue?[Y/N]: y

backup elabel

Function

The backup elabel command backs up electronic labels of the device to the local memory.

The backup elabel ftp command backs up electronic labels to a specified FTP server.

The backup elabel tftp command backs up electronic labels to a specified TFTP server.

The backup elabel sftp command backs up electronic labels to a specified SFTP server.

The backup elabel backplane command backs up electronic labels of the backplane to the local memory.

The backup elabel backplane ftp command backs up electronic labels of the backplane to a specified FTP server.

The backup elabel backplane tftp command backs up electronic labels of the backplane to a specified TFTP server.

The backup elabel backplane sftp command backs up electronic labels of the backplane to a specified SFTP server.

Format

backup elabel filename [ chassis-id[/slot-id ] ]

backup elabel ftp ftp-server-address filename username password [ chassis-id[/slot-id ] ]

backup elabel sftp sftp-server-address filename username password [ chassis-id[/slot-id ] ]

backup elabel tftp tftp-server-address filename [ chassis-id[/slot-id ] ]

backup elabel backplane filename chassis chassis-id ( The chassis chassis-id parameter is valid only in a CSS. )

backup elabel backplane ftp ftp-server-address filename username password chassis chassis-id ( The chassis chassis-id parameter is valid only in a CSS. )

backup elabel backplane sftp sftp-server-address filename username password chassis chassis-id ( The chassis chassis-id parameter is valid only in a CSS. )

backup elabel backplane tftp tftp-server-address filename chassis chassis-id ( The chassis chassis-id parameter is valid only in a CSS. )

Parameters

Parameter Description Value
filename

Specifies the name of the file that stores electronic labels.

The value is a string of 5 to 28 case-sensitive characters without spaces, in the format of [drive][file-name]. (The drive is cfcard:/ or flash:/. )

The file name extension must be .txt or .fls.

ftp-server-address

Specifies the IP address of a FTP server.

The value is in dotted decimal notation.

sftp-server-address

Specifies the IP address of a SFTP server.

The value is in dotted decimal notation.

slot-id Specifies a slot ID or the number of a fan module, power module, or CMU.

The value must be set according to the device configuration.

username

Specifies the user name used to log in to the FTP or SFTP server.

The value is a string of 1 to 20 case-sensitive characters without spaces.

password

Specifies the password used to log in to the FTP or SFTP server.

The value is a string of 1 to 20 case-sensitive characters without spaces.

tftp-server-address

Specifies the IP address of a TFTP server.

The value is in dotted decimal notation.

chassis chassis-id

Specifies the CSS ID of the device of which electronic labels need to be saved.

The value is an integer:
  • In a CSS, the value is 1 or 2.
  • On a stand-alone switch, the value is 1.

Views

All views

Default Level

3: Management level

Usage Guidelines

When electronic labels are stored on a board, use the backup elabel command to save electronic labels to a file. This file can be saved to the local memory, to the FTP or SFTP server using FTP or SFTP , or to the TFTP server using TFTP. FTP and TFTP cannot ensure secure file transfer, therefore, an SFTP server is recommended for users requiring high network security.

Example

# Save electronic labels of the device with CSS ID 1 to the elabel.fls file in the flash memory.

<HUAWEI> backup elabel elabel.fls 1

# Save the electronic label of the board in slot 1 of the device with CSS ID 1 to FTP server 192.168.12.91. Set the FTP user name to user and password to 123. Save the electronic label in the elabel.fls file.

<HUAWEI> backup elabel ftp 192.168.12.91 elabel.fls user 123 1/1
# Save electronic labels of the device to SFTP server 192.168.12.91. Set the SFTP user name to client001 and password to Huawei@1234. Save electronic labels in the elabel.fls file.
<HUAWEI> backup elabel sftp 192.168.12.91 elabel.fls client001 Huawei@1234

# Save the electronic label of the backplane on the device with CSS ID 1 to the elabel.fls file in the flash memory.

<HUAWEI> backup elabel backplane elabel.fls chassis 1
Info: It is executing, please wait...   
Info: Backup elabel successfully.   
Related Topics

connect

Function

The connect command enables you to log in to a value-added service card through the MPU of device.

Format

connect slot slot-id

Parameters

Parameter

Description

Value

slot slot-id

Specifies the slot ID of a value-added service card.

The value is an integer. You can specify the slot ID for the value-added service card according to the actual configuration.

Views

All views

Default Level

3: Management level

Usage Guidelines

If you have logged in to the MPU of a device, you can log in to the value-added service card through the redirection function.

In a CSS, running the connect command only allows you to log in to the value-added service card of the master chassis but not the value-added service card of the standby chassis. To log in to the value-added service card of the standby chassis, log in through the console port.

Example

# Log in to the value-added service card in slot 9 from the MPU of device.

<HUAWEI> connect slot 9
******************************************************
*              Slot  9 output to mainboard           *
******************************************************
Press Ctrl+D to quit

Press Enter. The system displays the following information:

The console can not be used now, please press Ctrl+Y.

Press Ctrl+Y. The system redirects you to the serial interface of a value-added service card so that you can log in to the card.

NOTE:

To return to the MPU of the device, press Ctrl+D.

The serial interface of the value-added service card can be used as:
  • Ingress for redirecting to the value-added service card from the MPU of the device
  • Ingress for logging in to the value-added service card through a serial cable

You can press Ctrl+Y to switch the roles of the serial interface on the value-added service card. The serial interface can be function as either the ingress for redirecting to the value-added service card from the MPU of the device or the ingress for logging in to the value-added service card.

display detect-engine configuration

Function

The display detect-engine configuration command displays the hardware engine configuration.

NOTE:

Only the S9706 and S9712 that use EH1D2SRUDC00 and EH1D2SRUDC01 boards support this command.

Format

display detect-engine configuration

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The EH1D2SRUDC00 and EH1D2SRUDC01 integrate the OAM, BFD, NQA-RTP functions and reserve certain bandwidth for these functions. When these functions are not used, the reserved bandwidth is wasted. When the SRU hardware engine is disabled, the OAM, BFD, and NQA-RTP functions are unavailable and bandwidth reserved for these functions is allocated to a specific slot to improve the forwarding performance of the LPU in the slot. You can use this command to check the configured hardware engine status and the hardware engine configuration that has taken effect.

Example

# Display the hardware engine configuration.

<HUAWEI> display detect-engine configuration
  Current:  enable   
  Next   :  disable      
Table 3-28  Description of the display detect-engine configuration command output

Item

Description

Current

Hardware engine configuration that has taken effect.
  • enable: The hardware engine is enabled.
  • disable: The hardware engine is disabled.

Next

Configured hardware engine status, which will take effect after a restart.
  • enable: The hardware engine will be enabled after a restart.
  • disable: The hardware engine will be disabled after a restart.
Related Topics

display detect-engine version

Function

The display detect-engine version command displays information about the detection engine.

Format

display detect-engine version

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

This command is used to check information about the detection engine on the switch.

Example

# Display information about the detection engine.

<HUAWEI> display detect-engine version
 Current detect-engine version      : 0x10300006                                
 Current detect-engine status       : Inactive                                    
Table 3-29  Description of the display detect-engine version command output

Item

Description

Current detect-engine version

Software version running on the detection engine.

Current detect-engine status

Current status of the detection engine. The value can be:
  • Active: The detection engine is currently active.
  • Inactive: The detection engine is currently inactive.

display fabric-mode configuration

Function

The display fabric-mode configuration command displays the fabric mode.

NOTE:

Only the S9712 that uses EH1D2SRUDC00 and EH1D2SRUDC01 MPUs and the S7712 that uses ES1D2SRUH000 MPUs support this command.

Format

display fabric-mode configuration

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use this command to check the configured and currently used fabric mode.

Example

# Display the fabric mode.

<HUAWEI> display fabric-mode configuration
Chassis       Current Mode    Next Mode                                            
- - - - - - - - - - - - - - - - - - - - - - -                                   
 1            normal          normal    
Table 3-30  Description of the display fabric-mode configuration command output

Item

Description

Chassis

Chassis ID of a device. The chassis ID of a standalone device is 1.

Current Mode

Fabric mode that is used currently.

To set the fabric port, run the set fabric-mode turbo command.

Next Mode

Configured fabric mode, which will take effect after a restart.

Related Topics

display fan speed-adjust threshold minus

Function

The display fan speed-adjust threshold minus command displays the temperature thresholds for fan speed adjustment.

Format

display fan speed-adjust threshold minus [ slot slot-id ]

Parameters

Parameter

Description

Value

slot slot-id

Specifies a slot ID.

If this parameter is not specified, the threshold settings in all slots are displayed.

  • When CSS is not configured, the slot-id value depends on device hardware configuration.
  • In a CSS, the slot-id value is in format CSS ID/slot ID.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

This command displays the temperature thresholds for fan speed adjustment, including the default values and current values.

Example

# Display the temperature thresholds for fan speed adjustment.

<HUAWEI> display fan speed-adjust threshold minus 
-----------------------------------------------------------                     
 Slot     Default Range  Current Range  Speed Rate Adjusted                     
-----------------------------------------------------------                     
  2          56 - 60         56 - 60        30%-100%                            
  4          56 - 60         56 - 60        30%-100%                            
  5          56 - 60         56 - 60        30%-100%                            
  8          42 - 46         42 - 46        30%-100%                            
  9          56 - 60         56 - 60        30%-100%                            
  10         44 - 48         44 - 48        30%-100%                            
  11         46 - 50         46 - 50        30%-100%                            
  12         56 - 60         56 - 60        30%-100%                            
  14         52 - 56         52 - 56        30%-100%  
Table 3-31  Description of the display fan speed-adjust threshold minus command output

Item

Description

Slot

Slot ID.

Default Range

Default temperature thresholds, which change based on the PoE power load.

Current Range

Current temperature thresholds.

To set temperature thresholds, run the set fan speed-adjust threshold minus command. The new thresholds are the fixed temperature thresholds minus the configured value. After this command is executed, both the threshold for increasing the fan speed and the threshold for lowering the fan speed are reduced.

Speed Rate Adjusted

Fan speed adjustment range.

display load-distribution mode

Function

The display load-distribution mode command displays the load balancing mode on a card.

NOTE:

Only the X series cards support this command. Among X series cards, ES1D2C04HX2E, ET1D2C04HX2E, ES1D2H02QX2E, ET1D2H02QX2E, ES1D2C04HX2S, ET1D2C04HX2S, ES1D2H02QX2S, ET1D2H02QX2S cards do not support this command. The default load balancing mode of these cards is enhanced mode.

Format

display load-distribution mode slot slot-id

Parameters

Parameter

Description

Value

slot slot-id

Specifies a slot ID.

The value range depends on the device configuration.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display load-distribution mode command to check the load balancing mode configured on a card.

Example

# Display the load balancing mode on the card in slot 1.
<HUAWEI> system-view
[HUAWEI] display load-distribution mode slot 1
load-distribution mode:enhanced
Table 3-32  Description of the display load-distribution mode command output

Item

Description

load-distribution mode

Load balancing mode of a card.
  • enhanced: indicates the enhanced mode. In enhanced mode, the system identifies characteristic fields of packets (such as the MAC address, IP address, and TCP/UDP port) based on packet types (such as Layer 2, IPv4, IPv6, and MPLS), and then load balances traffic based on characteristic fields of packets.
  • normal: indicates the normal node. In normal mode, the system load balances traffic based only on inbound interfaces of packets.

To set the load balancing mode of a card, run the load-distribution mode command.

display osp status

Function

The display osp status command displays the status of X86 subcards on Open Service Platform (OSP) cards.

Format

display osp status

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

This command can display the status of X86 subcards on all OSP cards in the system.

Example

# Display the status of X86 subcards on OSP cards.

<HUAWEI> display osp status
-----------------------------------------------------------------------------                                                       
 Slot           Power          Status                                                                                
-----------------------------------------------------------------------------                                                       
 1/1            PowerOn        Startup                                                                               
----------------------------------------------------------------------------- 
Table 3-33  Description of the display osp status command output

Item

Description

Slot

Position of an X86 subcard. The value is in slot ID/subcard ID format, in which the subcard ID is fixed at 1.

Power

Power supply status of an X86 subcard:

  • PowerOn: The X86 subcard has been powered on.
  • PowerOff: The X86 subcard has been powered off.

Status

System status of an X86 subcard:

  • Startup: The X86 subcard has started.
  • Shutdown: The X86 subcard has been shut down.
  • Sleep: The X86 subcard is in sleeping state.
  • NA: The X86 subcard has failed.

display resource-assign configuration

Function

The display resource-assign configuration command displays the configuration of the resource allocation mode on an LPU.

NOTE:

Only the BC, ED, EE, EC, and X series LPUs support this command.

Format

display resource-assign configuration [ slot slot-id ]

Parameters

Parameter Description Value
slot slot-id

Specifies the slot ID of an LPU.

  • When CSS is not configured, the slot-id value depends on device hardware configuration.
  • In a CSS, the slot-id value is in format CSS ID/slot ID.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display resource-assign configuration command to check the configuration of the resource allocation mode on an LPU, including the current and next startup resource modes.

Example

# Display the resource allocation of all LPUs.

<HUAWEI> display resource-assign configuration
Resource assign status:                                                                                                             
Slot  Cur-Resmode     Next-Resmode    Cur-Aclmode          Next-Aclmode                                                             
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -                                                     
  1   enhanced-ipv4   enhanced-ipv4   dual-ipv4-ipv6       dual-ipv4-ipv6                                                           
  2   enhanced-ipv4   enhanced-ipv4   dual-ipv4-ipv6       dual-ipv4-ipv6                                                           
  3   enhanced-ipv4   enhanced-ipv4   dual-ipv4-ipv6       dual-ipv4-ipv6                                                           
  5   ipv4-ipv6-acl   ipv4-ipv6-acl   --                   --             
Table 3-34  Description of the display resource-assign configuration command output

Item

Description

Slot

Slot ID of the LPU.

Cur-Resmode

Entry Space resource mode used on the LPU.

Next-Resmode

Entry Space resource mode set through the assign resource-mode command.

Cur-Aclmode

Current ACL resource allocation mode used on the LPU. This field can be displayed only for X1E, X2E, and X2H LPUs.

Next-Aclmode

ACL resource allocation mode configured on the LPU using the assign acl-mode command. This field can be displayed only for X1E, X2E, and X2H LPUs.

display root-key configuration

Function

The display root-key configuration command displays information about the currently used root key.

Format

display root-key configuration

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

You can use the display root-key configuration command to check information about the currently used root key.

Example

# Display information about the currently used root key.

<HUAWEI> display root-key configuration
Master:
  Current root-key:  User-configured
  Next root-key:     System default
Table 3-35  Description of the display root-key configuration command output

Item

Specification

Master

Information about the root key of the MPU.

Current root-key

Information about the currently used root key:

  • User-configured: user-configured root key
  • System default: system default root key

Next root-key

Information about the root key used after the device restarts:

  • User-configured: user-configured root key
  • System default: system default root key

To set the root key, run the set root-key command.

Related Topics

display service-mode configuration

Function

The display service-mode configuration command displays the working mode of a card.

NOTE:

This command is supported only by X series cards.

Format

display service-mode configuration

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view the working mode of the cards, run the display service-mode configuration command.

Example

# Display the working mode of a card.
<HUAWEI> display service-mode configuration
Service mode status:                                                            
Slot                Service-mode                                                
-------------------------------------------------                               
1                   Enhanced
Table 3-36  Description of the display service-mode configuration command output

Item

Description

Service mode status

Working mode of the cards

To set the working mode, run the set service-mode command.

Slot

Slot id.

Service-mode

Working mode of the cards:
  • Normal
  • Enhanced
Related Topics

display slave default

Function

The display slave default command displays the default slot ID of the slave MPU used after the next startup.

Format

display slave default

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display slave default command to view the slot ID of the default slave MPU used after the next startup.

Example

# Display the slot ID of the default slave MPU used after the next startup.

<HUAWEI> display slave default
Info: Default slave slot is 5.
Table 3-37  Description of the display slave default command output

Item

Description

Info: Default slave slot is 5.

The slot ID of the standby MPU used after the next startup is 5.

To set the slot ID, run the slave default command.

Related Topics

display speed

Function

The display speed command displays the speed of the redirection from the switch to the serial port of a valid-added service card.

Format

display speed slot slot-id

Parameters

Parameter Description Value
slot slot-id

Specifies the slot ID of the value-added service card.

The value is an integer. Specify the slot ID for the value-added service card according to the actual configuration.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use this command to check the speed of the redirection from the switch to the serial port of a valid-added service card, and determine whether to change the speed.

Example

# Display the speed of the redirection from the switch to the serial port of a valid-added service card.

<HUAWEI> display speed slot 4
Info: Current cbus speed is 115200. 
Table 3-38  Description of the display speed command output

Item

Description

Info: Current cbus speed is 115200.

Speed of the redirection from the switch to the serial port of a valid-added service card.

To set the speed, run the set speed command.

display switchover state

Function

The display switchover state command displays information about active and standby switchover, which helps check whether the stack meets switchover requirements.

Format

display switchover state

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The standby MPU undergoes the batch backup state and real-time backup state before it enters the hot backup state. When performing active/standby switchover, ensure that the standby MPU is in the real-time backup state. Otherwise, the device may be restarted during the switchover.

Example

# Display information about active and standby switchover, which helps check whether the stack meets switchover requirements.

<HUAWEI> display switchover state
Slot 4 HA FSM State(master): realtime or routine backup.
Slot 5 HA FSM State(slave): receiving realtime or routine data. 
Table 3-39  Description of the display switchover state command output

Item

Description

HA FSM State(master)

Master MPU status:
  • waiting for the slave to be inserted: Only one MPU is installed and you need to install the standby MPU.

  • slave has been inserted: The standby MPU is installed but not started.

  • waiting batch backup request from slave: The master MPU is waiting for the batch backup request from the standby MPU.

  • realtime or routine backup: The master MPU is in real-time backup state.

  • data smooth: The master MPU is in data smoothing state.

HA FSM State(slave)

Standby MPU status:
  • ready: The standby MPU is started and ready for receiving the batch backup data.

  • receiving batch data: The standby MPU is receiving the batch backup data.

  • receiving realtime or routine data: The standby MPU is ready for receiving data in real time.

display system-resource-mode configuration

Function

The display system-resource-mode configuration command displays the resource allocation mode configured for LPUs.

NOTE:

Only the S7706 and S7712 support this command.

Format

display system-resource-mode configuration

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display system-resource-mode configuration command to check the current and next startup resource allocation modes of LPUs.

Example

# Display the resource allocation mode configured for LPUs.

<HUAWEI> display system-resource-mode configuration
Current:    dynamic
Next   :    static
Table 3-40  Description of the display system-resource-mode configuration command

Item

Description

Current

Currently used resource allocation mode:
  • dynamic: dynamic resource allocation
  • static: static resource allocation
To set the currently used resource allocation mode, run the assign system-resource-mode static command.

Next

Resource allocation mode that will be used after the next startup:
  • dynamic: dynamic resource allocation
  • static: static resource allocation

display snmp-agent trap feature-name basetrap all

Function

display snmp-agent trap feature-name basetrap all command displays the status of all traps for the BASETRAP module.

Format

display snmp-agent trap feature-name basetrap all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name basetrap all command to check the status of all traps for the BASETRAP module. You can use the snmp-agent trap enable feature-name basetrap command to enable the trap function of the BASETRAP module.

Prerequisites

SNMP has been enabled. For details, see snmp-agent.

Example

# Display all the traps of the BASETRAP module.

<HUAWEI>display snmp-agent trap feature-name basetrap all
------------------------------------------------------------------------------                                                      
Feature name: BASETRAP                                                                                                              
Trap number : 44                                                                                                                    
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwEntityRemove                  on                      on                                                                          
hwEntityInsert                  on                      on                                                                          
hwEntityUnstable                on                      on                                                                          
hwEntityUnstableResume          on                      on                                                                          
hwEntityReset                   on                      on                                                                          
hwEntityResetDone               on                      on                                                                          
hwEntityRegSuccess              on                      on                                                                          
hwEntityCommunicateError        on                      on                                                                          
hwEntityCommunicateResume       on                      on                                                                          
hwEntityLeaveMaster             on                      on                                                                          
hwEntityBecomeMaster            on                      on                                                                          
hwEntityCheckFail               on                      on                                                                          
hwEntityCheckResume             on                      on                                                                          
hwTempRisingAlarm               on                      on                                                                          
hwTempRisingResume              on                      on                                                                          
hwTempFallingAlarm              on                      on                                                                          
hwTempFallingResume             on                      on                                                                          
hwVoltRisingAlarm               on                      on                                                                          
hwVoltRisingResume              on                      on                                                                          
hwVoltFallingAlarm              on                      on                                                                          
hwVoltFallingResume             on                      on                                                                          
hwPowerOff                      on                      on                                                                          
hwPowerOn                       on                      on                                                                          
hwPowerMixed                    on                      on                                                                          
hwPowerMixedResume              on                      on                                                                          
hwCPUUtilizationRisingAlarm     on                      on                                                                          
hwCPUUtilizationResume          on                      on                                                                          
hwPortPhysicalDown              on                      on                                                                          
hwPortPhysicalUp                on                      on                                                                          
hwStorageUtilizationRisingAlarm                                                                                                     
                                on                      on                                                                          
hwStorageUtilizationResume      on                      on                                                                          
hwPowerRisingAlarm              on                      on                                                                          
hwPowerRisingResume             on                      on                                                                          
hwPowerInsufficiencyAlarm       on                      on                                                                          
hwPowerInsufficiencyResume      on                      on                                                                          
hwDeviceAbnormalRisingAlarm     on                      on                                                                          
hwEntityInvalid                 on                      on                                                                          
hwEntityResume                  on                      on                                                                          
hwPortPhysicalPortTypeChange    on                      on                                                                          
hwPortPhysicalEthHalfDuplexAlarm                                                                                                    
                                on                      on                                                                          
hwPortPhysicalEthFullDuplexClear                                                                                                    
                                on                      on                                                                          
hwOpticalPowerAbnormal          on                      on                                                                          
hwOpticalPowerResume            on                      on                                                                          
hwEntityHeartbeatTrap           on                      on
Table 3-41  Description of the display snmp-agent trap feature-name basetrap all command output

Item

Specification

Feature name

Name of the module that the trap belongs to.

Trap number

Number of traps.

Trap name

Trap name of the module:

  • hwcpuutilizationresume: CPU usage of an entity falls below the alarm threshold.

  • hwcpuutilizationrisingalarm: CPU usage of an entity exceeds the alarm threshold.

  • hwdeviceabnormalrisingalarm: The device becomes abnormal.

  • hwentitybecomemaster: An entity becomes the master.

  • hwentitycheckfail: An entity fails self-check.

  • hwentitycheckresume: An entity succeeds in self-check.

  • hwentitycommunicateerror: Channel detection fails.

  • hwentitycommunicateresume: Channel detection succeeds.

  • hwentityheartbeattrap: The device sends a heartbeat notification.

  • hwentityinsert: An entity is installed.

  • hwentityinvalid: An entity is faulty.

  • hwentityleavemaster: An entity exits from the master state.

  • hwentityregsuccess: An entity is registered successfully.

  • hwentityremove: An entity is removed.

  • hwentityreset: An entity is reset.

  • hwentityresetdone: An entity finishes reset.

  • hwentityresume: An entity recovers from a fault.

  • hwentityunstable: An entity is not securely installed.

  • hwentityunstableresume: An entity is securely installed.

  • hwopticalpowerabnormal: The optical module power is out of the normal range.

  • hwopticalpowerresume: The optical module power restores to the normal range.

  • hwportphysicaldown: A physical port goes Down.

  • hwportphysicalethfullduplexclear: The port duplex mode changes to half-duplex.

  • hwportphysicalethhalfduplexalarm: The port duplex mode is half-duplex.

  • hwportphysicalporttypechange: The port type changes.

  • hwportphysicalup: A physical port goes Up.

  • hwpowerinsufficiencyalarm: The system remaining power is lower than the board's rated power.

  • hwpowerinsufficiencyresume: The system remaining power becomes higher than the board's rated power.

  • hwpowermixed: The mode of a power module differs from that of other power modules.

  • hwpowermixedresume: The mode of a power module is the same as that of other power modules.

  • hwpoweroff: The power module has a power failure.

  • hwpoweron: The power module recovers from a power failure.

  • hwpowerrisingalarm: The power exceeds the threshold.

  • hwpowerrisingalarm: The power falls below the threshold.

  • hwstorageutilizationresume: The storage device usage falls below the alarm threshold.

  • hwstorageutilizationrisingalarm: The storage device usage exceeds the alarm threshold.

  • hwtempfallingalarm: The temperature falls below the lower alarm threshold.

  • hwtempfallingresume: The temperature exceeds the lower alarm threshold.

  • hwtemprisingalarm: The temperature exceeds the upper alarm threshold.

  • hwtemprisingresume: The temperature falls below the upper alarm threshold.

  • hwvoltfallingalarm: The voltage falls below the lower alarm threshold.

  • hwvoltfallingresume: The voltage exceeds the lower alarm threshold.

  • hwvoltrisingalarm: The voltage exceeds the upper alarm threshold.

  • hwvoltrisingresume: The voltage falls below the upper alarm threshold.

Default switch status

Default status of the trap function:
  • on: The trap function is enabled.

  • off: The trap function is disabled.

Current switch status

Status of the trap function:

  • on: The trap function is enabled.

  • off: The trap function is disabled.

display snmp-agent trap feature-name entityexttrap all

Function

The display snmp-agent trap feature-name entityexttrap all command displays the status of all traps of the ENTITYEXTTRAP module.

Format

display snmp-agent trap feature-name entityexttrap all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the trap function of a specified feature is enabled, to check the status of all traps of the ENTITYEXTTRAP module, run the display snmp-agent trap feature-name entityexttrap all command. To enable the trap function for the ENTITYEXTTRAP module, run the snmp-agent trap enable feature-name entityexttrap command.

Prerequisites

SNMP has been enabled using the snmp-agent command.

Example

# Display the status of all traps of the ENTITYEXTTRAP module.

<HUAWEI> display snmp-agent trap feature-name entityexttrap all
------------------------------------------------------------------------------                                                      
Feature name: ENTITYEXTTRAP                                                                                                         
Trap number : 11                                                                                                                    
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwBoardSoftwareVersionIncompatible                                                                                                  
                                on                      on                                                                          
hwEntityInputRateThresholdAlarm                                                                                                     
                                on                      on                                                                          
hwEntityInputRateThresholdAlarmResume                                                                                               
                                on                      on                                                                          
hwEntityOutputRateThresholdAlarm                                                                                                    
                                on                      on                                                                          
hwEntityOutputRateThresholdAlarmResume                                                                                              
                                on                      on                                                                          
hwEntityHigErrorPacketThresholdAlarm                                                                                                
                                on                      on                                                                          
hwEntityHigStateChangeNotify    on                      on                                                                          
hwEntityHigStateDownNotify      on                      on                                                                          
hwEntityPositionMismatchNotify  on                      on                                                                          
hwEntityRuntPacketCheckNotify   on                      on                                                                          
hwBoardDropRuntPacketNotify     on                      on   
Table 3-42  Description of the display snmp-agent trap feature-name entityexttrap all command output

Item

Description

Feature name

Name of the module to which a trap belongs.

Trap number

Number of traps.

Trap name

Names of a trap. Traps of the ENTITYEXTTRAP module include:

  • hwBoardSoftwareVersionIncompatible: The card software is incompatible.

  • hwEntityInputRateThresholdAlarm: The bandwidth usage of incoming traffic exceeds the threshold.

  • hwEntityInputRateThresholdAlarmResume: The bandwidth usage of incoming traffic falls below the threshold.

  • hwEntityOutputRateThresholdAlarm: The bandwidth usage of outgoing traffic exceeds the threshold.

  • hwEntityOutputRateThresholdAlarmResume: The bandwidth usage of outgoing traffic falls below the threshold.

  • hwEntityHigErrorPacketThresholdAlarm: Incoming packets are discarded because an error is detected during physical layer detection.

  • hwEntityHigStateChangeNotify: The Higig port status changes.

  • hwEntityHigStateDownNotify: The Higig port status remains Down.

  • hwEntityPositionMismatchNotify: The operating temperature and fan noise of the card in slot 6 are higher than those of other slots.

  • hwEntityRuntPacketCheckNotify: The number of packet fault recoveries detected on a port exceeds 5000.

  • hwBoardDropRuntPacketNotify: Some packets of 64 to 86 bytes or 145 to 193 bytes are discarded on a card.

Default switch status

Default status of the trap function:
  • on: indicates that the trap function is enabled by default.

  • off: indicates that the trap function is disabled by default.

Current switch status

Trap function status:

  • on: The trap function is enabled.

  • off: The trap function is disabled.

display snmp-agent trap feature-name entitymib all

Function

display snmp-agent trap feature-name entitymib all command displays the status of all traps on the ENTITYMIB module.

Format

display snmp-agent trap feature-name entitymib all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name entitymib all command to check the status of all traps of ENTITYMIB. You can use the snmp-agent trap enable feature-name entitymib command to enable the trap function of ENTITYMIB.

Prerequisites

SNMP has been enabled. For details, see snmp-agent.

Example

# Display all the traps of the ENTITYMIB module.

<HUAWEI>display snmp-agent trap feature-name entitymib all
------------------------------------------------------------------------------                                                      
Feature name: ENTITYMIB                                                                                                             
Trap number : 1                                                                                                                     
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
entConfigChange                 on                      on
Table 3-43  Description of the display snmp-agent trap feature-name entitymib all command output

Item

Specification

Feature name

Name of the module that the trap belongs to.

Trap number

Number of traps.

Trap name

Trap name. Traps of the ENTITYMIB module include:

  • entConfigChange: The entity MIB changes.

Default switch status

Default status of the trap function:
  • on: indicates that the trap function is enabled by default.

  • off: indicates that the trap function is disabled by default.

Current switch status

Status of the trap function:

  • on: indicates that the trap function is enabled.

  • off: indicates that the trap function is disabled.

display snmp-agent trap feature-name entitytrap all

Function

display snmp-agent trap feature-name entitytrap all command displays the status of all traps on the ENTITYTRAP module.

Format

display snmp-agent trap feature-name entitytrap all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name entitytrap all command to check the status of all traps of ENTITYTRAP. You can use the snmp-agent trap enable feature-name entitytrap command to enable the trap function of ENTITYTRAP.

Prerequisites

SNMP has been enabled. For details, see snmp-agent.

Example

# Display all the traps of the ENTITYTRAP module.

<HUAWEI>display snmp-agent trap feature-name entitytrap all
------------------------------------------------------------------------------                                                      
Feature name: ENTITYTRAP                    
Trap number : 79        
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status 
hwChassisRemove                 on                      on                  
hwChassisInsert                 on                      on                  
hwChassisFail                   on                      on                  
hwChassisFailResume             on                      on                  
hwChassisInvalid                on                      on                  
hwChassisInvalidResume          on                      on                  
hwChassisLeaveMaster            on                      on                  
hwChassisBecomeMaster           on                      on                  
hwBoardRemove                   on                      on                  
hwBoardInsert                   on                      on                  
hwBoardFail                     on                      on                  
hwBoardFailResume               on                      on                  
hwBoardInvalid                  on                      on                  
hwBoardInvalidResume            on                      on                  
hwBoardLeaveMaster              on                      on                  
hwBoardBecomeMaster             on                      on                  
hwCardRemove                    on                      on                  
hwCardInsert                    on                      on                  
hwCardFail                      on                      on                  
hwCardFailResume                on                      on                  
hwCardInvalid                   on                      on                  
hwCardInvalidResume             on                      on                  
hwOpticalRemove                 on                      on                  
hwOpticalInsert                 on                      on                  
hwOpticalFail                   on                      on                  
hwOpticalFailResume             on                      on                  
hwOpticalInvalid                on                      on                  
hwOpticalInvalidResume          on                      on                  
hwOpticalTunableNotMatch        off                     on                  
hwOpticalTunableNotMatchResume  off                     on                  
hwPowerRemove                   on                      on                  
hwPowerInsert                   on                      on                  
hwPowerFail                     on                      on                  
hwPowerFailResume               on                      on                  
hwPowerInvalid                  on                      on                  
hwPowerInvalidResume            on                      on                  
hwPowerUnusable                 on                      on                  
hwPowerUnusableResume           on                      on                  
hwFanRemove                     on                      on                  
hwFanInsert                     on                      on                  
hwFanFail                       on                      on                  
hwFanFailResume                 on                      on                  
hwFanInvalid                    on                      on                  
hwFanInvalidResume              on                      on                  
hwFanUnusable                   on                      on                  
hwFanUnusableResume             on                      on                  
hwLCDRemove                     on                      on                  
hwLCDInsert                     on                      on                  
hwLCDInvalid                    on                      on                  
hwLCDInvalidResume              on                      on                  
hwLCDUnusable                   on                      on                  
hwLCDUnusableResume             on                      on                  
hwCMURemove                     on                      on                  
hwCMUInsert                     on                      on                  
hwCMUInvalid                    on                      on                  
hwCMUInvalidResume              on                      on                  
hwCMUUnusable                   on                      on                  
hwCMUUnusableResume             on                      on                  
hwCommunicateError              on                      on                  
hwCommunicateResume             on                      on                  
hwHumidityAlarm                 on                      on                  
hwHumidityResume                on                      on                  
hwVoltAlarm                     on                      on                  
hwVoltResume                    on                      on                  
hwGateAlarm                     on                      on                  
hwGateResume                    on                      on                  
hwFogAlarm                      on                      on                  
hwFogResume                     on                      on                  
hwUnstableAlarm                 on                      on                  
hwUnstableResume                on                      on                  
hwBrdTempAlarm                  on                      on                  
hwBrdTempResume                 on                      on                  
hwCPUUtilizationRising          on                      on                  
hwCPUUtilizationResume          on                      on                  
hwMemUtilizationRising          on                      on                  
hwMemUtilizationResume          on                      on                  
hwBatteryFull                   on                      on                  
hwOpticalMayInvalid             on                      on                  
hwOpticalMayInvalidResume       on                      on     
Table 3-44  Description of the display snmp-agent trap feature-name entitytrap all command output

Item

Specification

Feature name

Name of the module that the trap belongs to.

Trap number

Number of traps.

Trap name

Trap name.

Default switch status

Default status of the trap function:
  • on: indicates that the trap function is enabled by default.

  • off: indicates that the trap function is disabled by default.

Current switch status

Status of the trap function:

  • on: indicates that the trap function is enabled.

  • off: indicates that the trap function is disabled.

display snmp-agent trap feature-name swithsrvres all

Function

display snmp-agent trap feature-name swithsrvres all command displays the status of all traps on the SWITHSRVRES module.

Format

display snmp-agent trap feature-name swithsrvres all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name swithsrvres all command to check the status of all traps of SWITHSRVRES. You can use the snmp-agent trap enable feature-name swithsrvres command to enable the trap function of SWITHSRVRES.

Prerequisites

SNMP has been enabled. For details, see snmp-agent.

Example

# Display all the traps of the SWITHSRVRES module.

<HUAWEI>display snmp-agent trap feature-name swithsrvres all
------------------------------------------------------------------------------                                                      
Feature name: SWITHSRVRES                                                                                                           
Trap number : 3                                                                                                                     
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwSrvServiceExceedThreshould    on                      on                                                                          
hwSrvServiceExceedThreshouldResume                                                                                                  
                                on                      on                                                                          
hwSrvServiceConfigFailed        on                      on
Table 3-45  Description of the display snmp-agent trap feature-name swithsrvres all command output

Item

Specification

Feature name

Name of the module that the trap belongs to.

Trap number

Number of traps.

Trap name

Trap name. Traps of the SWITHSRVRES module include:

  • hwSrvServiceExceedThreshould: The service configurations exceed the recommended threshold.

  • hwSrvServiceExceedThreshouldResume: The service configurations fall below the recommended threshold.

  • hwSrvServiceConfigFailed: The service configurations fail.

Default switch status

Default status of the trap function:
  • on: indicates that the trap function is enabled by default.

  • off: indicates that the trap function is disabled by default.

Current switch status

Status of the trap function:

  • on: indicates that the trap function is enabled.

  • off: indicates that the trap function is disabled.

display snmp-agent trap feature-name system all

Function

The display snmp-agent trap feature-name system all command displays the status of all the traps of the SYSTEM module.

Format

display snmp-agent trap feature-name system all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display snmp-agent trap feature-name system all command to check status of all SYSTEM traps. This status can be configured using the snmp-agent trap enable feature-name system command.

Example

# Display the status of all the traps of the SYSTEM module.

<HUAWEI> display snmp-agent trap feature-name system all
------------------------------------------------------------------------------                                                      
Feature name: SYSTEM                                                                                                                
Trap number : 8                                                                                                                     
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwSysReloadNotification         off                     off                                                                         
hwSysClockChangedNotification   off                     off                                                                         
hwPatchErrorTrap                off                     off                                                                         
hwPatchActiveOverTimeTrap       off                     off                                                                         
hwPatchMalfunctionComebackTrap  off                     off                                                                         
hwSysSlaveSwitchFailNotification                                                                                                    
                                off                     off                                                                         
hwSysSlaveSwitchSuccessNotification                                                                                                 
                                off                     off                                                                         
hwSysIssuNotification           off                     off
Table 3-46  Description of the display snmp-agent trap feature-name system all command output

Item

Description

Feature name

Name of the module where the trap is generated.

Trap number

Number of traps.

Trap name

Name of a trap.

Default switch status

Default status of a trap:

  • on: The trap function is enabled.
  • off: The trap function is disabled.

Current switch status

Current status of a trap:

  • on: The trap function is enabled.
  • off: The trap function is disabled.

This status can be configured using the snmp-agent trap enable feature-name system command.

display wavelength-map

Function

The display wavelength-map command displays the mapping between the wavelength channel, wavelength, and frequency.

Format

display wavelength-map

Parameters

None

Views

System view

Default Level

1: Monitoring level

Usage Guidelines

Before using the wavelength-channel command to add an optical module to a specific wavelength channel, run the display wavelength-map command to view the mapping between the wavelength channel, wavelength, and frequency.

Example

# Display the mapping between the wavelength channel, wavelength, and frequency.

<HUAWEI> system-view
[HUAWEI] display wavelength-map
--------------------------------------------                                    
Channel     Frequency(THz)   Wavelength(nm)                                     
--------------------------------------------                                    
1           192.10           1560.606                                           
2           192.15           1560.200                                           
3           192.20           1559.794                                           
4           192.25           1559.389                                           
5           192.30           1558.983                                           
6           192.35           1558.578                                           
7           192.40           1558.173                                           
8           192.45           1557.768                                           
9           192.50           1557.363                                           
10          192.55           1556.959                                           
11          192.60           1556.555                                           
12          192.65           1556.151                                           
13          192.70           1555.747                                           
14          192.75           1555.344                                           
15          192.80           1554.940                                           
16          192.85           1554.537                                           
17          192.90           1554.134                                           
18          192.95           1553.731                                           
19          193.00           1553.329                                           
20          193.05           1552.927                                           
21          193.10           1552.524                                           
22          193.15           1552.122                                           
23          193.20           1551.721                                           
24          193.25           1551.319                                           
25          193.30           1550.918                                           
26          193.35           1550.517                                           
27          193.40           1550.116                                           
28          193.45           1549.715                                           
29          193.50           1549.315                                           
30          193.55           1548.915                                           
31          193.60           1548.515                                           
32          193.65           1548.115                                           
33          193.70           1547.715                                           
34          193.75           1547.316                                           
35          193.80           1546.917                                           
36          193.85           1546.518                                           
37          193.90           1546.119                                           
38          193.95           1545.720                                           
39          194.00           1545.322                                           
40          194.05           1544.924                                           
41          194.10           1544.526                                           
42          194.15           1544.128                                           
43          194.20           1543.730                                           
44          194.25           1543.333                                           
45          194.30           1542.936                                           
46          194.35           1542.539                                           
47          194.40           1542.142                                           
48          194.45           1541.746                                           
49          194.50           1541.349                                           
50          194.55           1540.953                                           
51          194.60           1540.557                                           
52          194.65           1540.162                                           
53          194.70           1539.766                                           
54          194.75           1539.371                                           
55          194.80           1538.976                                           
56          194.85           1538.581                                           
57          194.90           1538.186                                           
58          194.95           1537.792                                           
59          195.00           1537.397                                           
60          195.05           1537.003                                           
61          195.10           1536.609                                           
62          195.15           1536.216                                           
63          195.20           1535.822                                           
64          195.25           1535.429                                           
65          195.30           1535.036                                           
66          195.35           1534.643                                           
67          195.40           1534.250                                           
68          195.45           1533.858                                           
69          195.50           1533.465                                           
70          195.55           1533.073                                           
71          195.60           1532.681                                           
72          195.65           1532.290                                           
73          195.70           1531.898                                           
74          195.75           1531.507                                           
75          195.80           1531.116                                           
76          195.85           1530.725                                           
77          195.90           1530.334                                           
78          195.95           1529.944                                           
79          196.00           1529.553                                           
80          196.05           1529.163                                           
--------------------------------------------
Table 3-47  Description of the display wavelength-map command output

Item

Description

Channel

Channel ID.

Frequency(THz)

Frequency, in THz.

Wavelength(nm)

Wavelength, in nm.

Related Topics

detect-engine enable

Function

The detect-engine enable command enables the SRU hardware engine.

The undo detect-engine enable command disables the SRU hardware engine.

By default, the SRU hardware engine is enabled.

NOTE:
  • Only the S9706 and S9712 support this command.

  • This command is valid only when the EH1D2SRUDC00/EH1D2SRUDC01 is installed on the switch and has been registered.

Format

detect-engine enable

undo detect-engine enable

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The EH1D2SRUDC00 and EH1D2SRUDC01 integrate the OAM, BFD, NQA-RTP functions and reserve certain bandwidth for these functions. When these functions are not used, the reserved bandwidth is wasted. When you run the undo detect-engine enable command to disable the SRU hardware engine, the OAM, BFD, and NQA-RTP functions are unavailable and bandwidth reserved for these functions is allocated to a specific slot to improve the forwarding performance of the LPU in the slot.

Configuration Impact

On the S9712, the released bandwidth is allocated to slot 9 after the SRU hardware engine is disabled. On the S9706, the released bandwidth is allocated to slot 5.

Precautions

  • This command is valid only when the EH1D2SRUDC00/EH1D2SRUDC01 is installed on the switch and has been registered.
  • The configuration takes effect after the switch restarts.
  • When two SRUs of the switch have different hardware engine configuration, the slave SRU synchronizes the configuration with the master SRU and resets automatically.

Example

# Disable the SRU hardware engine.
<HUAWEI> system-view
[HUAWEI] undo detect-engine enable
Warning: This command will take effect only after rebooting the system. Performa
nce of some features can not be used after rebooting, such as oam, bfd, nqa-rtp, etc
. Continue[Y/N]: y
Info: The detect-engine has been disabled successfully.

load-distribution enhanced ip-field

Function

The load-distribution enhanced ip-field command configures the transport-layer port number as a load balancing factor for the Higig-Trunk on the MPU, SFU, and X series cards on which the load balancing mode of a Higig-Trunk is enhanced mode to perform load balancing.

The undo load-distribution enhanced ip-field command deletes a specified load balancing factor for a Higig-Trunk in enhanced load balancing mode on the MPU, SFU, and X series cards on which the load balancing mode of a Higig-Trunk is enhanced mode.

By default, the load balancing factors for a Higig-Trunk to perform load balancing contain the transport-layer source and destination port numbers of packets on the MPU, SFU, and X series cards on which the load balancing mode of a Higig-Trunk is enhanced mode.

Format

load-distribution enhanced ip-field [ l4-sport | l4-dport ]*

undo load-distribution enhanced ip-field [ l4-sport | l4-dport ]*

Parameters

Parameter

Description

Value

l4-sport Performs load balancing based on the transport-layer source port number.

-

l4-dport Performs load balancing based on the transport-layer destination port number.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When two cards on a switch communicate, their connected interfaces automatically form a Higig-Trunk. If the Higig-Trunk does not evenly load balance traffic, packets exchanged between the cards may be discarded. When the X series cards function as VXLAN access-side cards and the switch encapsulates received packets, VXLAN packets in the same tunnel have the same source IP address, source MAC address, destination IP address, and destination MAC address, and only their transport-layer source port numbers are changed. To prevent a Higig-Trunk on an MPU or SFU from unevenly load balancing inter-card VXLAN traffic, you need to configure the transport-layer source port number as a load balancing factor for the Higig-Trunk on the MPU or SFU to perform load balancing.

Precautions

  • This configuration takes effect for MPUs, SFUs, and the X series cards on which the load balancing mode of a Higig-Trunk is enhanced mode. For details on how to configure enhanced load balancing mode for a Higig-Trunk on the X series cards, see the load-distribution mode command.

  • After the system software of a switch is upgraded from a version earlier than V200R011C10 to V200R011C10 or a later version, the load balancing factors for a Higig-Trunk on a card in enhanced load balancing mode to perform load balancing do not contain the transport-layer source and destination port numbers of packets by default on the MPU, SFU, and X series cards on which the load balancing mode of a Higig-Trunk is enhanced mode.

Example

# Set the transport-layer source port number as a load balancing factor for the Higig-Trunk on the MPU or SFU to perform load balancing.
<HUAWEI> system-view
[HUAWEI] load-distribution enhanced ip-field l4-sport

load-distribution mode

Function

The load-distribution mode command sets the load balancing mode of Higig-Trunk on a card.

The undo load-distribution mode command restores the default load balancing mode of Higig-Trunk on a card.

By default, the load balancing mode of the ES1D2X48SX2S and ET1D2X48SX2S cards is enhanced mode, while that of other cards is normal mode. The load balancing mode of the following switches is enhanced mode after the X2E, X2H, or X2S card is installed:
  • S7703 and S9703
  • switch that has SRUA or SRUB installed
NOTE:

Only the X series cards support this command. Among X series cards, ES1D2C04HX2E, ET1D2C04HX2E, ES1D2H02QX2E, ET1D2H02QX2E, ES1D2C04HX2S, ET1D2C04HX2S, ES1D2H02QX2S, ET1D2H02QX2S cards do not support this command. The default load balancing mode of these cards is enhanced mode.

Format

load-distribution mode slot slot-id { normal | enhanced }

undo load-distribution mode slot slot-id

Parameters

Parameter

Description

Value

slot slot-id

Specifies a slot ID.

The value range depends on the device configuration.
normal Indicates the normal load balancing mode.

-

enhanced Indicates the enhanced load balancing mode.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When cards of the device are communicating, their interconnected interfaces will automatically form a Higig-Trunk. If traffic load is not evenly balanced among interfaces in the Higig-Trunk, packets transmitted between cards may be lost. To address this problem, run the load-distribution mode command to set the load balancing mode of Higig-Trunk on a card.

In the normal mode, traffic is load balanced based only on inbound interfaces of packets. In the enhanced mode, the system identifies characteristic fields of packets (such as the MAC address, IP address,) based on packet types (such as Layer 2, IPv4, IPv6, and MPLS), and then implements load balancing based on characteristic fields of packets. If the normal mode is used and traffic cannot be evenly load balanced, you can use this command to change the load balancing mode to enhanced mode.

NOTE:

If a faulty card of a switch is replaced by another card and then is installed into the switch again after recovering and the two cards have different default load balancing modes, the load balancing mode configured on the switch is restored to the default mode For example, the load balancing mode of card A defaults to normal mode and is configured to enhanced mode on a switch. Because card A is faulty, it is removed and replaced by card B whose default load balancing mode is enhanced mode. After card B is installed into the switch, its load balancing mode is enhanced mode. After card A recovers, it replaces card B and is installed into the switch again, the configured enhanced mode is cleared and the default normal load balancing mode is restored.

Example

# Set the load balancing mode of the card in slot 1 to enhanced mode.
<HUAWEI> system-view
[HUAWEI] load-distribution mode slot 1 enhanced

power

Function

The power on command powers on a specified board.

The power off command powers off a specified board.

Format

power on slot slot-id

power off slot slot-id

Parameters

Parameter Description Value
slot slot-id

Specifies the slot ID of a board.

If a CSS is not set up, the slot-id value is an integer. Set the value according to the device configuration.

If a CSS is set up, the slot-id value is in the format of CSS ID/slot ID.

Views

All views

Default Level

3: Management level

Usage Guidelines

When services are idle on the board, run the power off command to power off the board without affecting services. This ensures stable system operation and saves energy.

NOTE:

The power off command cannot power off the master MPU.

Example

# Power off the board in slot 1.

<HUAWEI> power off slot 1
Warning: Confirm to power off slot 1? [Y/N]:y
Info: Slot 1 is powered off successfully.
Related Topics

reset cpu-usage record

Function

The reset cpu-usage record command clears CPU usage records.

Format

reset cpu-usage record [ slot slot-id | slave | all ]

Parameters

Parameter Description Value
slot slot-id

Specifies the slot ID.

Set the value according to the device configuration.

slave

Clears CPU usage records on the slave MPU.

-

all

Clears CPU usage records on all boards

-

Views

System view, User view

Default Level

3: Management level

Usage Guidelines

If the slot slot-id or slave parameter is not specified, CPU usage records of the master MPU is cleared.

Example

# Clear CPU usage records of the master MPU.

<HUAWEI> system-view
[HUAWEI] reset cpu-usage record
Waiting for clearing . . . Done

reset osp

Function

The reset osp command resets the X86 subcard on an OSP card.

Format

reset osp slot-id

Parameters

Parameter

Description

Value

slot-id

Specifies the position of an X86 subcard.

  • In a CSS, the value is in CSS ID/slot ID/subcard ID format.
  • On a stand-alone switch, the value is in slot ID/subcard ID format.

The value must be set according to the device configuration. The subcard ID is fixed at 1.

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When the X86 subcard on an OSP card fails to run properly, run the reset osp command to reset the X86 subcard.

Prerequisites

The X86 subcard has started.

Precautions

If no OSP card is installed on the switch, the system displays null when you run this command.

Example

# Reset the X86 subcard on the OSP card in slot 5.

<HUAWEI> reset osp 5/1
Warning: Confirm to reset osp 5/1 ? [Y/N]:y    
Info: Reset osp[5/1] success.
Related Topics

reset slot

Function

The reset slot command resets a specified card.

Format

reset slot slot-id [ all | master ]

Parameters

Parameter Description Value
slot-id

Specifies the slot ID of the card that needs to be reset.

The value must be set according to the device configuration.

all

This keyword is displayed in the command if slot-id specifies an ACU2, ET1D2IPS0S00, ET1D2FW00S00, ET1D2FW00S01, and ET1D2FW00S02 card. If you specify this keyword, this command resets the entire card.

NOTE:

An ACU2, ET1D2IPS0S00, ET1D2FW00S00, ET1D2FW00S01, and ET1D2FW00S02 card has two CPUs: one for the value-added service and one for the switching service. If you specify all, both the two CPUs are reset.

-
master

This keyword is displayed in the command if slot-id specifies an ACU2, ET1D2IPS0S00, ET1D2FW00S00, ET1D2FW00S01, and ET1D2FW00S02 card. If you specify this keyword, this command resets the CPU for the value-added service.

-

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can reset a specified card of the device. Resetting a card will interrupt services on this card, but the configuration of this card still exists.

Precautions

Before commands have been executed, if a master/slave switchover occurs because the reset slot command is used to reset the MPU, you need to execute the commands that have not been executed on the new MPU again after the standby switch becomes the new master switch.

Example

# Reset the card in slot 1.

<HUAWEI> reset slot 1
Warning: Confirm to reset slot 1? [Y/N]:y
Info: The board 1 is reset successfully.

set cpu-usage threshold

Function

The set cpu-usage threshold command sets the CPU usage alarm threshold and CPU usage alarm recovery threshold.

The undo set cpu-usage threshold command restores the default CPU usage alarm threshold and CPU usage alarm recovery threshold.

By default, the CPU usage alarm threshold is 95% and the CPU usage alarm recovery threshold is 80%.
  • When the CPU usage alarm threshold is lower than 60%, the default CPU usage alarm recovery threshold is 1% lower than the CPU usage alarm threshold.
  • When the CPU usage alarm threshold is higher than or equal to 60%, the default CPU usage alarm recovery threshold is 5% lower than the CPU usage alarm threshold.

Format

set cpu-usage threshold threshold-value [ restore restore-threshold-value ] [ slot slot-id ]

undo set cpu-usage threshold [ threshold-value [ restore [ restore-threshold-value ] ] ] [ slot slot-id ]

Parameters

Parameter Description Value
threshold threshold-value

Specifies the CPU usage alarm threshold.

The value is an integer that ranges from 2 to 100. The default value is 95.

restore restore-threshold-value

Specifies the CPU usage alarm recovery threshold.

The value is an integer that ranges from 1 to threshold-value-1. The default value is 80.

slot slot-id

Specifies the CPU usage threshold of the LPU in a specified slot.

The value must be set according to the device configuration.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can use the set cpu-usage threshold command to set the CPU usage alarm threshold and CPU usage alarm recovery threshold. When CPU usage exceeds the alarm threshold, the system logs the event and generates an alarm. By viewing log information, you can learn about CPU usage. When CPU usage falls within the recovery threshold, the system generates a clear alarm.

If the slot slot-id parameter is not specified, the CPU usage threshold of the MPU is set.

Precautions

Default CPU usage alarm threshold and CPU usage alarm recovery threshold are recommended. If the CPU usage alarm threshold and CPU usage alarm recovery threshold are set too small, the system frequently generates alarms. If the CPU usage alarm threshold and CPU usage alarm recovery threshold are set too large, you cannot learn about CPU usage in a timely manner.

Example

# Set the CPU usage alarm threshold of the MPU to 85%.

<HUAWEI> system-view
[HUAWEI] set cpu-usage threshold 85

set fabric-mode turbo

Function

The set fabric-mode turbo command sets the fabric mode of the switch to extended mode.

The undo set fabric-mode turbo command restores the common fabric mode.

By default, the S7712 chassis with SWC02BAKG000 or SWC02BAKR000 backplane uses the common fabric mode, and other S7712 chassis models use the extended fabric mode. For the S9712, the common fabric mode is used by default.

NOTE:

Only the S9712 that uses EH1D2SRUDC00 and EH1D2SRUDC01 MPUs and the S7712 that uses ES1D2SRUH000 MPUs support this command.

Format

set fabric-mode turbo [ all | chassis chassis-id ]

undo set fabric-mode turbo [ all | chassis chassis-id ]

Parameters

Parameter

Description

Value

all

Sets the fabric mode for all devices in a CSS or a standalone device.

-
chassis chassis-id

Sets the fabric mode of a specified device.

The value is 1 or 2. If the device is not in a CSS, the value is fixed at 1.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The actual forwarding capability of an LPU depends on the bandwidth resources (Higig) allocated by the SRU. An LPU can forward data at line speed only when it has sufficient bandwidth resources. An SRU provides limited bandwidth resources. In common fabric mode, the SRU allocates equal bandwidth resources to each LPU. The allocated bandwidth resources are sufficient for line-speed forwarding on most LPUs but cannot support line-speed forwarding on some high-performance LPUs. When these high-performance LPUs cannot realize line-speed forwarding, their forwarding capabilities are wasted.

The switch supports extended fabric mode of the SRU. In this mode, LPUs in slot 6 and slot 7 can obtain more bandwidth resources to ensure line-speed forwarding.

In common fabric mode, the following LPUs cannot realize line-speed forwarding:
  • EH1D2X12SSA0 (S9712)
  • EH1D2L08QFC0 (S9712)
  • EH1D2X08SED4/EH1D2X08SED5 (S9712)
  • EH1D2X40SFC0 (S9712)
  • EH1D2X16SFC0 (S9712)
  • EH1D2X32SSC0 (S9712)
  • EH1D2C02FEE0 (S9712)
  • EH1D2X48SEC0 (S9712)
  • X2E series (S7712, S9712)
  • X2H series (S7712, S9712)
  • X2S series (S7712, S9712)
  • ES0D0X12SA00 (S7712)
  • ES1D2X16SFC0 (S7712)
  • ES1D2X40SFC0 (S7712)
  • ES1D2X32SSC0 (S7712)
  • ES1D2X08SED4 (S7712)
  • ES1D2C02FEE0 (S7712)

Precautions

  • In extended fabric mode, bandwidth allocated to slots 1, 2, 11, and 12 is reduced. When EH1D2X16SFC0/ES1D2X16SFC0 LPU are installed in these slots, they cannot realize line-speed forwarding.

  • The EH1D2X40SFC0/ES1D2X40SFC0 LPU cannot realize line-speed forwarding even in extended fabric mode.
  • The configuration takes effect after the switch restarts.

Example

# Set the fabric mode of the switch to extended mode.
<HUAWEI> system-view
[HUAWEI] set fabric-mode turbo
Warning: This command will take effect only after rebooting the system. Continue?[Y/N]: y
Info: The fabric mode has been set to turbo successfully.

set fan speed-adjust threshold minus

Function

The set fan speed-adjust threshold minus command adjusts the temperature thresholds for fan speed adjustment.

The undo set fan speed-adjust threshold minus command restores the default temperature thresholds for fan speed adjustment.

The default temperature thresholds on different cards are different.

Format

set fan speed-adjust threshold minus threshold-value [ slot slot-id ]

undo set fan speed-adjust threshold minus [ slot slot-id ]

Parameters

Parameter

Description

Value

threshold-value Specifies the deduction to the temperature thresholds. The value is an integer that ranges from 1 to 20.

slot slot-id

Specifies a slot ID.

If this parameter is not specified, the thresholds in all slots are set.

  • When CSS is not configured, the slot-id value depends on device hardware configuration.
  • In a CSS, the slot-id value is in format CSS ID/slot ID.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The device uses fixed temperature thresholds to increase and decrease the fan speed by default. The fan speed increases when the device temperature exceeds the upper threshold and decreases when the device temperature falls below the lower threshold. If you want to keep the device working at a lower temperature, you can set deduction for the fixed temperature thresholds. The temperature threshold after modification is lower than the default temperature threshold.

Precautions

  • The new thresholds are the fixed temperature thresholds minus threshold-value. After this command is executed, both the threshold for increasing the fan speed and the threshold for lowering the fan speed are reduced.

  • To view the fixed temperature thresholds, run the display fan speed-adjust threshold minus command.

  • After you run this command, the configuration may take effect after a delay. The delay time will not exceed 90s.

Example

# Set the deduction to the temperature thresholds to 10.
<HUAWEI> system-view
[HUAWEI] set fan speed-adjust threshold minus 10
Info: Succeeded in setting the fan speed-adjust threshold. 

set memory-usage threshold

Function

The set memory-usage threshold command sets the memory usage threshold.

The undo set memory-usage threshold command restores the default memory usage threshold.

By default, when the switch uses SRUH or SRUE:
  • If the memory capacity on the device is lower than or equal to 512 MB, the memory usage alarm threshold is 85% and the memory usage alarm recovery threshold is 80%.

  • If the memory capacity on the device is larger than 512 MB and smaller than or equal to 1.5 GB, the memory usage alarm threshold is 90% and the memory usage alarm recovery threshold is 85%.

  • If the memory capacity on the device is higher than 1.5 GB, the memory usage alarm threshold is 95% and the memory usage alarm recovery threshold is 90%.

By default, when the switch uses other MPU models:
  • If the memory capacity on the device is lower than or equal to 512 MB, the memory usage alarm threshold is 85% and the memory usage alarm recovery threshold is 80%.

  • If the memory capacity on the device is larger than 512 MB and smaller than or equal to 2 GB, the memory usage alarm threshold is 90% and the memory usage alarm recovery threshold is 85%.

  • If the memory capacity on the device is higher than 2 GB, the memory usage alarm threshold is 95% and the memory usage alarm recovery threshold is 90%.

Format

set memory-usage threshold threshold-value [ slot slot-id ]

undo set memory-usage threshold [ threshold-value ] [ slot slot-id ]

Parameters

Parameter Description Value
threshold threshold-value

Specifies the memory usage threshold.

The value is an integer that ranges from 75 to 100.
slot slot-id

Specifies the memory usage threshold of the LPU in a specified slot.

The value must be set according to the device configuration.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can use the set memory-usage threshold command to set the memory usage threshold. When memory usage exceeds the threshold, the system logs the event and generates an alarm. By viewing log information, you can learn about memory usage.

If the slot slot-id parameter is not specified, the memory usage threshold of the MPU is set.

Precautions

You are advised to use the default threshold. If the memory usage threshold is set too low, the system frequently generates alarms. If the memory usage threshold is set too high, you cannot learn about memory usage in a timely manner.

Example

# Set the memory usage threshold of the MPU to 85%.

<HUAWEI> system-view
[HUAWEI] set memory-usage threshold 85

set root-key

Function

The set root-key command configures a root key for a switch.

The undo set root-key command restores the default root key of a switch.

By default, a switch uses the system default root key.

Format

set root-key

undo set root-key

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

A root key is located at the bottom of the key management infrastructure to protect confidentiality of upper-layer keys (such as key encryption key). Therefore, a root key is important to data security. A switch's root key is often stored in the system. If attackers illegally obtain the root key, encrypted data will become insecure. To improve data security and prevent attackers from obtaining encrypted packets, configure another root key on the switch. The configured root key will take effect after the switch restarts.

Precautions

  • The root key can only be configured when the switch has no service configuration. If service configuration has been performed on the switch, an error message will be displayed when you configure the root key.

  • If you configure a password (not the administrator password) and key after configuring the root key, the password and key configuration will not be restored after the switch software version is changed to V200R009 or an earlier version.

  • After the root key is configured, the configuration file of the switch cannot be exported and used on other devices.

Example

# Set the root key to huawei.

<HUAWEI> set root-key
Warning: A new root key can take effect only after the device is restarted. Are you sure you want to configure it. Continue? [Y/N]:y
Please enter a new key of no more than 32 characters:huawei
Please enter the new key again:huawei
Info: Successed in setting next root-key on the master board.

set transceiver

Function

Using the set transceiver command, you can set the alarm threshold of the optical power of the optical module.

Using the undo set transceiver command, restore the default power alarm thresholds of an optical module.

The default power alarm thresholds vary according to types of optical modules.

Format

set transceiver { transmit-power | receive-power } { upper-threshold | lower-threshold } threshold

undo set transceiver { transmit-power | receive-power } { upper-threshold | lower-threshold }

Parameters

Parameter

Description

Value

transmit-power

Indicates the transmission power.

-

receive-power

Indicates the receiving power.

-

upper-threshold

Indicates the upper alarm threshold of the optical power.

-

lower-threshold

Indicates the lower alarm threshold of the optical power.

-

threshold

Specifies the value of the alarm threshold.

The value varies according to optical module type. The alarm threshold is accurate to two digits after the decimal point.

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

The set transceiver command is invalid on electrical interfaces. This command is invalid for the interface without an optical module. It is recommended that you run the display transceiver command to view the upper and lower alarm thresholds of the optical power of the optical module before you set the alarm thresholds. Otherwise, the alarm thresholds you set may be invalid. In this case, error information is displayed.

An optical module has an original upper and lower alarm thresholds of the optical power. After you run the set transceiver command, the alarm threshold set by this command replaces the original alarm threshold.

NOTE:

XGE interfaces that connect switches to ET1D2IPS0S00, ET1D2FW00S00, ET1D2FW00S01, and ET1D2FW00S02 boards do not support this function.

XGE interfaces that connect switches to ACU2 boards do not support this function.

The upper alarm threshold that you set must be greater than the original lower alarm threshold of the optical module and smaller than or equal to the original upper alarm threshold. If the upper alarm threshold is not set, the original upper alarm threshold of the optical module is used.

The lower alarm threshold that you set must be greater than or equal to the original lower alarm threshold of the optical module and smaller than the upper alarm threshold that you set. If the lower alarm threshold is not set, the original lower alarm threshold of the optical module is used.

Example

# Set the lower alarm threshold of the receiving power of optical module on GE1/0/1 to -10 dBm and set the upper alarm threshold of the receiving power to -0.9 dBm. Then check the configuration.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] set transceiver receive-power lower-threshold -10
[HUAWEI-GigabitEthernet1/0/1] set transceiver transmit-power upper-threshold -0.9
Related Topics

set service-mode

Function

The set service-mode command sets the working mode of cards to enhanced.

The undo set service-mode command restores the working mode of cards to normal.

By default, the working mode of the cards is normal.

NOTE:

This command is supported only by X series cards.

Format

set service-mode slot slot-id enhanced

undo set service-mode slot slot-id enhanced

Parameters

Parameter

Description

Value

slot slot-id Specifies a slot ID. The value depends on the device configuration.
enhanced Sets the working mode of cards to enhanced. -

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When PTP needs to be configured on the X series cards, you need to set the working mode to enhanced.

Precautions

  • Running the set service-mode command will reduce the device forwarding performance. Therefore, confirm the action before you use the command.

  • Before changing the working mode from enhanced to normal, disable the PTP function.

Example

# Set the working mode of cards to enhanced.
<HUAWEI> system-view
[HUAWEI] set service-mode slot 3 enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y

set speed

Function

The set speed command sets the speed of the redirection from the switch to a value-added service card.

By default, the redirection speed is 9600 bit/s.

Format

set speed speed-value slot slot-id

Parameters

Parameter

Description

Value

speed-value

Indicates the serial interface rate of the value-added service card.

The value is an integer and can be one of the following: 9600, 19200, 38400, 57600, and 115200.

slot slot-id

Specifies the slot ID of the value-added service card.

The value is an integer. You can specify the slot ID for the value-added service card according to the actual configuration.

Views

System view

Default Level

3: Management level

Usage Guidelines

To log in to a value-added service card through the redirection function of the switch, ensure that the redirection speed is the same as the speed of the serial port on the value-added service card. Otherwise, the redirection fails. You can change the redirection speed using this command. Before running the command, ensure that the specified value-added service card has registered successfully.

Example

# Set the speed of the redirection from the switch to the serial port of a valid-added service card to 115200 bit/s.

<HUAWEI> system-view
[HUAWEI] set speed 115200 slot 4
Related Topics

set system-mac current

Function

The set system-mac current command changes the MAC address of the system.

Format

set system-mac current hex-string [ chassis chassis-id ] ( The chassis chassis-id parameter is valid only in a CSS. )

Parameters

Parameter

Description

Value

hex-string

Specifies the MAC address to be changed.

The MAC address is a 12-digit hexadecimal number and is in the format of H-H-H. An H contains 1 to 4 hexadecimal numbers.

chassis chassis-id

Indicates the frame ID.

The value is an integer:
  • In a CSS, the value is 1 or 2.
  • On a stand-alone switch, the value is 1.

Views

All views

Default Level

3: Management level

Usage Guidelines

NOTE:

Each device is assigned a global unique identifier from the manufacturer. Do not change the MAC address of a device unless the change is absolutely necessary. If you change a MAC address, the modification takes effect only after the device restarts.

When changing the MAC address, pay attention to the following points:
  • The MAC address cannot be all 0s or all 1s.
  • The MAC address cannot be a multicast MAC address.
  • If a device supports 16 MAC addresses, the last hexadecimal digit of the MAC address must be 0. If a device supports 256 MAC addresses, the last two hexadecimal digits of the MAC address must be 0.

Example

# Change the current system MAC address to 00e0-0987-7890.

<HUAWEI> set system-mac current 00e0-0987-7890 
Info: This operation may take a few seconds. Please wait for a moment...        
Info: Set public MAC address for master successfully.                           
Info: The mac-num has been changed, and the change will take effect after a reboot.
Related Topics

set system-mac default

Function

The set system-mac default command sets the default system MAC address.

Format

set system-mac default hex-string

Parameters

Parameter

Description

Value

hex-string

Specifies the MAC address to be set.

The value is a 12-digit hexadecimal number in H-H-H format. An H is a hexadecimal number of 1 to 4 digits.

Views

All views

Default Level

3: Management level

Usage Guidelines

NOTE:

Each device is assigned a global unique identifier from the manufacturer. Normally, the system MAC address cannot be changed.

When changing the system MAC address, pay attention to the following points:
  • The system MAC address cannot be all 0s or all 1s.
  • The system MAC address cannot be a multicast MAC address.
  • If a device supports 16 MAC addresses, the last hexadecimal digit of the MAC address must be 0. If a device supports 256 MAC addresses, the last two hexadecimal digits of the MAC address must be 0.

Example

# Set the default system MAC address to 00e0-0987-7890.

<HUAWEI> set system-mac default 00e0-0987-7890

shutdown osp

Function

The shutdown osp command shuts down the X86 subcard on an OSP card.

Format

shutdown osp slot-id [ force ]

Parameters

Parameter

Description

Value

slot-id

Specifies the position of an X86 subcard.

  • In a CSS, the value is in CSS ID/slot ID/subcard ID format.
  • On a stand-alone switch, the value is in slot ID/subcard ID format.

The value must be set according to the device configuration. The subcard ID is fixed at 1.

force

Forcibly shuts down the X86 subcard on an OSP card.

-

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

This command shuts down a running X86 subcard. If an X86 subcard cannot be shut down, specify force in the command to forcibly shut down the subcard. Forcibly shutting down an X86 subcard is not recommended, as doing so may damage the X86 subcard.

Prerequisites

The X86 subcard has started.

Precautions

  • The shutdown osp command only delivers the shutdown instruction and cannot ensure a successful shutdown of the X86 subcard. Run the display osp status command to check whether an X86 subcard has been shut down. If the Status field displays Shutdown, the X86 subcard has been shut down.

  • If no OSP card is installed on the switch, the system displays null when you run this command.

Example

# Shut down the X86 subcard on the OSP card in slot 5.

<HUAWEI> shutdown osp 5/1
Warning: Confirm to shut down osp 5/1 ? [Y/N]:y                                                                                    
Info: Command shutdown osp[5/1] has been sent successfully.

slave default

Function

The slave default command sets the slot ID of the default slave MPU used after the next startup.

The undo slave default command cancels the configuration.

By default, the MPU with the smaller slot ID is the master MPU, and the one with the larger slot ID is the slave MPU. The default master and slave MPUs of a device are as follows:
  • On the S9703 or S7703, the master MPU is in slot 4, and the slave MPU is in slot 5.

  • On the S9706 or S7706, the master MPU is in slot 7, and the slave MPU is in slot 8.

  • On the S9712 or S7712, the master MPU is in slot 13, and the slave MPU is in slot 14.

Format

slave default slot-id

undo slave default

Parameters

Parameter

Description

Value

slot-id

Specifies the slot ID of the slave MPU after the next startup.

On a stand-alone switch, slot-id specifies the slot ID of the MPU:
  • On the S9703 or S7703, the master and slave MPUs are in slots 4 and 5 respectively.

  • On the S9706 or S7706, the master and slave MPUs are in slots 7 and 8 respectively.

  • On the S9712 or S7712, the master and slave MPUs are in slots 13 and 14 respectively.

On a CSS, slot-id is in CSS ID/slot ID format.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When both the master and slave MPUs on a device are properly installed, you can run the slave default command to configure the MPU in a specified slot as the slave MPU after the next startup.

Example

# Configure the MPU in slot 5 as the slave MPU when the system restarts.

<HUAWEI> system-view
[HUAWEI] slave default 5

slave restart

Function

Using the slave restart command, you can reload the system software of the standby main control board and then restart it.

Format

slave restart

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

To upgrade the system software in-service, first upgrade the software on the standby main control board when the master main control board works normally, and then restart the standby main control board. After the standby main control board is ready, perform active/standby switchover and upgrade the software on the master main control board.

The command may interrupt services on the device. Therefore, exercise caution when using this command.

Example

# Restart the standby main control board.

<HUAWEI> system-view
[HUAWEI] slave restart

slave switchover

Function

The slave switchover command performs an active/standby switchover.

Format

slave switchover

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

During software upgrade or system maintenance, you can manually perform an active/standby switchover on MPUs. The active/standby switchover restarts the running master and standby MPUs. After the restart, the master MPU becomes the standby and the standby MPU becomes the master.

When this command is executed on a CSS, an active/standby switchover occurs between two devices.

Prerequisites
  • The forcible active/standby switchover has been enabled on MPUs.

  • The display switchover state command output shows that system has met requirements for active/standby switchover.

Precautions

Before commands have been executed, if the slave switchover command is executed to perform an active/standby switchover, you need to execute the commands that have not been executed on the new MPU again after the standby switch becomes the new master switch.

Example

# Perform an active/standby switchover.

<HUAWEI> system-view
[HUAWEI] slave switchover enable
[HUAWEI] slave switchover
Warning: This operation will switch the slave board to the master board. Continue? [Y/N]:y

slave switchover { disable | enable }

Function

The slave switchover { disable | enable } command enables or disables forcible master/slave switchover.

undo slave switchover disable command enables forcible master/slave switchover.

By default, master/slave switchover is enabled.

Format

slave switchover { disable | enable }

undo slave switchover disable

Parameters

Parameter Description Value
disable

Disables forcible master/slave switchover.

-

enable

Enables forcible master/slave switchover.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The slave switchover command takes effect only after forcible master/slave switchover is enabled. If forcible master/slave switchover is disabled, the slave switchover command does not take effect.

Example

# Disable forcible master/slave switchover.

<HUAWEI> system-view
[HUAWEI] slave switchover disable

snmp-agent trap enable feature-name basetrap

Function

snmp-agent trap enable feature-name basetrap command enables the trap function for the BASETRAP module.

undo snmp-agent trap enable feature-name basetrap command disables the trap function for the BASETRAP module.

By default, the trap function is enabled for the BASETRAP module.

Format

snmp-agent trap enable feature-name basetrap [ trap-name trap-name ]

undo snmp-agent trap enable feature-name basetrap [ trap-name trap-name ]

Parameters

Parameter

Description

Value

trap-name trap-name

Enables or disables the trap function for a specified event of the BASETRAP module.

Trap name. Traps of the BASETRAP module include:
  • cpuutilizationresume: Enables the trap function when CPU usage of an entity falls below the alarm threshold

  • cpuutilizationrisingalarm: Enables the trap function when CPU usage of an entity exceeds the alarm threshold

  • deviceabnormalrisingalarm: Enables the trap function when the device becomes abnormal

  • entitybecomemaster: Enables the trap function when an entity becomes the master

  • entitycheckfail: Enables the trap function when an entity fails self-check

  • entitycheckresume: Enables the trap function when an entity succeeds in self-check

  • entitycommunicateerror: Enables the trap function when channel detection fails

  • entitycommunicateresume: Enables the trap function when channel detection succeeds

  • entityheartbeattrap: Enables the trap function when the device sends a heartbeat notification

  • entityinsert: Enables the trap function when an entity is installed

  • entityinvalid: Enables the trap function when an entity is faulty

  • entityleavemaster: Enables the trap function when an entity exits from the master state

  • entityregsuccess: Enables the trap function when an entity is registered successfully

  • entityremove: Enables the trap function when an entity is removed

  • entityreset: Enables the trap function when an entity is reset

  • entityresetdone: Enables the trap function when an entity finishes reset

  • entityresume: Enables the trap function when an entity recovers from a fault

  • entityunstable: Enables the trap function when an entity is not securely installed

  • entityunstableresume: Enables the trap function when an entity is securely installed

  • opticalpowerabnormal: Enables the trap function when the optical module power is out of the normal range

  • opticalpowerresume: Enables the trap function when the optical module power restores to the normal range

  • portphysicaldown: Enables the trap function when a physical port goes Down

  • portphysicalethfullduplexclear: Enables the trap function when the port duplex mode changes to half-duplex

  • portphysicalethhalfduplexalarm: Enables the trap function when the port duplex mode is half-duplex

  • portphysicalporttypechange: Enables the trap function when the port type changes

  • portphysicalup: Enables the trap function when a physical port goes Up

  • powerinsufficiencyalarm: Enables the trap function when the system remaining power is lower than the board's rated power

  • powerinsufficiencyresume: Enables the trap function when the system remaining power becomes higher than the board's rated power

  • powermixed: Enables the trap function when the mode of a power module differs from that of other power modules

  • powermixedresume: Enables the trap function when the mode of the power module is the same as that of other power modules

  • poweroff: Enables the trap function when the power module has a power failure

  • poweron: Enables the trap function when the power module recovers from a power failure

  • powerrisingalarm: Enables the trap function when the power exceeds the threshold

  • powerrisingresume: Enables the trap function when the power falls below the threshold

  • storageutilizationresume: Enables the trap function when the storage device usage falls below the alarm threshold

  • storageutilizationrisingalarm: Enables the trap function when the storage device usage exceeds the alarm threshold

  • tempfallingalarm: Enables the trap function when the temperature falls below the lower alarm threshold

  • tempfallingresume: Enables the trap function when the temperature exceeds the lower alarm threshold

  • temprisingalarm: Enables the trap function when the temperature exceeds the upper alarm threshold

  • temprisingresume: Enables the trap function when the temperature falls below the upper alarm threshold

  • voltfallingalarm: Enables the trap function when the voltage falls below the lower alarm threshold

  • voltfallingresume: Enables the trap function when the voltage exceeds the lower alarm threshold

  • voltrisingalarm: Enables the trap function when the voltage exceeds the upper alarm threshold

  • voltrisingresume: Enables the trap function when the voltage falls below the upper alarm threshold

  • hwcpuutilizationresume: Enables the trap function when CPU usage of an entity falls below the alarm threshold.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the trap function is enabled, the device generates traps during running and sends traps to the NMS through SNMP. When the trap function is not enabled, the device does not generate traps and the SNMP module does not send traps to the NMS.

You can specify trap-name to enable the trap function for one or more events.

Example

# Enable the hwcpuutilizationrisingalarm trap of the BASETRAP module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name basetrap trap-name hwcpuutilizationrisingalarm

snmp-agent trap enable feature-name entityexttrap

Function

The snmp-agent trap enable feature-name entityexttrap command enables the trap function for the ENTITYEXTTRAP module.

The undo snmp-agent trap enable feature-name entityexttrap command disables the trap function for the ENTITYEXTTRAP module.

By default, the trap function is enabled for the ENTITYEXTTRAP module.

Format

snmp-agent trap enable feature-name entityexttrap [ trap-name trap-name ]

undo snmp-agent trap enable feature-name entityexttrap [ trap-name trap-name ]

Parameters

Parameter

Description

Value

trap-name trap-name

Enables or disables the trap function of the specified event for the ENTITYEXTTRAP module.

The value is a trap name. Traps of the ENTITYEXTTRAP module include:
  • hwboardsoftwareversionincompatible: The card software is incompatible.

  • hwentityinputratethresholdalarm: The bandwidth usage of incoming traffic exceeds the threshold.

  • hwentityinputratethresholdalarmresume: The bandwidth usage of incoming traffic falls below the threshold.

  • hwentityoutputratethresholdalarm: The bandwidth usage of outgoing traffic exceeds the threshold.

  • hwentityoutputratethresholdalarmresume: The bandwidth usage of outgoing traffic falls below the threshold.

  • hwentityhigerrorpacketthresholdalarm: Incoming packets are discarded because an error is detected during physical layer detection.

  • hwentityhigstatechangenotify: The Higig port status changes.

  • hwentityhigstatedownnotify: The Higig port status remains Down.

  • hwentitypositionmismatchnotify: The operating temperature and fan noise of the card in slot 6 are higher than those of other slots.

  • hwentityruntpacketchecknotify: The number of packet fault recoveries detected on a port exceeds 5000.

  • hwboarddropruntpacketnotify: Some packets of 64 to 86 bytes or 145 to 193 bytes are discarded on a card.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

After the trap function is enabled on a switch, the switch will generate traps during operation and send the traps to the NMS through the SNMP module. If the trap function is disabled on the switch, the switch will not generate traps and not send traps to the NMS through the SNMP module.

You can specify the parameter trap-name to enable one or more event traps.

Example

# Enable the hwboardsoftwareversionincompatible trap for the ENTITYEXTTRAP module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name entityexttrap trap-name hwboardsoftwareversionincompatible

snmp-agent trap enable feature-name entitymib

Function

snmp-agent trap enable feature-name entitymib command enables the trap function for the ENTITYMIB module.

undo snmp-agent trap enable feature-name entitymib command disables the trap function for the ENTITYMIB module.

By default, the trap function is enabled for the ENTITYMIB module.

Format

snmp-agent trap enable feature-name entitymib [ trap-name entconfigchange ]

undo snmp-agent trap enable feature-name entitymib [ trap-name entconfigchange ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for the specified event.

-

entconfigchange

Enables the trap function when the entity MIB changes.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the trap function is enabled, the device generates traps during running and sends traps to the NMS through SNMP. When the trap function is not enabled, the device does not generate traps and the SNMP module does not send traps to the NMS.

You can specify trap-name to enable the trap function for one or more events.

Example

# Enable the entconfigchange trap of the ENTITYMIB module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name entitymib trap-name entconfigchange

snmp-agent trap enable feature-name entitytrap

Function

snmp-agent trap enable feature-name entitytrap command enables the trap function for the ENTITYTRAP module.

undo snmp-agent trap enable feature-name entitytrap command disables the trap function for the ENTITYTRAP module.

By default, the trap function is enabled for the ENTITYTRAP module.

Format

snmp-agent trap enable feature-name entitytrap [ trap-name trap-name ]

undo snmp-agent trap enable feature-name entitytrap [ trap-name trap-name ]

Parameters

Parameter

Description

Value

trap-name trap-name

Specifies the trap for an event of the ENTITYTRAP module.

The value is an enumerated value and must be set as prompted by the device.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the trap function is enabled, the device generates traps during running and sends traps to the NMS through SNMP. When the trap function is not enabled, the device does not generate traps and the SNMP module does not send traps to the NMS.

You can specify trap-name to enable the trap function for one or more events.

Example

# Enable the hwentitytrapconflictdetect trap of the ENTITYTRAP module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name entitytrap trap-name hwpowerfail

snmp-agent trap enable feature-name swithsrvres

Function

snmp-agent trap enable feature-name swithsrvres command enables the trap function for the SWITHSRVRES module.

undo snmp-agent trap enable feature-name swithsrvres command disables the trap function for the SWITHSRVRES module.

By default, the trap function is enabled for the SWITHSRVRES module.

Format

snmp-agent trap enable feature-name swithsrvres [ trap-name { hwsrvserviceconfigfailed | hwsrvserviceexceedthreshould | hwsrvserviceexceedthreshouldresume } ]

undo snmp-agent trap enable feature-name swithsrvres [ trap-name { hwsrvserviceconfigfailed | hwsrvserviceexceedthreshould | hwsrvserviceexceedthreshouldresume } ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for the specified event.

-

hwsrvserviceconfigfailed

Enables the trap function when the service configurations fail.

-

hwsrvserviceexceedthreshould

Enables the trap function when the service configurations exceed the recommended threshold.

-

hwsrvserviceexceedthreshouldresume

Enables the trap function when the service configurations fall below the recommended threshold.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the trap function is enabled, the device generates traps during running and sends traps to the NMS through SNMP. When the trap function is not enabled, the device does not generate traps and the SNMP module does not send traps to the NMS.

You can specify trap-name to enable the trap function for one or more events.

Example

# Enable the hwsrvserviceconfigfailed trap of the SWITHSRVRES module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name swithsrvres trap-name hwsrvserviceconfigfailed

snmp-agent trap enable feature-name system

Function

The snmp-agent trap enable feature-name system command enables an SYSTEM trap.

The undo snmp-agent trap enable feature-name system command disables an SYSTEM trap.

Format

snmp-agent trap enable feature-name system [ trap-name trap-name ]

undo snmp-agent trap enable feature-name system [ trap-name trap-name ]

Parameters

Parameter Description Value
trap-name trap-name Specifies the name of a trap.

The value is an enumerated value and must be set as prompted by the device.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

To enable the NMS to easily manage the SYSTEM module of the device, you can run the snmp-agent trap enable feature-name system command to enables an SYSTEM trap. The command configuration ensures that the traps generated during the device operation are sent to the NMS. Otherwise, SYSTEM traps are not sent to the NMS.

You can run the display snmp-agent trap feature-name system all command to check the configuration result.

Example

# Enable the hwSysReloadNotification trap.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name system trap-name hwSysReloadNotification

startup osp

Function

The startup osp command starts the X86 subcard on an OSP card.

Format

startup osp slot-id

Parameters

Parameter

Description

Value

slot-id

Specifies the position of an X86 subcard.

  • In a CSS, the value is in CSS ID/slot ID/subcard ID format.
  • On a stand-alone switch, the value is in slot ID/subcard ID format.

The value must be set according to the device configuration. The subcard ID is fixed at 1.

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To use an X86 subcard, use this command to start it.

Prerequisites

The X86 subcard has been powered on and shut down.

Precautions

If no OSP card is installed on the switch, the system displays null when you run this command.

Example

# Start the X86 subcard on the OSP card in slot 5.

<HUAWEI> startup osp 5/1
Warning: Confirm to startup osp 5/1 ? [Y/N]:y    
Info: Startup osp[5/1] success.

transceiver phony-alarm-disable

Function

The transceiver phony-alarm-disable command disables the alarm function for non-Huawei-certified switch optical modules.

The undo transceiver phony-alarm-disable command enables the alarm function for non-Huawei-certified switch optical modules.

By default, the alarm function is enabled for non-Huawei-certified switch optical modules.

Format

transceiver phony-alarm-disable

undo transceiver phony-alarm-disable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Non-Huawei-certified switch optical modules may fail to work normally. If non-Huawei-certified switch optical modules are used on devices produced since July 1, 2013(January 1, 2016 for QSFP+ 40GE optical modules, CFP 40GE optical modules and CFP 100GE optical modules), the devices generate a large number of alarms to prompt users to replace these optical modules with Huawei-certified switch optical modules. However, vendor information of optical modules early delivered from Huawei may not be recorded. Therefore, non-Huawei-certified switch optical module alarms are generated. These optical modules can still be used to protect customer investment. In this case, you can disable the alarm function for non-Huawei-certified switch optical modules.

Example

# Disable the alarm function for non-Huawei-certified switch optical modules.

<HUAWEI> system-view
[HUAWEI] transceiver phony-alarm-disable
Info:Transceiver-phony-alarm disable.

# Enable the alarm function for non-Huawei-certified switch optical modules.

<HUAWEI> system-view
[HUAWEI] undo transceiver phony-alarm-disable
Info:Transceiver-phony-alarm enable.

wavelength-channel

Function

The wavelength-channel command sets the wavelength channel of a wavelength-tunable optical module.

The undo wavelength-channel command restores the default wavelength channel of a wavelength-tunable optical module.

The default wavelength channel of a wavelength-tunable optical module is channel 1.

Format

wavelength-channel channelnum

undo wavelength-channel

Parameters

Parameter

Description

Value

channelnum

Specifies a wavelength channel number.

The value is an integer that ranges from 1 to 80.

Views

XGE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To adjust the wavelength of a wavelength-tunable optical module on an interface, run the wavelength-channel command on this interface. This command will add the wavelength-tunable optical module to a specified wavelength channel. Each wavelength channel has a fixed center wavelength and frequency.

To view the mapping between the wavelength channel, center wavelength, and frequency, run the display wavelength-map command.

Precautions

When the wavelength-channel command configuration exists on the interface, after the interface has a wavelength-tunable optical module installed, this optical module will automatically adjust its wavelength to the configured wavelength. If a non-wavelength-tunable optical module is installed, the command configuration will not take effect and the system displays an alarm.

Running the wavelength-channel command will open and close the laser, resulting in interface flapping.

Example

# Add a wavelength-tunable optical module to wavelength channel 20 on XGigabitEthernet2/0/2.

<HUAWEI> system-view
[HUAWEI] interface XGigabitEthernet 2/0/2
[HUAWEI-XGigabitEthernet2/0/2] wavelength-channel 20
Translation
Download
Updated: 2019-10-18

Document ID: EDOC1000178288

Views: 26533

Downloads: 109

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