< Home

upgrade saved-configuration

Function

The upgrade saved-configuration command enables the function of updating the configuration file.

Format

upgrade saved-configuration ftp server-address username password [ delay ]

upgrade saved-configuration sftp server-address [ port server-port ] username password [ delay ]

upgrade saved-configuration usbfilepath

Parameters

Parameter Description Value
server-address Indicates the IP address or host name of the FTP or SFTP server from which the configuration file is obtained. The value is a string of 1 to 20 characters.
server-port

Specifies the port number of the SFTP server.

The value is 22 or an integer ranging from 1025 to 65535. The default value is 31922.

username Specifies the user name for logging in to the FTP or SFTP server. The value is a string of 1 to 31 characters.
password Specifies the password for logging in to the FTP or SFTP server.
  • The value is a string that contains 1 to 15 plain text and is saved in 32 character cipher text, or contains 32 cipher text.
  • To enhance security, a password meets the minimum strength requirements, that is, the password needs to contain at least three types of the following characters: uppercase letters (A to Z), lowercase letters (a to z), digits (0 to 9), and special characters, such as exclamation points (!), at signs (@), number signs (#), dollar signs ($), and percent (%).
delay Specifies the hold-off time for the update. The value is an integer ranging from 180 to 3600, in seconds. The default value is 300 seconds.
usbfilepath Specifies the file path. -

Views

System view

Default Level

3: Management level

Usage Guidelines

  • SFTP is recommended because of high security.

  • The system will be restarted when the upgrade saved-configuration command is executed. All services on the device will be interrupted during the restart.

Name the configuration file esn number.cfg and save it in FTP or SFTP directory\auto_upgrade\config\esn number.cfg. Otherwise, the FW cannot obtain the configuration file.

Run the upgrade saved-configuration ftp server-address username password [ delay ] or upgrade saved-configuration sftp server-address [ port server-port ] username password [ delay ] command, the process of updating the configuration file is as follows:

  1. Obtains the configuration file from a specified FTP or SFTP server when the specified hold-off time expires.

    If the system fails to obtain the configuration file, it retries at the interval of the hold-off time.

  2. After downloading the configuration file from the server, the system restarts and updates the configuration file.

If you need to update the configuration file again, run the specified command to obtain the configuration file and then update it. Restart the device before changing the IP address of and the user name or password for logging in to the FTP/SFTP server. Then run the upgrade saved-configuration command to update the configuration file.

Run the upgrade saved-configuration usbfilepath command to download the configuration file from the specified USB disk to update the existing configuration profile. You need to confirm the operation if you update the configuration file from the USB disk.

Example

# Enable the function of updating the configuration file and set the update delay to 360s.

<sysname> system-view
[sysname] upgrade saved-configuration sftp 10.10.10.100 port 22 admin Changme123 360

# Update the configuration file from the USB disk. The configuration file in the USB disk is vrpcfg.zip.

<sysname> system-view
[sysname] upgrade saved-configuration usb0:/vrpcfg.zip
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic