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

S1720, S2700, S5700, and S6720 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 resource-mode

Function

The assign resource-mode command configures the resource allocation mode of the device.

The undo assign resource-mode command restores the default resource allocation mode of the device.

By default, the resource allocation mode of the S5720EI is enhanced-mac and that of the S6720EI and S6720S-EI is enhanced-arp.

NOTE:

Only the S5720EI, S6720EI and S6720S-EI support this command.

Format

assign resource-mode { enhanced-mac | enhanced-ipv4 | enhanced-ipv6 } [ slot slot-id | all ] (S5720EI)

assign resource-mode { enhanced-mac | enhanced-arp | enhanced-ipv4 | ipv4-ipv6 6:1 | 96k-arp } [ slot slot-id | all ] (S6720EI, S6720S-EI)

undo assign resource-mode [ slot slot-id | all ]

Parameters

Parameter

Description

Value

enhanced-mac

Sets the resource allocation mode to enhanced-mac.

-
enhanced-ipv4

Sets the resource allocation mode to enhanced-ipv4.

-
enhanced-ipv6

Sets the resource allocation mode to enhanced-ipv6.

-
enhanced-arp

Sets the resource allocation mode to enhanced-arp.

-
ipv4-ipv6 6:1

Sets the resource allocation mode to ipv4-ipv6 6:1.

-
96k-arp

Sets the resource allocation mode to 96k-arp.

-
slot slot-id
  • Specifies a slot ID on a standalone switch where stacking is not enabled.
  • Specifies a stack ID in a stack.

In a stack, the value is an integer and must be set according to the configuration in the stack. On a standalone switch where stacking is not enabled, the value is fixed as 0.

all

Configures the resource allocation mode of the system.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a device's MAC address entries, FIB entries, or ARP entries are insufficient to meet service requirements, you can use this command to change the resource allocation mode so as to extend the entry space.

Table 3-19  Number of entries supported in different resource allocation modes on the S5720EI
Resource Allocation Mode MAC IPv4 FIB IPv6 FIB (0-64 Bits Mask) IPv6 FIB (Over 64 Bits Mask) ARP ND Multicast IPv4&IPv6
enhanced-mac 64K 12K 6K 1K 16K 8K 2000
enhanced-ipv4 32K 16K 8K 0K 16K 8K 2000
enhanced-ipv6 32K 8K 4K 2K 16K 8K 2000
NOTE:

On the S5720EI, IPv4 FIB and IPv6 FIB (0-64 bits mask) share hardware resources. The specifications listed in the preceding table indicate the maximum number of FIB entries of a single type. Numbers of the two types of FIB entries cannot reach the maximum value simultaneously.

On the S5720EI, ARP and ND share hardware resources. The value listed in the preceding table indicates the maximum number of entries of a single type. Numbers of the two types of entries cannot reach the maximum value simultaneously.

Table 3-20  Number of entries supported in different resource allocation modes on the S6720EI and S6720S-EI
Resource Allocation Mode MAC IPv4 FIB IPv6 FIB (0-64 Bits Mask) IPv6 FIB (Over 64 Bits Mask) ARP ND Multicast IPv4&IPv6
enhanced-arp 96K 12K 6K 1K 48K 44K 4000
enhanced-mac 288K 12K 6K 1K 16K 8K 4000
enhanced-ipv4 32K 128K 80K 0K 16K 8K 4000
ipv4-ipv6 6:1 32K 64K 10K 10K 16K 8K 4000
96k-arp 96K 12K 6K 1K 96000 44K 4000
NOTE:

On the S6720EI and S6720S-EI, ARP and ND share hardware resources. The value listed in the preceding table indicates the maximum number of entries of a single type. Numbers of the two types of entries cannot reach the maximum value simultaneously.

When the S6720EI and S6720S-EI work in enhanced-arp, enhanced-mac, enhanced-ipv4, or 96k-arp mode, IPv4 FIB and IPv6 FIB (0-64 bits mask) share hardware resources. The value listed in the preceding table indicates the maximum number of FIB entries of a single type. Numbers of the two types of FIB entries cannot reach the maximum value simultaneously.

When the S6720EI and S6720S-EI work in ipv4-ipv6 6:1 mode, IPv6 FIB (0-64 bits mask) and IPv6 FIB (over 64 bits mask) share hardware resources. The value listed in the preceding table indicates the maximum number of FIB entries of a single type. Numbers of the two types of FIB entries cannot reach the maximum value simultaneously.

Precautions

The configured resource allocation mode takes effect only after the device is restarted.

The requirements for different entry spaces will change when service configuration is adjusted. In this case, you can change the resource allocation mode to meet the new service requirements. Subsequently, entry spaces in different resource allocation modes will change. Therefore, before changing the resource allocation mode, consider the benefit and loss that the new mode will bring.

On the S6720EI and S6720S-EI, if the assign resource-mode command sets the resource allocation mode to enhanced-ipv4 or ipv4-ipv6 6:1, and the ipv4 destination-unreachable drop or ipv6 destination-unreachable dropcommand has been executed, the function that dropping the packets that do not match routing entries does not take effect.

On the S6720EI and S6720S-EI, redirection to a low-priority next hop is not supported in enhanced-ipv4 or ipv4-ipv6 6:1 resource allocation mode.

On the S6720EI and S6720S-EI, MPLS is not supported in 96k-arp resource allocation mode.

Example

# Set the resource allocation mode to enhanced-ipv4.

<HUAWEI> system-view
[HUAWEI] assign resource-mode enhanced-ipv4
Info: It is executing, please wait.....
Info: The resource mode in slot 0 has been set to Enhanced-IPv4 successfully.
Warning: It will take effect after rebooting this device.

backup elabel

Function

The backup elabel command backs up electronic labels of the device to the flash memory. The default name of the saved file is elabel-slot0.fls.

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

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

Format

backup elabel [ slot slot-id [ subcard-id ] ]

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

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

Parameters

Parameter Description Value
ftp-server-address

Specifies the IP address of the FTP server that stores electronic labels.

The value is in dotted decimal notation.

sftp-server-address

Specifies the IP address of the SFTP server that stores electronic labels.

The value is in dotted decimal notation.

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.

username

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

The value is a string of 1 to 64 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 16 case-sensitive characters without spaces.

slot slot-id

Specifies the slot ID.

The value must be set according to the device configuration.

subcard-id

Specifies the subcard ID.

The value must be set according to the device configuration.

Views

User view

Default Level

3: Management level

Usage Guidelines

When electronic labels are stored on a device, run the backup elabel command to save electronic labels to a file. This file can be saved to the flash memory, to the FTP or SFTP server using FTPor SFTP . FTP cannot ensure secure file transfer. SFTP is recommended on networks that require high security.

Example

# Save electronic labels of the device to the elabel-slot0.fls file in the flash memory.

<HUAWEI> backup elabel slot 0
Info: Output information to file: flash:/elabel-slot0.fls. Please wait for a mom
ent...                                                                          
                                                                                
Info: Put file to flash successfully. 

# Save electronic labels of the device to FTP server 192.168.12.91. Set the FTP user name to user and password to 123. Save electronic labels in the elabel-slot0.fls file.

<HUAWEI> backup elabel ftp 192.168.12.91 elabel-slot0.fls user 123
Warning: FTP is not a secure protocol, and it is recommended to use SFTP.       
Info: It is executing, please wait...                                           
                                                                                
Info: Put file to FTP server successfully.                                      
# 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-slot0.fls file.
<HUAWEI> backup elabel sftp 192.168.12.91 elabel-slot0.fls client001 Huawei@1234
Info: It is executing, please wait...                                           
                                                                                
Info: Put file to SFTP server successfully.                                      
Related Topics

cpu-usage monitor

Function

The cpu-usage monitor command enables the CPU usage monitoring.

The undo cpu-usage monitor command disables the monitoring function.

By default, the CPU usage monitoring is enabled.

Format

cpu-usage monitor [ { slot slot-id } | slave ]

undo cpu-usage monitor [ { slot slot-id } | slave ]

NOTE:

Devices that do not support the stack function or do not have the stack function enabled do not support the slave parameter.

Parameters

Parameter Description Value
slot slot-id
  • Specifies the slot ID if stacking is not configured.

  • Specifies the stack ID if stacking is configured.

The value is 0 if stacking is not configured; the value is an integer that ranges from 0 to 8 if stacking is configured.

slave

Indicates information about the CPU usage of the slave device. This Parameter is invalid.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

If you want to check the status and performance of the device, run the cpu-usage monitor command to enable the CPU usage monitoring, and then run the display cpu-usage command to check information about the CPU usage.

Example

# Enable the CPU usage monitoring.

<HUAWEI> system-view
[HUAWEI] cpu-usage monitor
Related Topics

cpu-usage threshold

Function

Using the cpu-usage threshold command, you can set the alarm threshold and alarm recovery threshold of CPU usage.

Using the undo cpu-usage threshold command, you can restore the alarm threshold and alarm recovery threshold of CPU usage.

By default, the alarm threshold of CPU usage is 95% and alarm recovery threshold is 80%.

Format

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

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

Parameters

Parameter Description Value
threshold threshold-value

Specifies the alarm threshold of CPU usage.

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

restore restore-threshold-value

Specifies the alarm recovery threshold of CPU usage.

The value is an integer that ranges from 1 to 99. The alarm recover threshold must be smaller than the alarm threshold.

slot slot-id
  • Specifies the slot ID if stacking is not configured.
  • Specifies the stack ID if stacking is configured.

The value is 0 if stacking is not configured; the value ranges from 0 to 8 if stacking is configured.

Views

System view

Default Level

3: Management level

Usage Guidelines

When the CPU usage exceeds the alarm threshold, a log is recorded. When the CPU usage reduces by equal to or smaller than 5% and exceeds the threshold again, no log is recorded. A log is recorded only when the CPU usage is reduced by greater than 5% and reaches the threshold again. Through log information, you can know the CPU usage more conveniently.

If slot slot-id is not configured, the alarm threshold and alarm recovery threshold of CPU usage are set. In addition, the system automatically synchronizes thresholds on the master switch with those on other member switches.

Example

# Set the alarm threshold of CPU usage to 85% and alarm recovery threshold to 70% of the switch.

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

display device battery

Function

The display device battery command displays the battery status on a device.

NOTE:
Only the S5700-28P-LI-BAT and S5700-28P-LI-24S-BAT support this command.

Format

display device battery

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use this command to check the real-time status of the battery. When the battery is working normally, it can supply power to the device in case the external power supply encounters a power failure.

Example

# Display the battery status.

<HUAWEI> display device battery
--------------------------------------------------------------------------------
 SlotID  Type      State     Temperature(L/H) Remain  Remain-Time  Charge-Times 
                                   (c)         (%)      (mins)                  
--------------------------------------------------------------------------------
 0       BAT-4AHA  Charge    29/31            22      54           2
Table 3-21  Description of the display device battery command output

Item

Description

SlotID

Slot ID of the battery.

Type

Type of the battery or battery board. The value can be:
  • BAT-4AHA: lithium battery with a rated capacity of 4 Ah.
  • BAT-8AHA: lithium battery with a rated capacity of 8 Ah.
  • PBB: lead-acid battery board.

State

Power supply status of the battery.
  • For a lithium battery, the value can be:

    Charge: The battery is charging.

    Discharge: The battery is discharging.

    Full: The battery is in full power state.

  • For a lead-acid battery, the value can be:

    Charge: The battery is charging.

    Discharge: The battery is discharging.

    Full: The battery is in full power state.

    Abnormal: The battery is not working properly. For example, the lead-acid battery board is installed but no lead-acid battery is connected to it; alternatively, the lead-acid battery is reversely connected.

Temperature(L/H)

  • When a lithium battery is installed, this field indicates the highest and lowest temperature of the lithium battery's electrochemical cell. The temperature is expressed in °C.
  • When a lead-acid battery is installed, this field displays N/A.

Remain

  • When a lithium battery is installed, this field indicates the available power of the lithium battery. The value is a percentage to the full power.
  • When a lead-acid battery is installed, this field displays N/A.

Remain-Time

  • When a lithium battery is installed, this field indicates the power supply time of the lithium battery. The time is expressed in minutes.
  • When a lead-acid battery is installed, this field displays N/A.

Charge-Times

  • When a lithium battery is installed, this field indicates the number of charge and discharge events.
  • When a lead-acid battery is installed, this field displays N/A.

display device battery lifetime threshold

Function

The display device battery lifetime threshold command displays the lifetime expiration alarm threshold for a lithium battery.

NOTE:

Only the S5700-28P-LI-BAT and S5700-28P-LI-24S-BAT that have a lithium battery installed support this command.

Format

display device battery lifetime threshold [ slot slot-id ]

Parameters

Parameter Description Value
slot slot-id

Specifies the slot ID of the lithium battery.

The value is fixed as 0 currently.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Use Scenario

If a lithium battery discharges too fast, its lifetime is about to expire. During a discharge, if the time taken to consume 10% of the total power is shorter than the alarm threshold, the lifetime of the lithium battery is about to expire. When this occurs, the device generates an alarm. When receiving this alarm, replace the lithium battery to ensure normal operation of the device in the case of a mains power outage. You can set the lifetime expiration alarm threshold for a lithium battery using the set device battery lifetime threshold threshold [ slot slot-id ] command.

You can use the display device battery lifetime threshold command to check the lifetime expiration alarm threshold and determine whether the threshold needs to be changed.

Precautions

When the S5700-28P-LI-BAT and S5700-28P-LI-24S-BAT have no battery or a lead-acid battery installed, the system displays a message indicating that this command is not supported.

Example

# Display the lifetime expiration alarm threshold for the lithium battery.

<HUAWEI> display device battery lifetime threshold
---------------------------------------------                                   
 Slot    Type   Threshold(mins)                                                 
---------------------------------------------                                   
 0       BAT     20         
Table 3-22  Description of the display device battery lifetime threshold command output

Item

Description

Slot

Slot ID of the battery.

Type

Battery type. The value is BAT, indicating a lithium battery.

Threshold(mins)

Lifetime expiration alarm threshold for the lithium battery. The unit is minute.

By default, the lifetime expiration alarm threshold for a lithium battery is 20 minutes. To set the lifetime expiration alarm threshold for a lithium battery, run the set device battery lifetime command.

display device fault-light

Function

The display device fault-light command displays status of fault indicator on a device.

NOTE:

Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S5700S-LI (only the S5700S-28X-LI-AC and S5700S-52X-LI-AC), S5710-X-LI, S5720LI, S5720S-LI, S5720S-SI, S5720SI, S5720EI, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, S6720S-SI, S6720S-EI, and S6720EI support this command.

Format

display device fault-light

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After using the display device fault-light command to check the fault indicator status, you can determine whether to set the fault indicator on a device to indicate that the device is faulty using the set device fault-light command.

Example

# Display the fault indicator status.

<HUAWEI> display device fault-light
---------------------------------------------------------------                                                                     
Slot      Status      Keeptime(s)                                                                                                   
---------------------------------------------------------------                                                                     
0         UnderRepair    45                                                                                                         
---------------------------------------------------------------     
Table 3-23  Description of the display device fault-light command output

Item

Description

Slot

Slot ID.

Status Status of the fault indicator.
  • Normal: Indicate that the device is running normally.
  • UnderRepair: Indicate that the device is faulty.
Keeptime(s) Time during which the fault indicator indicates that the device is faulty. When the Status displays Normal, the value displays "--".

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 ]

NOTE:

The following switches do not support this command:

  • S1720GW series
  • S1720GW-E series
  • S1720GWR series: S1720-28GWR-4P, S1720-28GWR-4X, and S1720-28GWR-PWR-4TP
  • S1720GWR-E series: S1720-28GWR-4P-E, S1720-28GWR-4X-E, and S1720-28GWR-PWR-4TP-E
  • S1720GFR series
  • S2720EI series: S2720-12TP-EI, S2720-12TP-PWR-EI, S2720-28TP-EI, S2720-28TP-PWR-EI-L
  • S2750EI series: S2750-28TP-EI-AC and S2751-28TP-PWR-EI-AC
  • S5700LI series: S5700-28TP-LI-AC, S5700-28P-LI-AC, S5700-28P-LI-DC, S5700-10P-LI-AC, and S5700-10P-PWR-LI-AC
  • S5700S-LI series: S5700S-28P-LI-AC
  • S5710-X-LI series: S5710-28X-LI-AC
  • S5720LI series: S5720-12TP-LI-AC, S5720-12TP-PWR-LI-AC, S5720-28P-LI-AC, S5720-28TP-LI-AC, S5720-28TP-PWR-LI-AC, S5720-28X-LI-AC, S5720-28X-LI-DC, and S5720-16X-PWH-LI-AC
  • S5720S-LI series: S5720S-12TP-LI-AC, S5720S-12TP-PWR-LI-AC, S5720S-28P-LI-AC, S5720S-28TP-PWR-LI-AC, and S5720S-28X-LI-AC
  • S5720S-SI series: S5720S-28P-SI-AC, S5720S-28X-SI-AC, and S5720S-28X-SI-DC

If one of the preceding switches can set up a stack with other switch models that support this command, this switch also supports this command so that this command can be executed and delivered in the stack.

Parameters

Parameter

Description

Value

slot slot-id

  • Specifies the slot ID when stack is not configured.
  • Specifies the stack ID when a stack is configured.

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

  • The value is 0 when stack is not configured.
  • The value can be set according to the device configuration when stack is configured.

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                      -----------------------------------------------------------                        0          NA - 56         NA - 56        35%                                               53 - 58         53 - 58        40%                                               55 - 58         55 - 58        45%                                               55 - 58         55 - 58        50%                                               52 - 57         52 - 57        60%                                               54 - 56         54 - 56        70%                                               54 - 57         54 - 57        80%                                               55 - 58         55 - 58        90%                                               56 - NA         56 - NA        100% 
Table 3-24  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 resource-mode configuration

Function

The display resource-mode configuration command displays the resource allocation mode configuration on the device.

Format

display resource-mode configuration

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Before configuring or modifying the resource allocation mode, run the display resource-mode configuration command to check the resource allocation mode configuration.

Example

# Display the resource allocation mode.

<HUAWEI> display resource-mode configuration
Slot       Current Mode    Next Mode                                            
- - - - - - - - - - - - - - - - - - - - - - -                                   
0          enhanced-mac          enhanced-mac 
Table 3-25  Description of the display resource-mode configuration command output

Item

Description

Slot

Slot ID.

Current Mode

Current resource allocation mode.

Next Mode

Resource allocation mode configured using the assign resource-mode command.

NOTE:

If the Next Mode is different from the Current Mode, the device is not restarted after the resource allocation mode is modified.

Related Topics

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-26  Description of the display root-key configuration command output

Item

Specification

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 the device.

NOTE:

This command is supported only by S5720HI.

Format

display service-mode configuration

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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

Example

# Display the working mode of the device.
<HUAWEI> display service-mode configuration
Service mode status: Normal
Table 3-27  Description of the display service-mode configuration command output

Item

Description

Service mode status

Working mode of the device:
  • Normal
  • Enhanced

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

Related Topics

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

In a stack containing multiple switches, you can run the display switchover state command to view the status of master and standby switches to determine whether to perform an active/standby switchover. When performing active/standby switchover, ensure that the standby switch is in real-time backup state.

Example

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

<HUAWEI> display switchover state
Slot 1 HA FSM State(master): waiting for the slave to be inserted.
Table 3-28  Description of the display switchover state command output

Item

Description

HA FSM State(master)

Master switch status:
  • waiting for the slave to be inserted: There is only the master switch but not the standby switch.

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

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

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

HA FSM State(slave)

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

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

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

display system resource-template

Function

The display system resource-template command displays system resource template information.

NOTE:

Only the S5720HI supports this command.

Format

display system resource-template [ slot slot-id ]

Parameters

Parameter

Description

Value

slot slot-id
  • Specifies a slot ID on a standalone device.
  • Specifies the stack ID in a stack.

The value is an integer. In a stack, the value must be set according to the device configuration. On a standalone device, the value is 0.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display system resource-template command to view system resource template information, including the resource type, currently running resource template information and resource template for the next startup.

Example

# Display information about the system resource template.

<HUAWEI> display system resource-template
Resource Template Information:                               
--------------------------------------------------------------
 Slot    Type        RunningTemplate     NextTemplate         
--------------------------------------------------------------
 0       acl-mode    dual-ipv4-ipv6      dual-ipv4-ipv6       
-------------------------------------------------------------- 
Table 3-29  Description of the display system resource-template command output

Item

Description

Slot

Slot ID.

Type

Resource type. Currently, only one system resource template (acl-mode) is supported.

RunningTemplate

Currently running resource template information.

To configure a resource template, run the assign resource-template acl-mode command.

NextTemplate

Resource template for the next startup.

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 : 9                                                                                                                     
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwEntityInputRateThresholdAlarm                                                                                                     
                                on                      on                                                                          
hwEntityInputRateThresholdAlarmResume                                                                                               
                                on                      on                                                                          
hwEntityOutputRateThresholdAlarm                                                                                                    
                                on                      on                                                                          
hwEntityOutputRateThresholdAlarmResume                                                                                              
                                on                      on                                                                          
hwEntityHigErrorPacketThresholdAlarm                                                                                                
                                on                      on                                                                          
hwEntityHigStateChangeNotify    on                      on                                                                          
hwEntityHigStateDownNotify      on                      on                                                                          
hwEntityRuntPacketCheckNotify   on                      on                                                                          
hwBoardDropRuntPacketNotify     on                      on   
Table 3-30  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:

  • 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.

  • 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.

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-31  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-32  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 srmtrap all

Function

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

Format

display snmp-agent trap feature-name srmtrap 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 srmtrap all command to check the status of all traps of SRMTRAP. You can use the snmp-agent trap enable feature-name srmtrap command to enable the trap function of SRMTRAP.

Prerequisites

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

Example

# Display all the traps of the SRMTRAP module.

<HUAWEI>display snmp-agent trap feature-name srmtrap all
------------------------------------------------------------------------------                                                      
Feature name: SRMTRAP                                                                                                               
Trap number : 68                                                                                                                    
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwPortPhysicalAutoNegotiateFail                                                                                                     
                                on                      on                                                                          
hwPortPhysicalEthHalfDuplexAlarm                                                                                                    
                                on                      on                                                                          
hwPortPhysicalAutoNegotiateClear                                                                                                    
                                on                      on                                                                          
hwPortPhysicalEthFullDuplexClear                                                                                                    
                                on                      on                                                                          
hwfanOffline                    on                      on                                                                          
hwfanOnline                     on                      on                                                                          
hwTempRisingAlarm               on                      on                                                                          
hwTempRisingResume              on                      on                                                                          
hwTempFallingAlarm              on                      on                                                                          
hwTempFallingResume             on                      on                                                                          
hwtempchipexcption              on                      on                                                                          
hwtempchipexcptionresume        on                      on                                                                          
hwfanfault                      on                      on                                                                          
hwfanfaultresume                on                      on                                                                          
hwphychipabnormal               on                      on                                                                          
hwPHYfaultresume                on                      on                                                                          
hwtxpowerexceedminor            on                      on                                                                          
hwtxpowerresume                 on                      on                                                                          
hwrxpowerexceedminor            on                      on                                                                          
hwrxpowerresume                 on                      on                                                                          
hwPortPhysicalPortTypeChange    on                      on                                                                          
hwPowerabsent                   on                      on                                                                          
hwPowerabsentresume             on                      on                                                                          
hwPowerfault                    on                      on                                                                          
hwPowerfaultresume              on                      on                                                                          
hwTXPowerExceedMajor            on                      on                                                                          
hwRXPowerExceedMajor            on                      on                                                                          
hwBIASExceedMajor               on                      on                                                                          
hwBIASExceedMinor               on                      on                                                                          
hwBIASResume                    on                      on                                                                          
hwPHYfault                      on                      on                                                                          
hwPCIfault                      on                      on                                                                          
hwPCIfaultResume                on                      on                                                                          
hwXAUIREFClockFault             on                      on                                                                          
hwXAUIREFClockFaultResume       on                      on                                                                          
hwCPICoreClockFault             on                      on                                                                          
hwCPICoreClockFaultResume       on                      on                                                                          
hwLanSwitchFault                on                      on                                                                          
hwLanSwitchFaultResume          on                      on                                                                          
hwCLPDCheckFault                on                      on                                                                          
hwCLPDCheckFaultResume          on                      on                                                                          
hwFPGACheckFault                on                      on                                                                          
hwFPGACheckFaultResume          on                      on                                                                          
hwEEPROMCheckFault              on                      on                                                                          
hwEEPROMCheckFaultResume        on                      on                                                                          
hwLightFault                    on                      on                                                                          
hwLightFaultResume              on                      on                                                                          
hwPOEFault                      on                      on                                                                          
hwPOEFaultResume                on                      on                                                                          
hwUSBFault                      on                      on                                                                          
hwUSBFaultResume                on                      on                                                                          
hwUSBPlugIn                     on                      on                                                                          
hwUSBPlugOut                    on                      on                                                                          
hwUSBPowerFault                 on                      on                                                                          
hwUSBPowerFaultResume           on                      on                                                                          
hwI2CFault                      on                      on                                                                          
hwI2CFaultResume                on                      on                                                                          
hwSubcardPullOut                on                      on                                                                          
hwSubcardPlugIn                 on                      on                                                                          
hwRTCfault                      on                      on                                                                          
hwRTCfaultresume                on                      on                                                                          
hwWriteFlashError               on                      on                                                                          
hwWriteFlashErrorResume         on                      on                                                                          
hwOpticalPowerAbnormal          on                      on                                                                          
hwOpticalPowerResume            on                      on                                                                          
hwEntityHeartbeatTrap           on                      on                                                                          
hwPoeChipFault                  on                      on                                                                          
hwPoeChipResume                 on                      on
Table 3-33  Description of the display snmp-agent trap feature-name srmtrap 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 SRMTRAP module include:

  • hwbiasexceedmajor: The bias current exceeds the upper threshold.
  • hwbiasexceedmajor: The bias current falls below the lower threshold.
  • hwbiasresume: The bias current restores to the normal range.
  • hwclpdcheckfault: CPLD check fails.
  • hwclpdcheckfaultresume: CPLD check succeeds.
  • hwcpicoreclockfault: CPI kernel clock becomes faulty.
  • hwcpicoreclockfaultresume: CPI kernel clock recovers from a fault.
  • hweepromcheckfault: EEPROM check fails.
  • hweepromcheckfaultresume: EEPROM check succeeds.
  • hwentityheartbeattrap: The device sends a heartbeat notification.
  • hwfanfault: A fan module becomes faulty.
  • hwfanfaultresume: A fan module recovers from a fault.
  • hwfanoffline: A fan module is unavailable.
  • hwfanonline: A fan module becomes available.
  • hwfpgacheckfault: FPGA check fails.
  • hwfpgacheckfaultresume: FPGA check succeeds.
  • hwi2cfault: An I2C fault occurs.
  • hwi2cfaultresume: An I2C fault is rectified.
  • hwlanswitchfault: An LSW chip becomes faulty.
  • hwlanswitchfaultresume: An LSW chip recovers from a fault.
  • hwlightfault: An indicator becomes faulty.
  • hwlightfaultresume: An indicator recovers from a fault.
  • hwopticalpowerabnormal: The optical module power is out of the normal range.
  • hwopticalpowerresume: The optical module power restores to the normal range.
  • hwpcifault: A PCI fault occurs.
  • hwpcifaultresume: A PCI fault is rectified.
  • hwphychipabnormal: A PHY chip is faulty.
  • hwphyfault: A PHY fault occurs.
  • hwphyfaultresume: A PHY fault is rectified.
  • hwpoechipfault: A PoE chip is faulty.
  • hwpoechipresume: A PoE chip recovers from a fault.
  • hwpoefault: The PoE function is unavailable.
  • hwpoefaultresume: A PoE function becomes available.
  • hwportphysicalautonegotiateclear: Port auto-negotiation succeeds.
  • hwportphysicalautonegotiatefail: Port auto-negotiation fails.
  • hwportphysicalethfullduplexclea: A port is in full-duplex mode.
  • hwportphysicalethhalfduplexalarm: A port is in half-duplex mode.
  • hwportphysicalporttypechange: The port type changes.
  • hwpowerabsent: A power module is unavailable.
  • hwpowerabsentresume: A power module becomes available.
  • hwpowerfault: A power module is faulty.
  • hwphyfaultresume: A power module recovers from a fault.
  • hwrtcfault: A real-time clock (RTC) is faulty.
  • hwrtcfaultresume: A real-time clock (RTC) recovers from a fault.
  • hwrxpowerexceedmajor: The Rx power exceeds the upper threshold.
  • hwrxpowerexceedminor: The Rx power falls below the lower threshold.
  • hwrxpowerresume: The Rx power restores to the normal range.
  • hwsubcardplugin: A subcard is installed.
  • hwsubcardpullout: A subcard is removed.
  • hwtempchipexcption: A temperature sensor chip is faulty.
  • hwtempchipexcptionresume: A temperature sensor chip recovers from a fault.
  • hwtempfallingalarm: The device temperature is too low.
  • hwtempfallingresume: The device temperature restores to the normal range.
  • hwtemprisingalarm: The device temperature is too high.
  • hwtemprisingresume: The device temperature restores to the normal range.
  • hwtxpowerexceedmajor: The Tx power exceeds the upper threshold.
  • hwtxpowerexceedminor: The Tx power falls below the lower threshold.
  • hwtxpowerresume: The Tx power restores to the normal range.
  • hwusbfault: A USB flash drive is faulty.
  • hwusbfaultresume: A USB flash drive recovers from a fault.
  • hwusbplugin: A USB flash drive is installed.
  • hwusbplugout: A USB flash drive is removed.
  • hwusbpowerfault: A USB 5V power module is faulty.
  • hwusbpowerfaultresume: A USB 5V power module recovers from a fault.
  • hwwriteflasherror: An error occurs when data is written to the flash memory.
  • hwwriteflasherrorresume: An error that occurs when data is written to the flash memory is resolved.
  • hwxauirefclockfault: An XAUIREF clock is faulty.
  • hwxauirefclockfaultresume: An XAUIREF clock recovers from a fault.

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-34  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-35  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.

NOTE:

This command is not supported by S1720GFR, S2750, S5700LI, and S5700S-LI.

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-36  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

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 switch.

-

all

Clears CPU usage records on all switches

-

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 switch is cleared.

Example

# Clear CPU usage records of the master switch.

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

reset slot

Function

The reset slot command resets a specified device.

Format

reset slot slot-id

Parameters

Parameter Description Value
slot-id

Specifies the stack ID of the device that needs to be restarted.

The value must be set according to the device configuration.

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

In a stack, you can restart stack members. Restarting a stack member will interrupt services on this device, but the configuration of this device still exists.

Precautions

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

Example

# Restart stack member with stack ID 1.

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

set device battery lifetime

Function

The set device battery lifetime command sets the lifetime expiration alarm threshold for a lithium battery.

By default, the lifetime expiration alarm threshold for a lithium battery is 20 minutes.

NOTE:

Only the S5700-28P-LI-BAT and S5700-28P-LI-24S-BAT that have a lithium battery installed support this command.

Format

set device battery lifetime threshold threshold [ slot slot-id ]

Parameters

Parameter Description Value
threshold threshold

Sets the lifetime expiration alarm threshold for a lithium battery.

The value is an integer that ranges from 10 to 60, in minutes.

slot slot-id

Specifies the slot ID of the lithium battery.

The value is fixed as 0 currently.

Views

System view

Default Level

3: Management level

Usage Guidelines

Use Scenario

If a lithium battery discharges too fast, its lifetime is about to expire. During a discharge, if the time taken to consume 10% of the total power is shorter than the configured alarm threshold, the lifetime of the lithium battery is about to expire. When this occurs, the device generates an alarm. When receiving this alarm, replace the lithium battery to ensure normal operation of the device in the case of a mains power outage.

Precautions

When the S5700-28P-LI-BAT and S5700-28P-LI-24S-BAT have no battery or a lead-acid battery installed, the system displays a message indicating that this command is not supported.

Example

# Set the lifetime expiration alarm threshold for the lithium battery to 50 minutes.

<HUAWEI> system-view
[HUAWEI] set device battery lifetime threshold 50

set device battery off

Function

The set device battery off command turns off the lithium battery on a device so that the battery no longer supplies power to the device.

NOTE:

Only the S5700-28P-LI-BAT and S5700-28P-LI-24S-BAT that have a lithium battery installed support this command.

Format

set device battery off [ slot slot-id ]

Parameters

Parameter Description Value
slot slot-id

Specifies the slot ID of the lithium battery.

The value is fixed as 0 currently.

Views

System view

Default Level

3: Management level

Usage Guidelines

Use Scenario

If a device has a lithium battery installed, the lithium battery can supply power to the device after the power supply of the device is turned off. To power off the device, turn off the lithium battery after powering off the power supply.

Precautions

This command can be executed only if a lithium battery is available and the power supply of the device has been turned off. If no lithium battery is available or the power supply of the device is on, the system displays a message indicating that the command cannot be executed.

Example

# Turn off the lithium battery.

<HUAWEI> system-view
[HUAWEI] set device battery off
Info: The system is now comparing the configuration, please wait.
Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file flash:/vrpcfg.zip. Continue? [Y/N]:N
Warning:The battery in slot 0 will be turned off and the device will be powered off. Continue? (Y/N): Y

set device fault-light

Function

The set device fault-light command sets the fault indicator status on a device.

The undo set device fault-light command restores the default fault indicator status.

By default, the fault indicator status of the device is not set. The fault indicator status is displayed based on the current device running status.

NOTE:

Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S5700S-LI (only the S5700S-28X-LI-AC and S5700S-52X-LI-AC), S5710-X-LI, S5720LI, S5720S-LI, S5720S-SI, S5720SI, S5720EI, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, S6720S-SI, S6720S-EI, and S6720EI support this command.

Format

set device fault-light { normal | under-repair [ keeptime time ] } [ slot slot-id ]

undo set device fault-light [ slot slot-id ]

Parameters

Parameter

Description

Value

normal Displays the fault indicator status based on the current device running status. -
under-repair Configures the fault indicator to indicate that the device is faulty. -
keeptime time Sets the time during which the fault indicator indicates that the device is faulty. The value is an integer that ranges from 45 to 600, in seconds. The default value is 45.

slot slot-id

Specifies a slot ID.

The value range depends on the device configuration.

Views

System view

Default Level

3: Management level

Usage Guidelines

Use Scenario

The fault indicator status of the device is indicated by mode indicators and the system indicator. When a device becomes faulty, you can configure mode indicators and the system indicator on the device to blink red fast so that maintenance personnel can quickly find this device on site.

Precautions

Mode indicators include the STAT indicator, SPED indicator, PoE indicator (supported only on PoE switches) and STCK indicator. The system indicator is the SYS indicator, which indicates the system running status.

When the set device fault-light under-repair command is executed, the system indicator and all mode indicators blink red fast. After these indicators blink red fast for the time specified by keeptime time, the following situations occur:
  • The system indicator restores to the previous status.
  • The STAT indicator is steady on.
  • When the stack function is enabled, the STCK indicator on the master switch blinks slowly, while the STCK indicators on the other member devices are off.
  • When the stack function is disabled, the STCK indicator is off.
  • Other mode indicators are off.
The set device fault-light normal and undo set device fault-light commands have the same functions. That is, after either of the two commands is executed, the following situations occur:
  • The system indicator restores to the previous status.
  • The STAT indicator is steady on.
  • When the stack function is enabled, the STCK indicator on the master switch blinks slowly, while the STCK indicators on the other member devices are off.
  • When the stack function is disabled, the STCK indicator is off.
  • Other mode indicators are off

If slot slot-id is not specified in a stack, the configuration takes effect on indicators on the master switch.

Example

# Configure the fault indicator to indicate that the device is faulty.
<HUAWEI> system-view
[HUAWEI] set device fault-light under-repair

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 devices are different.

NOTE:

The following switches do not support this command:

  • S1720GW series
  • S1720GW-E series
  • S1720GWR series: S1720-28GWR-4P, S1720-28GWR-4X, and S1720-28GWR-PWR-4TP
  • S1720GWR-E series: S1720-28GWR-4P-E, S1720-28GWR-4X-E, and S1720-28GWR-PWR-4TP-E
  • S1720GFR series
  • S2720EI series: S2720-12TP-EI, S2720-12TP-PWR-EI, S2720-28TP-EI, S2720-28TP-PWR-EI-L
  • S2750EI series: S2750-28TP-EI-AC and S2751-28TP-PWR-EI-AC
  • S5700LI series: S5700-28TP-LI-AC, S5700-28P-LI-AC, S5700-28P-LI-DC, S5700-10P-LI-AC, and S5700-10P-PWR-LI-AC
  • S5700S-LI series: S5700S-28P-LI-AC
  • S5710-X-LI series: S5710-28X-LI-AC
  • S5720LI series: S5720-12TP-LI-AC, S5720-12TP-PWR-LI-AC, S5720-28P-LI-AC, S5720-28TP-LI-AC, S5720-28TP-PWR-LI-AC, S5720-28X-LI-AC, S5720-28X-LI-DC, and S5720-16X-PWH-LI-AC
  • S5720S-LI series: S5720S-12TP-LI-AC, S5720S-12TP-PWR-LI-AC, S5720S-28P-LI-AC, S5720S-28TP-PWR-LI-AC, and S5720S-28X-LI-AC
  • S5720S-SI series: S5720S-28P-SI-AC, S5720S-28X-SI-AC, and S5720S-28X-SI-DC

If one of the preceding switches can set up a stack with other switch models that support this command, this switch also supports this command so that this command can be executed and delivered in the stack.

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 the slot ID when stack is not configured.
  • Specifies the stack ID when a stack is configured.

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

The value is an integer that ranges from 0 to 8.

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.

NOTE:

If a device uses intelligent fan control, this command reduces the temperature thresholds for starting and stopping the fans. Fans in intelligent heat dissipation mode can only start and stop rotating at a fixed speed that cannot be increased or reduced.

You can run the display fan speed-adjust threshold minus command to check temperature thresholds for fan speed adjustment of fans in intelligent heat dissipation mode. Assume you view that the current temperature threshold of the fans is 40-50, in which 40°C is the threshold for stopping the fans, and 50°C is the threshold for starting the fans. When the current device temperature is 45°C, you need to determine whether fans will rotate according to the fan temperature change:
  • When the device temperature is increased to 45°C from a lower temperature (30°C for example), fans do not rotate because the device temperature does not reach the threshold for starting the fans.
  • When the device temperature is reduced to 45°C from a higher temperature (65°C for example), fans keep rotating because the device temperature does not fall below the threshold for stopping the fans.

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, the memory usage alarm threshold is 90% and the memory usage alarm recovery threshold is 85% on the S5720EI. On the S1720GFR, S2750EI, S5700LI and S5700S-LI , The following describes the memory usage alarm threshold :
  • If the memory capacity on the device is lower than or equal to 256 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 256 MB and smaller than or equal to 512 MB, 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 512 MB, the memory usage alarm threshold is 95% and the memory usage alarm recovery threshold is 90%.

The following describes the memory usage alarm threshold on other switch 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 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%.

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 device. slot-id specifies the stack ID.

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

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.

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 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 service-mode

Function

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

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

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

NOTE:

This command is supported only by S5720HI.

Format

set service-mode enhanced

undo set service-mode enhanced

Parameters

Parameter

Description

Value

enhanced Sets the working mode of the device to enhanced. -

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

By default, S5720HIs work in normal mode, requiring the interval for receiving BFD packets to be longer than or equal to 100 ms. If the interval cannot meet requirements, run the set service-mode command to change the working mode of an S5720HI to enhanced so that the S5720HI supports a minimum of 3 ms interval.

Precautions

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

  • If BFD has been enabled before this command is executed, disable BFD first.

Example

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

slave restart

Function

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

NOTE:

Devices that do not support the stack function or do not have the stack function enabled do not support this function.

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 device when the master device works normally, and then restart the standby device. After the standby device is ready, perform active/standby switchover and upgrade the software on the master device.

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

Example

# Restart the standby device.

<HUAWEI> system-view
[HUAWEI] slave restart

slave switchover

Function

The slave switchover command performs an active/standby switchover.

NOTE:

Devices that do not support the stack function or do not have the stack function enabled do not support this function.

Format

slave switchover

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

In a stack containing multiple switches, you can manually switch the master and standby switches during software upgrade or system maintenance. After the active/standby switchover is complete, the original master switch joins the stack after restarting, and the original switch becomes the new master switch.

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

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

Precautions

You can run the slave switchover command to perform an active/standby switchover only in a stack containing multiple switches.

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 master switch 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.

NOTE:

Devices that do not support the stack function or do not have the stack function enabled do not support this function.

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 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:
  • 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.

  • 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.

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 srmtrap

Function

snmp-agent trap enable feature-name srmtrap command enables the trap function for the SRMTRAP module.

undo snmp-agent trap enable feature-name srmtrap command disables the trap function for the SRMTRAP module.

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

Format

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

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

Parameters

Parameter

Description

Value

trap-name trap-name

Specifies the trap for an event of the SRMTRAP module.

  • hwbiasexceedmajor: The bias current exceeds the upper threshold.
  • hwbiasexceedmajor: The bias current falls below the lower threshold.
  • hwbiasresume: The bias current restores to the normal range.
  • hwclpdcheckfault: CPLD check fails.
  • hwclpdcheckfaultresume: CPLD check succeeds.
  • hwcpicoreclockfault: CPI kernel clock becomes faulty.
  • hwcpicoreclockfaultresume: CPI kernel clock recovers from a fault.
  • hweepromcheckfault: EEPROM check fails.
  • hweepromcheckfaultresume: EEPROM check succeeds.
  • hwentityheartbeattrap: The device sends a heartbeat notification.
  • hwfanfault: A fan module becomes faulty.
  • hwfanfaultresume: A fan module recovers from a fault.
  • hwfanoffline: A fan module is unavailable.
  • hwfanonline: A fan module becomes available.
  • hwfpgacheckfault: FPGA check fails.
  • hwfpgacheckfaultresume: FPGA check succeeds.
  • hwi2cfault: An I2C fault occurs.
  • hwi2cfaultresume: An I2C fault is rectified.
  • hwlanswitchfault: An LSW chip becomes faulty.
  • hwlanswitchfaultresume: An LSW chip recovers from a fault.
  • hwlightfault: An indicator becomes faulty.
  • hwlightfaultresume: An indicator recovers from a fault.
  • hwopticalpowerabnormal: The optical module power is out of the normal range.
  • hwopticalpowerresume: The optical module power restores to the normal range.
  • hwpcifault: A PCI fault occurs.
  • hwpcifaultresume: A PCI fault is rectified.
  • hwphychipabnormal: A PHY chip is faulty.
  • hwphyfault: A PHY fault occurs.
  • hwphyfaultresume: A PHY fault is rectified.
  • hwpoechipfault: A PoE chip is faulty.
  • hwpoechipresume: A PoE chip recovers from a fault.
  • hwpoefault: The PoE function is unavailable.
  • hwpoefaultresume: A PoE function becomes available.
  • hwportphysicalautonegotiateclear: Port auto-negotiation succeeds.
  • hwportphysicalautonegotiatefail: Port auto-negotiation fails.
  • hwportphysicalethfullduplexclea: A port is in full-duplex mode.
  • hwportphysicalethhalfduplexalarm: A port is in half-duplex mode.
  • hwportphysicalporttypechange: The port type changes.
  • hwpowerabsent: A power module is unavailable.
  • hwpowerabsentresume: A power module becomes available.
  • hwpowerfault: A power module is faulty.
  • hwphyfaultresume: A power module recovers from a fault.
  • hwrtcfault: A real-time clock (RTC) is faulty.
  • hwrtcfaultresume: A real-time clock (RTC) recovers from a fault.
  • hwrxpowerexceedmajor: The Rx power exceeds the upper threshold.
  • hwrxpowerexceedminor: The Rx power falls below the lower threshold.
  • hwrxpowerresume: The Rx power restores to the normal range.
  • hwsubcardplugin: A subcard is installed.
  • hwsubcardpullout: A subcard is removed.
  • hwtempchipexcption: A temperature sensor chip is faulty.
  • hwtempchipexcptionresume: A temperature sensor chip recovers from a fault.
  • hwtempfallingalarm: The device temperature is too low.
  • hwtempfallingresume: The device temperature restores to the normal range.
  • hwtemprisingalarm: The device temperature is too high.
  • hwtemprisingresume: The device temperature restores to the normal range.
  • hwtxpowerexceedmajor: The Tx power exceeds the upper threshold.
  • hwtxpowerexceedminor: The Tx power falls below the lower threshold.
  • hwtxpowerresume: The Tx power restores to the normal range.
  • hwusbfault: A USB flash drive is faulty.
  • hwusbfaultresume: A USB flash drive recovers from a fault.
  • hwusbplugin: A USB flash drive is installed.
  • hwusbplugout: A USB flash drive is removed.
  • hwusbpowerfault: A USB 5V power module is faulty.
  • hwusbpowerfaultresume: A USB 5V power module recovers from a fault.
  • hwwriteflasherror: An error occurs when data is written to the flash memory.
  • hwwriteflasherrorresume: An error that occurs when data is written to the flash memory is resolved.
  • hwxauirefclockfault: An XAUIREF clock is faulty.
  • hwxauirefclockfaultresume: An XAUIREF clock recovers from a fault.

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 hwclpdcheckfault trap of the SRMTRAP module.

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

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

temperature threshold

Function

The temperature threshold command sets the temperature alarm thresholds.

The undo temperature threshold command restores the default temperature alarm thresholds.

By default, the lower temperature threshold is 0°C, and the upper temperature threshold varies according to hardware of various models, ranging from 44°C to 74°C.

Format

temperature threshold slot { slot-id | all } lower-limit min-temperature upper-limit max-temperature

undo temperature threshold slot { slot-id | all }

Parameters

Parameter

Description

Value

slot slot-id

  • Specifies the slot ID if stacking is not configured.
  • Specifies the stack ID if stacking is configured.

The value is integer that is 0 if stacking is not configured; and ranges from 0 to 8 if stacking is configured.

all

Sets the temperature alarm threshold for all member switches in a stack.

-

lower-limit min-temperature

Specifies the lower temperature alarm threshold.

The value is an integer that ranges from 0 to 74.

min-temperature specifies the value of the temperature. The value of min-temperature varies according to device models. The minimum value of min-temperature is the default lower threshold.

In a stack of multiple member switches, when all is specified in the temperature threshold command and the temperature alarm thresholds of all member switches are set, the min-temperature value is the largest value among the lower temperature alarm thresholds of the member switches.

upper-limit max-temperature

Specifies the upper temperature alarm threshold.

The value is an integer that ranges from 0 to 74.

max-temperature specifies the value of the temperature. The value of max-temperature varies according to device models. The maximum value of max-temperature is the default upper threshold.

max-temperature must be at least 10 greater than min-temperature.

In a stack of multiple member switches, when all is specified in the temperature threshold command and the temperature alarm thresholds of all member switches are set, the max-temperature value is the smallest value among the upper temperature alarm thresholds of the member switches.

Views

system view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The device generates an alarm and records log information when the device temperature falls below the lower threshold or rises above the upper threshold.

Precautions

  • If the configured threshold values are out of the allowed range, the configuration fails and the upper and lower thresholds are restored to the maximum values.
  • Configuration commands are generated in a configuration file regardless of whether the configured threshold values are default values. These commands can be cleared only when the undo temperature threshold command is executed.

Example

# Set the lower temperature alarm threshold to 20°C and upper temperature alarm threshold to 60°C for all member switches in a stack.
<HUAWEI> system-view
[HUAWEI] temperature threshold slot all lower-limit 20 upper-limit 60
Related Topics

transceiver diagnosis threshold rx-power

Function

The transceiver diagnosis threshold rx-power command sets the upper and lower thresholds for the receive optical power of the optical transceiver installed in an interface.

The undo transceiver diagnosis threshold rx-power command restores the upper and lower thresholds to the default values for the receive optical power of the optical transceiver installed in an interface.

By default, the optical power upper and lower thresholds vary according to optical module vendors.

Format

transceiver diagnosis threshold rx-power { default | low-alarm low-alarm high-alarm high-alarm }

undo transceiver diagnosis threshold rx-power

Parameters

Parameter

Description

Value

default

Sets the upper and lower thresholds for the receive optical power of the optical transceiver installed in an interface to default values.

-

high-alarm high-alarm

Sets the upper threshold for the receive optical power of the optical transceiver installed in an interface.

The value varies according to the optical module vendor.

low-alarm low-alarm

Sets the lower threshold for the receive optical power of the optical transceiver installed in an interface.

The value varies according to the optical module vendor.

Views

GE interface view, XGE interface view, 40GE interface view

Default Level

2: Configuration level

Usage Guidelines

You can run the transceiver diagnosis threshold rx-power command to adjust the receive optical power of the optical transceiver.

Example

# Set the upper and lower thresholds for the receive optical power of the optical transceiver installed in GigabitEthernet 0/0/2 to default values.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/2
[HUAWEI-GigabitEthernet0/0/2] transceiver diagnosis threshold rx-power default

transceiver diagnosis threshold tx-power

Function

The transceiver diagnosis threshold tx-power command sets the upper and lower thresholds for the transmit optical power of the optical transceiver installed in an interface.

The undo transceiver diagnosis threshold tx-power command restores the upper and lower thresholds for the transmit optical power of the optical transceiver installed in an interface to default values.

By default, the optical power upper and lower thresholds vary according to optical module vendors.

Format

transceiver diagnosis threshold tx-power { default | low-alarm low-alarm high-alarm high-alarm }

undo transceiver diagnosis threshold tx-power

Parameters

Parameter

Description

Value

default

Sets the upper and lower thresholds for the transmit optical power of the optical transceiver installed in an interface to default values.

-

high-alarm high-alarm

Sets the upper threshold for the transmit optical power of the optical transceiver installed in an interface.

The value varies according to the optical module vendor.

low-alarm low-alarm

Sets the lower threshold for the transmit optical power of the optical transceiver installed in an interface.

The value varies according to the optical module vendor.

Views

GE interface view, XGE interface view, 40GE interface view

Default Level

2: Configuration level

Usage Guidelines

You can run the transceiver diagnosis threshold tx-power command to adjust the transmit optical power of the optical transceiver.

Example

# Set the upper and lower thresholds for the transmit optical power of the optical transceiver installed in GigabitEthernet 0/0/2 to default values.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/2
[HUAWEI-GigabitEthernet0/0/2] transceiver diagnosis threshold tx-power default

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), 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.

NOTE:

This command is not supported by S1720GFR, S2750, S5700LI, and S5700S-LI.

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 XGigabitEthernet0/0/2.

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

Document ID: EDOC1000178165

Views: 46970

Downloads: 1159

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