< Home

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.

Only the 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 in the S5720-SI series, and the S5735-S, S5735-S-I, S5735S-S, S5735-L, S5735S-L, S5735S-L-M, and S5720S-SI series switches support the sleep mode.

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.

    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.

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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >