< Home

Example for Configuring Device Dormancy

Networking Requirements

The office network in Figure 1 uses S5720-28P-SI-AC devices for networking. GigabitEthernet0/0/24 connects to a printer. GigabitEthernet0/0/28 functions as an upstream interface. Interfaces GigabitEthernet0/0/25 to GigabitEthernet0/0/27 are idle and other interfaces connect to user hosts.

The working time is from 08:00 to 18:00 and few employees work overtime. The device is seldom used between 00:00 and 08:00 and between 18:00 and 00:00 Monday to Friday, so dormancy mode is configured during these time ranges. The device is in dormancy mode at weekends. Allowing for some employees to come early and go later, the time range is set from 00:00 to 07:00 and 19:00 to 00:00 on working days. At weekends, the time range is set to 00:00 to 00:00.

Figure 1 Networking diagram for dormancy configuration

Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure an energy-saving mode for the device.

  2. Apply a time range to the device in dormancy mode to save power.

  3. Configure an interface as a non-awakening interface.

Procedure

  1. Configure an energy-saving mode.

    # Set the energy-saving mode of the switch 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. It will take a few seconds. Continue?[Y/N]:y   
    Warning: This command will enable the device sleep function. The device will ent
    er in sleep mode under the conditon specified, and all of service will not be pr
    ovided. Continue? [Y/N]:y                                                       
    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 s
    tartup saved-configuration file flash:/vrpcfg.zip. Continue? [Y/N]:y            
    Now saving the current configuration to the slot 1.                             
    Save the configuration successfully.  

  2. Configure a dormancy time range.

    # Configure three time ranges: 00:00 am to 7:00 am and 19:00 pm to 00:00 am in the working day from Monday to Friday, and 00:00 to 00:00 in Saturday and Sunday.

    [HUAWEI] time-range sleeptime 00:00 to 07:00 working-day
    [HUAWEI] time-range sleeptime 19:00 to 00:00 working-day
    [HUAWEI] time-range sleeptime 00:00 to 00:00 off-day
    

    # Apply the time ranges in which the device is in dormancy mode.

    [HUAWEI] sleep time-range sleeptime
    Warning: The device will enter in sleep mode in the time-range specified, and al
    l of service will not be provided. Continue? [Y/N]:y                            
    Info: Succeeded in setting time range of sleep mode.

  3. Configure non-awakening ports.

    # Configure ports GigabitEthernet0/0/24 to GigabitEthernet0/0/28 as non-awakening interfaces.

    [HUAWEI] set power manage non-awaken-port interface gigabitethernet 0/0/24 to gigabitethernet 0/0/28
    [HUAWEI] quit
    

  4. Save the configuration.

    <HUAWEI> save
    The current configuration will be written to the device.                                                                            
    Are you sure to continue?[Y/N]y                                                                                                     
    Now saving the current configuration to the slot 0.                                                                                 
    Save the configuration successfully. 

  5. Verify the configuration.

    # Check device dormancy configurations.

    <HUAWEI> display power manage sleep configuration
    The device sleep function status: enable 
    The device sleep time-range: sleeptime                                     
    -----------------------------------------------                                 
    Current time is 22:22:25 1-31-2012 Monday                                       
                                                                                    
    Time-range: sleeptime ( Active )                                                
    00:00 to 07:00 working-day                                                      
    19:00 to 00:00 working-day                                                      
    00:00 to 00:00 off-day                                                          
    -----------------------------------------------                                 
    The awaken port state check interval (minutes): 20(default)   
    The configuration of awaken mode: normal
    The configuration of non-awaken port:                                           
    -----------------------------------------------                                 
     GigabitEthernet0/0/24    GigabitEthernet0/0/25                                 
     GigabitEthernet0/0/26    GigabitEthernet0/0/27                                 
     GigabitEthernet0/0/28                                                          
    -----------------------------------------------   

Configuration file

Switch configuration file

#                                                                               
set power manage mode 4                                                         
sleep time-range sleeptime                                                      
set power manage non-awaken-port interface GigabitEthernet0/0/24                
set power manage non-awaken-port interface GigabitEthernet0/0/25                
set power manage non-awaken-port interface GigabitEthernet0/0/26                
set power manage non-awaken-port interface GigabitEthernet0/0/27                
set power manage non-awaken-port interface GigabitEthernet0/0/28                
#
time-range sleeptime 00:00 to 07:00 working-day                                 
time-range sleeptime 19:00 to 00:00 working-day                                 
time-range sleeptime 00:00 to 00:00 off-day                                     
#  
return  
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic