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

Energy-saving 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.

als enable

Function

The als enable command enables ALS on an interface.

The undo als enable command disables ALS on an interface.

By default, ALS is disabled on an interface.

Format

als enable

undo als enable

Parameters

None

Views

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

Default Level

2: Configuration level

Usage Guidelines

The constraints on ALS are as follows:
  • Only optical interfaces support ALS. Electrical interfaces do not support ALS.

  • When optical interfaces transmit services unidirectionally, they do not support ALS.

Example

# Enable ALS on GigabitEthernet0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] als enable

als restart

Function

The als restart command manually restarts the laser of an interface.

Format

als restart

Parameters

None

Views

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

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run this command to manually restart the laser of an optical module. After the optical link recovers, the laser is started after a certain interval if the restart mode is automatic restart. To start the laser immediately after the optical link recovers, set the restart mode of the laser to manual restart and run the als restart command. If this command is not executed, the laser automatically sends a pulse after receiving a pulse from the remote end.

Prerequisites

ALS has been enabled on the interface using the als enable command and the restart mode of the laser has been set to manual restart mode using the als restart mode manual command.

Precautions

This command cannot be executed on an interface if the interface has been added to an interface protection group and is in Protect state.

Example

# Restart lasers on GigabitEthernet0/0/1 manually.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] als enable
[HUAWEI-GigabitEthernet0/0/1] als restart mode manual
[HUAWEI-GigabitEthernet0/0/1] als restart

als restart mode manual

Function

The als restart mode manual command sets the mode of restarting the laser of the optical module to manual.

The undo als restart mode manual command restores the mode of restarting the laser of the optical module to automatic.

By default, a laser works in automatic restart mode.

Format

als restart mode manual

undo als restart mode manual

Parameters

None

Views

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

Default Level

2: Configuration level

Usage Guidelines

The laser of an optical module works in automatic restart mode or manual restart mode.
  • In automatic restart mode, the laser sends pulses at the interval set using the als restart pulse-interval command to detect whether the link is recovered. The pulse width is set through the als restart pulse-width command.

  • In manual restart mode, you must manually start the laser using the als restart command so that the laser can send a pulse. The ALS pulse width is set using the als restart pulse-width command.

If the fiber link recovery is detected in time, you can use the manual restart mode so that the laser can send pulses immediately. Therefore, data communication can be recovered rapidly.

Example

# Configure lasers on GigabitEthernet0/0/1 to work in manual restart mode.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] als restart mode manual

als restart pulse-interval

Function

The als restart pulse-interval command sets the ALS pulse interval for the laser of an optical module.

The undo als restart pulse-interval command restores the default ALS pulse interval of the laser of an optical module.

By default, the ALS pulse interval of the laser is 100s.

Format

als restart pulse-interval pulse-interval

undo als restart pulse-interval

Parameters

Parameter Description Value
pulse-interval

Specifies the ALS pulse interval of the laser.

The value is an integer that ranges from 100 to 20000, in seconds.

Views

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

Default Level

2: Configuration level

Usage Guidelines

In automatic restart mode, the ALS pulse interval affects the frequency of detecting the LOS on the interface. A long ALS pulse interval is beneficial for energy saving, but the fiber link recovery cannot be detected in a timely manner. In contrary, a short ALS pulse interval wastes power but the fiber link recovery can be detected immediately.

Example

# Set the ALS pulse interval of lasers on GigabitEthernet0/0/1 to 150s.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] als restart pulse-interval 150

als restart pulse-width

Function

The als restart pulse-width command sets the ALS pulse width for the laser of an optical module.

The undo als restart pulse-width command restores the default ALS pulse width for the laser of an optical module.

By default, the ALS pulse width of the laser is 2s.

Format

als restart pulse-width pulse-width

undo als restart pulse-width

Parameters

Parameter Description Value
pulse-width

Specifies the ALS pulse width of the laser.

The value is an integer that ranges from 2 to 200, in seconds.

Views

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

Default Level

2: Configuration level

Usage Guidelines

The ALS pulse width refers to the period between rising edges of pulses. A short ALS pulse width is beneficial for energy saving, but the fiber link recovery cannot be detected immediately. In contrary, a long ALS pulse width consumes more power but the fiber link recovery can be detected immediately.

Example

# Set the ALS pulse width on GigabitEthernet0/0/1 to 3s.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] als restart pulse-width 3

display als configuration

Function

The display als configuration command displays ALS configuration.

Format

display als configuration slot slot-id

display als configuration interface interface-type interface-number

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 ranges from 0 to 8 if stacking is configured.

interface interface-type interface-number
Displays ALS configuration on a specified interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If an optical interface connects to a high-speed cable, this command does not have command output.

Example

# Display ALS configuration on GigabitEthernet0/0/1.

<HUAWEI> display als configuration interface gigabitethernet 0/0/1
------------------------------------------------------------------------------- 
Interface               ALS        Laser      Restart    Interval(s)   Width(s) 
                        Status     Status     Mode                              
------------------------------------------------------------------------------- 
GigabitEthernet0/0/1    Disable    On         Auto       100           2
------------------------------------------------------------------------------- 
Table 3-70  Description of the display als configuration command output

Item

Description

Interface

Interface type and number.

ALS Status

Whether ALS is enabled.
  • Enable: ALS is enabled.

  • Disable: ALS is disabled.

ALS is enabled using the als enable command.

Laser Status

Status of the laser on the interface. The value can be:
  • Off: The laser is shut down.

  • On: The laser is turned on.

  • --: No optical module is present on the interface.

Restart Mode

ALS restart mode.
  • Auto: automatic restart mode.

  • Manual: manual restart mode.

The ALS restart mode is set to manual using the als restart mode manual command.

Interval(s)

ALS pulse interval, expressed in seconds. The ALS pulse interval is set using the als restart pulse-interval command.

Width(s)

ALS pulse width, expressed in seconds. The ALS pulse width is set using the als restart pulse-width command.

display power manage cycle

Function

The display power manage cycle command displays the interval for updating power consumption data.

Format

display power manage cycle

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The average power consumption of a device is the average power consumption within a period of time. You can use the display power manage cycle command to view the interval for calculating the average power consumption.

Example

# Display the interval for updating power consumption data.

<HUAWEI> display power manage cycle
 3 : 1 hour 
Table 3-71  Description of the display power manage cycle command output

Item

Description

3 (1 hour)

The interval for updating power consumption data is 1 hour. You can set the interval to the following values:
  • 1 : 15 minutes

  • 2 : 30 minutes

  • 3 : 1 hour

  • 4 : 1 day

  • 5 : 1 week

  • 6 : 1 month (30 days)

To set the interval for updating power consumption data, use the set power manage cycle command.

display power manage mode

Function

The display power manage mode command displays the energy-saving mode of the device.

Format

display power manage mode

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display power manage mode command to check the currently configured energy-saving mode of the device.

Example

# Display the energy-saving mode of the device.

<HUAWEI> display power manage mode
2 (Standard mode)
Table 3-72  Description of the display power manage mode command output

Item

Description

2 (Standard mode)

Standard energy-saving mode. The device supports the following energy-saving modes:
  • 1. User-defined mode: user-defined energy-saving mode.

  • 2. Standard mode: standard energy-saving mode

  • 3. Basic mode: basic energy-saving mode

  • 4. Deep mode: depth energy-saving mode

  • 5. Standby mode.

NOTE:

The device does not support the user-defined mode.

Only the S5720-16X-PWH-LI supports the standby mode.

You can set the energy-saving mode using the set power manage mode command.

Related Topics

display power manage power-information

Function

The display power manage power-information command displays the power consumption information of a device.

Format

display power manage power-information

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display power manage power-information command enables you to check the system power consumption information, including the accumulative power consumption, average power, real-time power, rated power, and power threshold of the device.

Example

# Display the system power consumption information.

<HUAWEI> display power manage power-information
The information of net element power:
 --------------------------------------------------
 The total power consumption (Joule) : 1000
 The average power consumption (mW)  : 20000
 The current power consumption (mW)  : 20000
 The rated power (mW)                : 433000
 The threshold of power (mW)         : 433000
 --------------------------------------------------
Table 3-73  Description of the display power manage power-information command output

Item

Description

The information of net element power

System power consumption information.

The total power consumption (Joule)

Accumulative power consumption, in Joule.

This field displays NA when the device type is S1720GFR, S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S2750EI, S5700LI, S5700S-LI, S5720LI, S5720S-LI, S5710-X-LI, S5720S-SI and S5720SI.

NOTE:

The accumulative power consumption is stored in the device memory and will not be lost when the device is powered off. When the device is running, power consumption is accumulated once every 15 minutes. The accumulated power consumption and accumulative power consumption in the memory are added and recorded in the memory once every 24 hours. If there is no accumulative power consumption in the memory, this field displays 0. If the device is powered off within 24 hours after starting, the power consumption accumulated within 24 hours is not added to the accumulative power consumption in the memory.

The average power consumption (mW)

Average power of the system, in mW.

This field displays NA when the device type is S1720GFR, S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S2750EI, S5700LI, S5700S-LI, S5720LI, S5720S-LI, S5710-X-LI, S5720S-SI and S5720SI.

The current power consumption (mW)

Real-time power of the system, in mW.

This field displays NA when the device type is S1720GFR, S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S2750EI, S5700LI, S5700S-LI, S5720LI, S5720S-LI, S5710-X-LI, S5720S-SI and S5720SI.

The rated power (mW)

Rated power of the system, in mW.

The threshold of power (mW)

Power threshold of the power supply unit, in mW. The value is the rated power supplied to the device by power supply units.

When there are two power supply units on the device, they work in redundancy mode to supply power to the system. The supplied power is not the accumulated power of the two power supply units. When the rated power of both power supply units can be obtained, this field displays the smaller rated power. If the rated power of one power supply unit cannot be obtained, this field displays the obtained rated power. If the rated power of both power supply units cannot be obtained, this field displays the system rated power.

display power manage sleep configuration

Function

The display power manage sleep configuration command displays device dormancy information.

NOTE:
The following product models support the sleep mode:
  • S5710-X-LI
  • S5700S-LI: S5700S-28P-LI-AC, S5700S-52P-LI-AC, S5700S-28X-LI-AC, and S5700S-52X-LI-AC
  • S5700LI: S5700-28P-LI-AC, S5700-28TP-LI-AC, S5700-28P-LI-DC, S5700-52P-LI-AC, S5700-52P-LI-DC, S5700-28X-LI-AC, S5700-28X-LI-DC, S5700-52X-LI-AC, S5700-52X-LI-DC, and S5701-28X-LI-AC
  • S5720SI: S5720-28P-SI-AC, S5720-28X-SI-AC, S5720-28X-SI-DC, S5720-52P-SI-AC, S5720-52X-SI-DC, and S5720-52X-SI-AC
  • S5720S-SI: S5720S-28P-SI-AC, S5720S-28X-SI-AC, S5720S-28X-SI-DC, S5720S-52P-SI-AC, S5720S-52X-SI-DC, and S5720S-52X-SI-AC

Format

display power manage sleep configuration

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display power manage sleep configuration command shows device dormancy information, including the time range, period during which the awakening port status is detected continuously, awakening mode, and non-awakening ports.

Example

# Display the device dormancy configuration.

<HUAWEI> display power manage sleep configuration
The device sleep function status: enable                                         
The device sleep time-range: night-time                                     
-----------------------------------------------                                 
Current time is 16:19:45 5-14-2012 Monday                                       
                                                                                
Time-range: night-time ( Inactive )                                             
20:00 to 00:00 working-day                                                      
00:00 to 08:00 working-day                                                      
-----------------------------------------------                                 
The awaken port state check interval (minutes): 20(default)                      
The configuration of awaken mode: normal                                         
The configuration of non-awaken port:                                           
-----------------------------------------------                                 
 GigabitEthernet0/0/1     GigabitEthernet0/0/2                                  
 GigabitEthernet0/0/3     GigabitEthernet0/0/4                                  
 GigabitEthernet0/0/5     GigabitEthernet0/0/6                                  
 GigabitEthernet0/0/7     GigabitEthernet0/0/8                                  
 GigabitEthernet0/0/9     GigabitEthernet0/0/10                                 
-----------------------------------------------                                
Table 3-74  Description of the display power manage sleep configuration command output

Item

Description

The device sleep function status

Device dormancy mode.

  • disable: The device dormancy function is disabled. That is, the device energy-saving mode configured using the set power manage mode command is not 4.
  • enable: The device dormancy function is enabled. That is, the device energy-saving mode configured using the set power manage mode command is 4.

The device sleep time-range

Dormancy time range name. If no dormancy time range is specified, the whole day takes effect by default.

To set a dormancy time range, run the sleep time-range command.

Time-range

Dormancy time range.
  • If the field value contains ( Inactive ), the current time is not within the dormancy time range.
  • If the field value contains ( Active ), the current time is within the dormancy time range.

The awaken port state check interval (minutes)

Period during which the awakening port status is detected continuously.

To set the period, run the set power manage interval command.

The configuration of awaken mode

Configured awakening mode.
  • normal: Traffic forwarding does not resume quickly after the device exits the device dormancy mode.
  • fast: Traffic forwarding resumes quickly after the device exits the device dormancy mode.

To enable the fast awakening mode, run the set power manage awaken-mode fast command.

The configuration of non-awaken port

Configured non-awakening ports.

To configure non-awakening ports, run the set power manage non-awaken-port command.

display snmp-agent trap feature-name spmtrap all

Function

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

NOTE:
The following product models support the sleep mode:
  • S5710-X-LI
  • S5700S-LI: S5700S-28P-LI-AC, S5700S-52P-LI-AC, S5700S-28X-LI-AC, and S5700S-52X-LI-AC
  • S5700LI: S5700-28P-LI-AC, S5700-28TP-LI-AC, S5700-28P-LI-DC, S5700-52P-LI-AC, S5700-52P-LI-DC, S5700-28X-LI-AC, S5700-28X-LI-DC, S5700-52X-LI-AC, S5700-52X-LI-DC, and S5701-28X-LI-AC
  • S5720SI: S5720-28P-SI-AC, S5720-28X-SI-AC, S5720-28X-SI-DC, S5720-52P-SI-AC, S5720-52X-SI-DC, and S5720-52X-SI-AC
  • S5720S-SI: S5720S-28P-SI-AC, S5720S-28X-SI-AC, S5720S-28X-SI-DC, S5720S-52P-SI-AC, S5720S-52X-SI-DC, and S5720S-52X-SI-AC

Format

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

Prerequisites

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

Example

# Display all the traps of the SPMTRAP module.

<HUAWEI>display snmp-agent trap feature-name spmtrap all
------------------------------------------------------------------------------                                                      
Feature name: SPMTRAP                                                                                                               
Trap number : 1                                                                                                                     
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwEnergyDevChangeToSleep        on                      on 
Table 3-75  Description of the display snmp-agent trap feature-name spmtrap 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 SPMTRAP module include:

  • hwEnergyDevChangeToSleep: The device enters the sleeping mode.

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.

energy-efficient-ethernet enable

Function

The energy-efficient-ethernet enable command enables the Energy Efficient Ethernet (EEE) function on an electrical interface.

The undo energy-efficient-ethernet enable command disables the EEE function on an electrical interface.

By default, EEE is disabled on an electrical interface.

Format

energy-efficient-ethernet enable

undo energy-efficient-ethernet enable

Parameters

None

Views

GE interface view, port group view, MultiGE interface view, XGE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The system provides power for each interface. Even though an interface is idle, it consumes the same power as working interfaces. The energy-efficient-ethernet enable command enables the system to reduce the power on an interface when the interface is idle and restore the power when the interface starts to transmit data. This reduces system power consumption.

Prerequisites

If an electrical interface works in non-auto negotiation mode, run the negotiation auto command to enable auto-negotiation.

Precautions

The EEE function can be configured only on electrical interfaces (including combo electrical interfaces). Optical interfaces do not support the EEE function. S2750EI does not support the EEE function.

If an electrical interface works at 10 Mbit/s after auto-negotiation, the EEE function does not take effect.

The S6720EI and S6720S-EI do not support the EEE function.

Enabling or disabling EEE on an interface will trigger re-negotiation. During the negotiation, the interface may change to Down state, which causes short service interruption. Therefore, determine whether the operation is allowed before you run this command.

Example

# Enable the EEE function on electrical interface GE0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] energy-efficient-ethernet enable

port-auto-sleep enable

Function

The port-auto-sleep enable command enables the port dormancy function on an Ethernet electrical port to save energy.

The undo port-auto-sleep enable command disables the port dormancy function on an Ethernet electrical port.

By default, the port dormancy function is disabled on an Ethernet electrical port.

Format

port-auto-sleep enable

undo port-auto-sleep enable

Parameters

None

Views

GE interface view, port group view, Ethernet interface view

Default Level

2: Configuration level

Usage Guidelines

The port-auto-sleep enable command enables electrical port dormancy. If this function is enabled on a port, the port enters the energy-saving mode when no carrier wave signals are transmitted on the port. When carrier wave signals are transmitted on the port, the port exits the energy-saving mode. Port sleep does not affect functioning of the port.

NOTE:

This command can be used on electrical interfaces and combo interfaces working as electrical interfaces.

The port sleeping function is enabled by default on the 2*10GE electrical sub-card supported by the S5720EI and cannot be disabled.

Example

# Enable the port dormancy function on GigabitEthernet0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port-auto-sleep enable

set power manage awaken-mode fast

Function

The set power manage awaken-mode fast command enables the fast awaking mode to allow the device to restore Layer 2 traffic quickly after exiting the device sleeping mode.

The undo set power manage awaken-mode fast command disables the fast awaking mode.

By default, a device cannot restore services quickly after exiting the device sleeping mode.

NOTE:

Only S5700S-28P-LI-AC and S5700S-52P-LI-AC in the S5700S-LI series and S5700-28P-LI-AC, S5700-28P-LI-DC, S5700-52P-LI-AC, S5700-52P-LI-DC in the S5700LI series support this command.

Format

set power manage awaken-mode fast

undo set power manage awaken-mode fast

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

A device can wake from the deep sleeping state in any of the following conditions:

  • A user logs in to the device through the serial port and presses Ctrl+W.
  • A user logs in from the awakening port.
  • The sleeping time range expires (if a time range is configured).
  • A user clicks the mode switching button.

The awaking process takes a relatively long time, and services cannot be restored quickly. To shorten the awaking time, you can use the set power manage awaken-mode command to enable the fast awaking mode. This mode enables a device to restore fast Layer 2 traffic after exiting the device sleeping mode.

Precautions

Before using the set power manage awaken-mode command, run the stp disable command in the system view to disable STP globally and run the save command to save the configuration. Loops may occur when STP is disabled; therefore, monitor the network status to check for loops when using the fast awaking function.

In a stack, the set power manage awaken-mode fast command cannot enable a device to fast restore Layer 2 traffic after exiting the device sleeping mode. However, you can use the undo set power manage awaken-mode fast command to delete the configuration in standalone mode.

Example

# Enable the fast awaking mode.

<HUAWEI> system-view
[HUAWEI] set power manage awaken-mode fast
Warning: This command will take effect only after disable stp and saving the c
onfiguration. Some service would be affected with this awaken mode after the dev
ice restored from sleep. Continue?[Y/N]:y                                       
Info: Succeeded in setting the configuration. 

set power manage cycle

Function

The set power manage cycle command sets the interval for updating power consumption data.

The undo set power manage cycle command restores the default interval for updating power consumption data.

By default, the interval for updating power consumption data is 1 hour.

Format

set power manage cycle cycle-id

undo set power manage cycle

Parameters

Parameter Description Value
cycle-id

Sets the interval for updating power consumption data.

The value is an integer that ranges from 1 to 6.
  • 1: 15 minutes

  • 2: 30 minutes

  • 3: 1 hour

  • 4: 1 day

  • 5: 1 week

  • 6: 30 days

Views

System view

Default Level

3: Management level

Usage Guidelines

The average power consumption of a device is the average power consumption within a period of time. You can use the set power manage cycle command to set the interval for calculating the average power consumption. To obtain real-time power consumption, set a short interval.

Example

# Set the interval for updating power consumption data to 15 minutes.

<HUAWEI> system-view
[HUAWEI] set power manage cycle 1

set power manage interval

Function

The set power manage interval command sets the period during which the awakening port status is probed continuously.

The undo set power manage interval command restores the default period during which the awakening port status is probed continuously.

By default, the period is 20 minutes.

NOTE:
The following product models support the sleep mode:
  • S5710-X-LI
  • S5700S-LI: S5700S-28P-LI-AC, S5700S-52P-LI-AC, S5700S-28X-LI-AC, and S5700S-52X-LI-AC
  • S5700LI: S5700-28P-LI-AC, S5700-28TP-LI-AC, S5700-28P-LI-DC, S5700-52P-LI-AC, S5700-52P-LI-DC, S5700-28X-LI-AC, S5700-28X-LI-DC, S5700-52X-LI-AC, S5700-52X-LI-DC, and S5701-28X-LI-AC
  • S5720SI: S5720-28P-SI-AC, S5720-28X-SI-AC, S5720-28X-SI-DC, S5720-52P-SI-AC, S5720-52X-SI-DC, and S5720-52X-SI-AC
  • S5720S-SI: S5720S-28P-SI-AC, S5720S-28X-SI-AC, S5720S-28X-SI-DC, S5720S-52P-SI-AC, S5720S-52X-SI-DC, and S5720S-52X-SI-AC

Format

set power manage interval interval-time

undo set power manage interval

Parameters

Parameter

Description

Value

interval interval-time

Specifies the period during which the awakening port status is probed continuously.

The value is an integer ranging from 5 to 60, in minutes.

Views

System view

Default Level

3: Management level

Usage Guidelines

When the device does not enter the dormancy state in the specified time range, the device continuously probes the status of all awakening ports. The device enters the dormancy state when the device does not probe any awakening port in Up state within the default 20 minutes. Otherwise, the device continues to probe the awakening ports status.

If no time range is applied to the device, the device probes the status of all awakening ports all round the clock. By default, the device enters the dormancy state when the device does not probe any awakening port in Up state within 20 minutes.

A device enters the dormancy state when the conditions for device dormancy are met. On the S5700S-28P-LI-AC and S5700S-52P-LI-AC in the S5700S-LI series and S5700-28P-LI-AC, S5700-28P-LI-DC, S5700-52P-LI-AC, S5700-52P-LI-DC in the S5700LI series, save the configuration immediately after you run this command.

NOTE:

In a stack, the set power manage interval command cannot set the period during which the awakening port status is detected continuously. However, you can use the undo set power manage interval command to delete the configuration in standalone mode.

Example

# Set the period during which the awakening port status is probed continuously to 10 minutes.

<HUAWEI> system-view
[HUAWEI] set power manage interval 10
[HUAWEI] quit
<HUAWEI> save

set power manage mode

Function

The set power manage mode command sets the energy-saving mode of the device.

The undo set power manage mode command restores the default energy-saving mode of the device.

By default, the standard energy-saving mode is used.

Format

set power manage mode mode-id

undo set power manage mode

Parameters

Parameter Description Value
mode-id

Specifies the energy-saving mode of the device.

The value is an integer that ranges from 1 to 5:
  • 1: indicates the user-defined energy-saving mode. This mode is not supported currently.

  • 2: indicates the standard energy-saving mode.

  • 3: indicates the basic energy-saving mode.

  • 4: indicates the deep energy-saving mode.

  • 5: indicates the standby energy-saving mode.

    NOTE:
    Only the S5720-16X-PWH-LI supports the standby energy-saving mode.

Views

System view

Default Level

3: Management level

Usage Guidelines

The set power manage mode command sets the energy-saving mode of the device.

The device can run in the following energy-saving modes:
  • Standard mode

    Factory mode and default power saving mode.

  • Basic mode

    Components not in use are shut down or switched to the sleep mode when no services are configured or users are not online.

  • Deep mode

    Power consumption is dynamically adjusted for running services, and components not in use are shut down or switched to the sleep mode according to service requirements.

  • Standby mode

    The device enters the low power consumption mode when it does not need to provide PoE power to PDs and shuts down all the interfaces except GE0/0/13 and GE0/0/14.

NOTE:
  • The ALS, EEE, and port dormancy functions are disabled in standard mode by default. However, the port dormancy function is enabled by default on the 2*10GE electrical sub-card supported by the S5720EI and cannot be disabled.

  • The ALS, EEE, and port dormancy functions are enabled by default in basic or deep mode.
  • The deep mode adds the device dormancy function based on functions of the basic mode.
  • Only the S5720-16X-PWH-LI supports the standby mode. The interfaces that have been shut down in standby mode cannot be enabled manually using a command. To enable these interfaces manually, ensure that the switch exits the standby mode.
  • Before entering the standby mode, the system forcibly saves the configuration to the configuration file that is being used by the device.
  • The configuration restoration function is not configured in the standby mode. That is, after the device restarts, the currently configured standby mode of an interface is automatically restored to the default standard mode.
  • On the S5720-16X-PWH-LI XGE0/0/1 and XGE0/0/2, installing optical modules and configuring the standby mode are mutually exclusive. That is, the two interfaces cannot have the standby mode configured after they have optical modules installed. When they work in standby mode, installing optical modules into them will restore them to the default standard mode or may even restart the device.

After the energy-saving mode is set to basic or deep mode, loopback test on interfaces is disabled. Therefore, before performing a loopback test, set the energy-saving mode to standard mode.

NOTE:
  • The minimum interval between configuring and disabling the standby mode is 15s.
  • The standby mode cannot be configured in a stack.
  • When the device is switched from the basic or deep mode to the standby mode, disabling the EEE function may cause interface flapping. Similarly, when the device is switched from the standby mode to the basic or deep mode, enabling the EEE function may cause interface flapping.
  • Before entering the standby mode, the system forcibly saves the configuration to the configuration file that is being used by the device.
  • The configuration restoration function is not configured in the standby mode. That is, after the device restarts, the currently configured standby mode of an interface is automatically restored to the default standard mode.
  • On the S5720-16X-PWH-LI XGE0/0/1 and XGE0/0/2, installing optical modules and configuring the standby mode are mutually exclusive. That is, the two interfaces cannot have the standby mode configured after they have optical modules installed. When they work in standby mode, installing optical modules into them will restore them to the default standard mode or may even restart the device.

Example

# Set the energy-saving mode of the device to basic mode.

<HUAWEI> system-view
[HUAWEI] set power manage mode 3
Warning: Performance of ALS, EEE, Auto sleep will be enabled, and the EEE function may lead to port flapping. Continue?[Y/N]:y
Info: It will take a few seconds. Please wait... 

# Set the energy-saving mode of the device to deep mode.

<HUAWEI> system-view
[HUAWEI] set power manage mode 4
Warning: Performance of ALS, EEE, Auto sleep will be enabled, and the EEE function may lead to port flapping. Continue?[Y/N]:y
Warning: This command will enable the device sleep function. The device will enter in sleep mode under the conditon specified, and all of service will not be provided. Continue? [Y/N]:y
Info: It will take a few seconds. Please wait...
Info: Succeeded in setting the configuration.
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:/s249.cfg. Continue? [Y/N]:y
Now saving the current configuration to the slot 0....
Save the configuration successfully.

# Set the energy-saving mode of the device to standby mode.

<HUAWEI> system-view
[HUAWEI] set power manage mode 5
Warning: When the device enters the standby mode, some ports will enter the power down mode and become unavailable. Installing the optical module to a switch in standby mode will cause the switch to restart. Continue?[Y/N]:y
Info: It will take a few seconds. Please wait...

set power manage non-awaken-port

Function

The set power manage non-awaken-port command configures a port as a non-awakening port.

The undo set power manage non-awaken-port command restores a non-awakening port to be an awakening port.

By default, all ports are awakening ports.

NOTE:
The following product models support the sleep mode:
  • S5710-X-LI
  • S5700S-LI: S5700S-28P-LI-AC, S5700S-52P-LI-AC, S5700S-28X-LI-AC, and S5700S-52X-LI-AC
  • S5700LI: S5700-28P-LI-AC, S5700-28TP-LI-AC, S5700-28P-LI-DC, S5700-52P-LI-AC, S5700-52P-LI-DC, S5700-28X-LI-AC, S5700-28X-LI-DC, S5700-52X-LI-AC, S5700-52X-LI-DC, and S5701-28X-LI-AC
  • S5720SI: S5720-28P-SI-AC, S5720-28X-SI-AC, S5720-28X-SI-DC, S5720-52P-SI-AC, S5720-52X-SI-DC, and S5720-52X-SI-AC
  • S5720S-SI: S5720S-28P-SI-AC, S5720S-28X-SI-AC, S5720S-28X-SI-DC, S5720S-52P-SI-AC, S5720S-52X-SI-DC, and S5720S-52X-SI-AC

Format

set power manage non-awaken-port interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>

undo set power manage non-awaken-port interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>

Parameters

Parameter

Description

Value

interface { interface-type interface-number1 [ to interface-type interface-number2 ]
Specifies the type and number of an interface:
  • interface-type specifies the type of the interface.

  • interface-number1 specifies the number of the first interface.

  • interface-number2 specifies the number of the second interface.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

You can use the set power manage non-awaken-port command to configure some ports as non-awakening ports so that these ports do not affect device dormancy and awakening. This is because device dormancy and awakening depend on the awakening port status.

A device enters the dormancy state when the conditions for device dormancy are met. On the S5700S-28P-LI-AC and S5700S-52P-LI-AC in the S5700S-LI series and S5700-28P-LI-AC, S5700-28P-LI-DC, S5700-52P-LI-AC, S5700-52P-LI-DC in the S5700LI series, save the configuration immediately after you run this command.

NOTE:

In a stack, the set power manage non-awaken-port command cannot configure a port as a non-awakening port. However, you can use the undo set power manage non-awaken-port command to delete the configuration in standalone mode.

Example

# Configure interfaces GigabitEthernet0/0/1 to GigabitEthernet0/0/5 as non-awakening interfaces.

<HUAWEI> system-view
[HUAWEI] set power manage non-awaken-port interface gigabitethernet 0/0/1 to gigabitethernet 0/0/5
Info: Succeeded in setting the configuration.
[HUAWEI] quit
<HUAWEI> save

sleep time-range

Function

The sleep time-range command applies a time range to the device in dormancy state.

The undo sleep time-range command deletes the time range.

By default, no time range is applied to the device.

NOTE:
The following product models support the sleep mode:
  • S5710-X-LI
  • S5700S-LI: S5700S-28P-LI-AC, S5700S-52P-LI-AC, S5700S-28X-LI-AC, and S5700S-52X-LI-AC
  • S5700LI: S5700-28P-LI-AC, S5700-28TP-LI-AC, S5700-28P-LI-DC, S5700-52P-LI-AC, S5700-52P-LI-DC, S5700-28X-LI-AC, S5700-28X-LI-DC, S5700-52X-LI-AC, S5700-52X-LI-DC, and S5701-28X-LI-AC
  • S5720SI: S5720-28P-SI-AC, S5720-28X-SI-AC, S5720-28X-SI-DC, S5720-52P-SI-AC, S5720-52X-SI-DC, and S5720-52X-SI-AC
  • S5720S-SI: S5720S-28P-SI-AC, S5720S-28X-SI-AC, S5720S-28X-SI-DC, S5720S-52P-SI-AC, S5720S-52X-SI-DC, and S5720S-52X-SI-AC

Format

sleep time-range timerange-name

undo sleep time-range timerange-name

Parameters

Parameter

Description

Value

timerange-name

Specifies the name of a time range that applies to the device.

The value is a string of 1 to 32 case-sensitive characters without spaces and must start with an uppercase or lowercase.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

A device on an enterprise network is not used at certain time. You can apply a time range to the device in dormancy mode to save power. When dormancy conditions are met, the device automatically enters the dormancy state during the time range. When the time range expires, the device is awakened.

When an awakening interface detects a user, the device in dormancy mode is awakened. User services on the device are not affected.

The device enters the sleeping mode when the following conditions are met:
  • The device works in deep mode. By default, the standard energy-saving mode is used.
  • A time range applies to the device in sleeping mode.
  • During the period for continuously detecting awakening port status, the terminals (switches or PCs) connected to awakening ports are shut down.
    NOTE:

    If the terminal is a PC, the device can enter the dormancy state only when the PC is shut down and its network adapter is powered off (this can be set in the power management module of BIOS).

The device is awakened when either of the following conditions is met:
  • A user logs in to the device through the serial port and presses Ctrl+W.
  • The terminals (switches or PCs) connected to awakening ports are started up.
  • The sleeping time range expires (if a time range is configured).
  • A user presses the mode switching button.
Prerequisites
  • The energy-saving mode of the device has been set to deep mode using the set power manage mode command.

  • A time range has been specified using the time-range command.

A device enters the dormancy state when the conditions for device dormancy are met. On the S5700S-28P-LI-AC and S5700S-52P-LI-AC in the S5700S-LI series and S5700-28P-LI-AC, S5700-28P-LI-DC, S5700-52P-LI-AC, S5700-52P-LI-DC in the S5700LI series, save the configuration immediately after you run this command.

NOTE:

In a stack, the sleep time-range command cannot apply a time range to the device in dormancy state. However, you can use the undo sleep time-range command to delete the configuration in standalone mode.

Example

# Apply the time range 1:00 to 6:00 am to the device.

<HUAWEI> system-view
[HUAWEI] set power manage mode 4
[HUAWEI] time-range test 1:00 to 6:00 daily
[HUAWEI] sleep time-range test
[HUAWEI] quit
<HUAWEI> save

snmp-agent trap enable feature-name spmtrap

Function

snmp-agent trap enable feature-name spmtrap command enables the trap function for the SPMTRAP module.

undo snmp-agent trap enable feature-name spmtrap command disables the trap function for the SPMTRAP module.

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

NOTE:
The following product models support the sleep mode:
  • S5710-X-LI
  • S5700S-LI: S5700S-28P-LI-AC, S5700S-52P-LI-AC, S5700S-28X-LI-AC, and S5700S-52X-LI-AC
  • S5700LI: S5700-28P-LI-AC, S5700-28TP-LI-AC, S5700-28P-LI-DC, S5700-52P-LI-AC, S5700-52P-LI-DC, S5700-28X-LI-AC, S5700-28X-LI-DC, S5700-52X-LI-AC, S5700-52X-LI-DC, and S5701-28X-LI-AC
  • S5720SI: S5720-28P-SI-AC, S5720-28X-SI-AC, S5720-28X-SI-DC, S5720-52P-SI-AC, S5720-52X-SI-DC, and S5720-52X-SI-AC
  • S5720S-SI: S5720S-28P-SI-AC, S5720S-28X-SI-AC, S5720S-28X-SI-DC, S5720S-52P-SI-AC, S5720S-52X-SI-DC, and S5720S-52X-SI-AC

Format

snmp-agent trap enable feature-name spmtrap [ trap-name hwenergydevchangetosleep ]

undo snmp-agent trap enable feature-name spmtrap [ trap-name hwenergydevchangetosleep ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for the specified event.

-

hwenergydevchangetosleep

Enables the trap function when the device enters the sleeping mode.

-

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 hwenergydevchangetosleep trap of the SPMTRAP module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name spmtrap trap-name hwenergydevchangetosleep
Translation
Download
Updated: 2019-10-21

Document ID: EDOC1000178165

Views: 48855

Downloads: 1171

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