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

Configuration Guide - Basic Configuration

S7700 and S9700 V200R010C00

This document describes methods to use command line interface and to log in to the device, file operations, and system startup configurations.
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).
Example for Implementing a Batch Upgrade Using the Commander

Example for Implementing a Batch Upgrade Using the Commander

Networking Requirements

On the enterprise network shown in Figure 2-13, clients 1 through 6 in office buildings have reachable routes to the switch and file server. The IP address of the switch is 172.31.20.10/24, and the IP address of the file server is 172.31.1.90. To reduce labor costs and facilitate later upgrade and maintenance, the enterprise wants the clients to automatically obtain required files for batch upgrades.

Table 2-7 lists information about clients 1 through 6 and files that they need to load.

Table 2-7  Client information and files to be loaded
Client Device Type MAC Address IP Address Files to Be Loaded
Client1 S7700 - 172.31.20.100/24

s7700.cc

license.dat

header1.txt

Client2 S5700-HI -

s5700-hi.cc

Client3 S5700-HI - -

s5700-hi.cc

Client4 S5700-X-LI - 172.31.10.10/24

s5700-x-li.cc

Client5 S5700-HI - -

s5700-hi.cc

Client6 S5700-SI 5489-9875-ea12 -

web_1.web.7z

header.txt

Figure 2-13  Networking diagram for a batch upgrade using the Commander

Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure the file server and save the files to be loaded on the file server.
  2. Specify the Commander IP address on the clients.
  3. Configure the Commander function on the switch to implement a batch upgrade using the Commander.

    • Configure basic functions for the Commander.
    • Configure groups for the clients and specify files to be loaded in the groups.
    • Enable automatic configuration backup on the Commander to facilitate replacement of faulty devices in future maintenance.
    • Some clients are connected in cascading networking. To ensure that downstream Client5 and Client6 can download required files successfully, configure a specific file activation time on the Commander. To minimize the impact of the upgrade on services, configure the clients to active downloaded files at 2:00 a.m.
  4. Start the batch upgrade process.

Procedure

  1. Configure the file server.

    Configure the file server according to the server manual.

    After completing the configuration, save the required files on the file server.

  2. Specify the Commander IP address on the clients.

    # Specify the Commander IP address on Client1.

    <HUAWEI> system-view
    [HUAWEI] easy-operation commander ip-address 172.31.20.10

    Specify the Commander IP address on Client2 to Client6 in the same way.

  3. Configure basic functions for the Commander.

    <HUAWEI> system-view
    [HUAWEI] sysname Commander
    [Commander] easy-operation commander ip-address 172.31.20.10
    [Commander] easy-operation commander enable
    [Commander] easy-operation
    [Commander-easyoperation] sftp-server 172.31.1.90 username admin password EasyOperation
    [Commander-easyoperation] backup configuration interval 2

  4. Enable the client auto-join function on the Commander.

    [Commander-easyoperation] client auto-join enable

    After the auto-join function is enabled, you can run the display easy-operation client command to check information about the clients and files that the clients have downloaded from the Commander.

  5. Specify file information and file activation mode on the Commander.

    # Configure a group based on the IP address of Client1, and specify information about the files to be loaded.

    [Commander-easyoperation] group custom ip-address g1
    [Commander-easyoperation-group-custom-g1] match ip-address 172.31.20.100 24
    [Commander-easyoperation-group-custom-g1] system-software s7700.cc
    [Commander-easyoperation-group-custom-g1] license license.dat
    [Commander-easyoperation-group-custom-g1] custom-file header1.txt
    [Commander-easyoperation-group-custom-g1] quit
    

    # On the Commander, configure a built-in group based on the device type of Client2, Client3 and Client5, and specify information about the files to be downloaded in the group.

    [Commander-easyoperation] group build-in s5700-hi
    [Commander-easyoperation-group-build-in-S5700-HI] system-software s5700-hi.cc
    [Commander-easyoperation-group-build-in-S5700-HI] quit
    

    # Configure a group based on the IP address of Client4, and specify information about the files to be loaded.

    [Commander-easyoperation] group custom ip-address g2
    [Commander-easyoperation-group-custom-g2] match ip-address 172.31.10.10 24
    [Commander-easyoperation-group-custom-g2] system-software s5700-x-li.cc
    [Commander-easyoperation-group-custom-g2] quit
    

    # Configure a group based on the MAC address of Client6, and specify information about the files to be loaded.

    [Commander-easyoperation] group custom mac-address g3
    [Commander-easyoperation-group-custom-g3] match mac-address 5489-9875-ea12
    [Commander-easyoperation-group-custom-g3] web-file web_1.web.7z 
    [Commander-easyoperation-group-custom-g3] custom-file header.txt
    [Commander-easyoperation-group-custom-g3] quit

    # In the Easy-Operation view of the Commander, set the file activation mode and time.

    [Commander-easyoperation] activate-file in 2:00 reload
    [Commander-easyoperation] quit

  6. Verify the configuration.

    # Check global configuration of the Commander.

    [Commander] display easy-operation configuration
    ---------------------------------------------------------------------------     
     Role                            : Commander                                     
     Commander IP address            : 172.31.20.10                               
     Commander UDP port              : 60000                                         
     IP address of file server       : 172.31.1.90                                
     Type of file server             : SFTP                                          
     Username of file server         : admin                                         
     Default system-software file    : -                                             
     Default system-software version : -                                             
     Default configuration file      : -                                             
     Default patch file              : -                                             
     Default WEB file                : -                                             
     Default license file            : -                                             
     Default custom file 1           : -                                             
     Default custom file 2           : -                                             
     Default custom file 3           : -                                                 
     Auto clear up                   : Disable                                       
     Auto join in                    : Enable   
     Topology collection             : Disable                                       
     Activating file time            : In 02:00                                     
     Activating file method          : Reload                                       
     Aging time of lost client(hours): -                                            
     Backup configuration file mode  : Default                                      
     Backup configuration file interval(hours): 2                                   
    ---------------------------------------------------------------------------     

    # Check group configuration on the Commander.

    [Commander] display easy-operation group
    The total number of group configured is : 4                                    
    The number of build-in group is         : 1                                     
    The number of custom group is           : 3                                    
                                                                                    
    -------------------------------------------------------                         
     Groupname                       Type     MatchType                             
    -------------------------------------------------------                         
     S5700-HI                        build-in device-type
     g1                              custom   ip-address                            
     g2                              custom   ip-address                            
     g3                              custom   mac-address                           
    ------------------------------------------------------- 

    # Check configuration of the group g1 on the Commander.

    [Commander] display easy-operation group custom g1
    ---------------------------------------------------------------------------     
     Group name                : g1                                                 
     Configuration file        : -                                                  
     System-software file      : s7700.cc         
     Patch file                : -                                                  
     WEB file                  : -                                                  
     License file              : license.dat                                        
     Customs file 1            : header1.txt                                        
     Customs file 2            : -                                                  
     Customs file 3            : -                                                  
     Activating file time      : Immediately                                           
     Activating file method    : Default                                            
     Ip-address list           :                                                    
      Ip-address        Ip-mask                                                     
      172.31.20.100      255.255.255.0                                               
    ---------------------------------------------------------------------------     

  7. Start the batch upgrade process.

    [Commander] easy-operation
    [Commander-easyoperation] upgrade group
    Warning: This command will start the upgrade process of all groups and clients i
    n these groups may reboot. Ensure that configurations of the clients have been s
    aved. Continue?[Y/N]:y
    You can run the display easy-operation download-status command to check the file downloading progress on each client.
    [Commander-easyoperation] display easy-operation download-status             
    The total number of client in downloading files is : 6                          
                                                                                    
    ---------------------------------------------------------------------------- 
      ID     Mac address    IP address      Method      Phase         Status     
    ---------------------------------------------------------------------------- 
      1      0011-2233-4455 172.31.20.100   Upgrade     Sys-file      Upgrading  
      2      00E0-FC34-3190 172.31.10.15    Upgrade     Sys-file      Upgrading  
      3      0011-2233-4457 172.31.10.20    Upgrade     Sys-file      Upgrading  
      4      70F3-950B-1A52 172.31.10.10    Upgrade     Sys-file      Upgrading  
      5      0011-2233-4459 172.31.10.18    Upgrade     Sys-file      Upgrading  
      6      5489-9875-ea12 172.31.10.11    Upgrade     Web-file      Upgrading  

Configuration Files

Commander configuration file

#
sysname Commander
#
easy-operation commander ip-address 172.31.20.10        
easy-operation commander enable 
#
easy-operation         
 client auto-join enable 
 sftp-server 172.31.1.90 username admin password %^%#=.X8C_TN##%&9P>3RK503O@w-=Fr%>naT#E3P4{0%^%#
 backup configuration interval 2 
 activate-file reload
 activate-file in 02:00
 group build-in S5700-HI                                                        
  system-software s5700-hi.cc
 group custom ip-address g1                                                     
  system-software s7700.cc
  license license.dat                                                           
  custom-file header1.txt                                                       
  match ip-address 172.31.20.100 255.255.255.0                                   
 group custom ip-address g2                                                     
  system-software s5700-x-li.cc
  match ip-address 172.31.10.10 255.255.255.0                                   
 group custom mac-address g3                                                    
  web-file web_1.web.7z                                                         
  custom-file header.txt                                                        
  match mac-address 5489-9875-EA12 FFFF-FFFF-FFFF 
#
return

clients 1 to 6 configuration file

#
easy-operation commander ip-address 172.31.20.10 
#
return
Translation
Download
Updated: 2019-04-18

Document ID: EDOC1000141895

Views: 51397

Downloads: 208

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