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

Fat AP and Cloud AP V200R008C00 CLI-based Configuration Guide

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).
Managing Configuration Files

Managing Configuration Files

Pre-configuration Tasks

Before managing configuration files, log in to the device.

Procedure

Perform one or multiple of the following tasks:

Saving the Configuration File

Context

You can run commands to modify the current configuration of the device, but the modified configuration will be lost after the device restarts. To enable the new configuration to take effect after a restart, save the current configuration in the configuration file before restarting the device. Use either of the following methods to save the current configuration:
  • Configure the automatic save function.
  • Manually save the configuration.

Procedure

  • Save the configurations automatically.

    The autosave interval command cannot be used together with the autosave time command.

    • Run:
      autosave interval value

      Automatic saving of configurations is enabled.

      By default, automatic saving of configurations is disabled. The value parameter can be set to on or off. The value on enables automatic saving of configurations, and the value off disables this function.

    • Run:

      autosave interval { time | configuration time }

      The system is configured to save the configurations at a specified interval.

      If interval time is specified, the system saves the configurations at the specified interval regardless of whether the configuration is changed.
      • The default interval is 0 seconds, indicating that the system does not save the configurations automatically.
      • After the automatic save function is enabled, the default interval is 1440 minutes if time is not specified.
      • After the automatic save function is enabled, the default interval is 30 minutes if configuration time is not specified.
    • Run:

      autosave time { value | time-value }

      The system is configured to save the configurations at a specified time.

      When the automatic save function is enabled, the modified configuration is saved at the specified time. When the automatic save function is disabled, the system does not save the configurations automatically and you need to manually save the modified configuration.

    NOTE:

    In automatic save mode, the system automatically saves configurations to the current startup configuration file. You can run the display startup command to check the name of the current startup configuration file.

  • Save the configurations manually.

    • Run:

      save [ all ] [ configuration-file ]

      The current configuration is saved.

      The configuration file name extension must be .zip or .cfg. The system startup file must be stored in the root directory of the storage device.

      Run the save all command to save all the current configurations, including the configurations of the boards that are not running, to the current storage directory.

      NOTE:
      • If you do not specify configuration-file when saving the configuration file for the first time, the system asks you whether to save the configuration file as vrpcfg.zip.
      • If you do not specify configuration-file, configurations are saved to the next startup configuration file. You can run the display startup command to check the name of the next startup configuration file.
      • You can run the pwd (user view) command in the user view to check the current storage directory.
      • You can run the cd (user view) command in the user view to modify the current storage directory.

Checking the Configuration

Based on the configuration file name, you can transfer the configuration file to the client or server through TFTP, FTP, or SFTP. For details, see File Management.

Comparing Configuration Files

Context

You can compare the current configuration file with the next startup configuration file to check whether they are consistent and determine whether to set the current configuration file as the next startup configuration file.

The system displays the different content starting from the first different character to the end of the file. By default, the system displays 120 characters. If the different content contains less than 120 characters, the system displays only the content from the first different character to the end of the file.

If the next startup configuration file is unavailable or empty, the system displays a message indicating that the files fail to be read.

NOTE:

The configuration file name extension must be .cfg or .zip.

Procedure

  • Run:

    compare configuration [ configuration-file [ current-line-number save-line-number ] ]

    The system starts to check whether the current configurations are identical with the next startup configuration file or the specified configuration file.

    If parameters are not specified, the configuration files are compared from the first line. The parameters current-line-number and save-line-number are used to continue the comparison, neglecting the differences, after differences are found.

Backing Up the Configuration File

Context

If the device is damaged unexpectedly, the configuration file cannot be recovered. You can back up the configuration file in advance using one of the following methods:
  • Copying the content in the display on the screen
  • Backing up the configuration file to the storage device
  • Backing up the configuration file through TFTP
  • Backing up the configuration file through FTP

Procedure

  • Copying the content in the display on the screen

    Run the display current-configuration command and copy all command outputs to a .txt file. The configuration file is backed up in the hard disk of the maintenance terminal.

    NOTE:

    If a configuration is too long, it may be displayed in two lines on the terminal screen, depending on the terminal software. When copying a two-line configuration from the screen to a .txt file, ensure that the configuration is displayed in only one line. Otherwise, configuration restoration may fail when the .txt file is used.

  • Backing up the configuration file to the storage device

    The current configuration file can be backed up immediately to the flash memory of the device. After the device starts, run the following commands to back up the configuration file to the flash memory of the device:

    <Huawei> save config.cfg
    <Huawei> copy config.cfg backup.cfg

  • Backing up the configuration file through TFTP
    1. Start the TFTP server program when the device works as the TFTP client.

      Start the TFTP server program on the PC. Set the path for transmitting the configuration file, and the IP address and interface number of the TFTP server.

    2. Transfer the configuration file.

      Run the tftp command in the user view to back up the specified configuration file.

      <Huawei> tftp 10.110.24.254 put flash:/config.cfg backup.cfg

  • Backing up the configuration file through FTP
    1. Start the FTP service when the device works as the FTP server.

      Enable the FTP server function on the device. Create an FTP user with the name huawei and password ASdasd@15481erp. The user is authorized to access the flash directory.

      <Huawei> system-view
      [Huawei] ftp server enable
      Warning: FTP is not a secure protocol, and it is recommended to use SFTP.
      Info: Succeeded in starting the FTP server
      [Huawei] aaa
      [Huawei-aaa] local-user huawei password irreversible-cipher ASdasd@15481erp
      [Huawei-aaa] local-user huawei ftp-directory flash:
      [Huawei-aaa] local-user huawei service-type ftp
      [Huawei-aaa] local-user huawei privilege level 15

    2. On the maintenance terminal, initiate an FTP connection to the device.

      On the PC, set up an FTP connection to the device through the FTP client. Assume that the device IP address is 10.110.24.254.

      C:\Documents and Setting\Administrator> ftp 10.110.24.254
      Connected to 10.110.24.254.
      220 FTP service ready.
      User (10.110.24.254:(none)): huawei
      331 Password required for huawei.
      Password:
      230 User logged in.

    3. Configure transfer parameters.

      If the FTP user is authenticated, the FTP client displays the prompt character of ftp>. Enter binary following the prompt character, and specify the path where the uploaded file is to be saved on the FTP client.

      ftp> binary
      200 Type set to I.
      ftp> lcd c:\temp
      Local directory now C:\temp.

    4. Transfer the configuration file.

      On the PC, run the get command to load the configuration file to the specified path and save the file as backup.cfg.

      ftp> get flash:/config.cfg backup.cfg

    5. Check whether the config.cfg and backup.cfg files have the same size. If they have the same size, the backup is successful.

Recovering the Configuration File

Context

When incorrect configurations are performed and functions are not normal, you can use one of the following methods:
  • Recovering the configuration file that is backed up in the storage device
  • Recovering the configuration file that is backed up on the PC through TFTP
  • Recovering the configuration file that is backed up on the PC through FTP
NOTE:

After recovering the configuration file, you must restart the device to make the file take effect. Run the startup saved-configuration command to specify the next startup configuration file. If the configuration file name is unchanged, you do not need to run this command. Run the reboot command to restart the device.

Procedure

  • Recovering the configuration file that is backed up in the flash memory

    This step recovers the backup configuration file stored in the flash memory of the device to the current system configuration file. When the device is working properly, run the following command:

    <Huawei> copy flash:/backup.cfg flash:/config.cfg

  • Recovering the configuration file that is backed up on the PC through TFTP

    Perform this operation when the device functions as the TFTP client. This operation is similar to the operation in Backing up the configuration file through TFTP. The difference is that the tftp command containing the get parameter in the recovery procedure downloads the backup.cfg file on the PC to the flash memory of the device.

  • Recovering the configuration file that is backed up on the PC through FTP

    Perform this operation when the device works as the FTP server. This operation is similar to the operation in Backing up the configuration file through FTP. The difference is that the put command in the recovery procedure uploads the backup.cfg file on the PC to the flash memory of the device.

Clearing the Configuration File

Context

You need to delete the configuration file when:

  • The software and configuration file do not match after the device software is upgraded.
  • The configuration file is damaged or an incorrect configuration file is loaded.

Exercise caution when you run the reset saved-configuration command. You are advised to run this command under the guide of technical support personnel.

Procedure

  • Run the reset saved-configuration command to clear the next startup configuration file and cancel the configuration file used for next startup. The default device configurations are restored.

    NOTE:
    • If the current startup configuration file is the same as the next startup configuration file when you run the reset saved-configuration command, the current startup configuration file is also cleared.
    • After you run this command and manually restart the device, the system displays a message asking you whether to save the configurations. Select N to clear the configurations.
    • If you do not use the startup saved-configuration command to specify a new configuration file containing correct configurations or do not save the configuration file after running the reset saved-configuration command, the device uses factory configurations for startup. If the device does not have factory configurations, it uses default configurations for startup.

    • If the next startup configuration file is empty, the device displays a message indicating that the file does not exist.

Translation
Download
Updated: 2019-01-11

Document ID: EDOC1000176006

Views: 117683

Downloads: 309

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