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

Common Operation Guide

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

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).
Backing Up Files to the Local PC

Backing Up Files to the Local PC

You can back up files from a switch to a PC using the following methods. The prerequisite is that there are reachable routes between the PC and switch.
Figure 6-1  Backing up files

Method 1: Copying the Current Configuration to a Text File

This method only applies to backing up the configuration file to the local PC.

Run the display current-configuration command on the switch and copy all the displayed information to a .txt file to back up the configuration file to the PC.
NOTE:

If configuration content 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.

Method 2: Configuring the Switch as an FTP Server and the Local PC as an FTP Client

In the following example, FTP user admin1234 downloads the file vrpcfg.zip to the PC.
  1. Log in to the switch and configure it as an FTP server. Use the FTP server to back up files to the PC.
    <HUAWEI> system-view
    [~HUAWEI] ftp server enable
    [*HUAWEI] aaa
    [*HUAWEI-aaa] local-user admin1234 password irreversible-cipher Helloworld@2012    //Set the user name to admin1234 and password to Helloworld@2012.
    [*HUAWEI-aaa] local-user admin1234 level 3
    [*HUAWEI-aaa] local-user admin1234 ftp-directory flash:/      //Set the FTP directory to flash:/.
    [*HUAWEI-aaa] local-user admin1234 service-type ftp
    [*HUAWEI-aaa] commit
  2. Access the CLI on the PC. Choose Start, enter cmd in the search box, and press Enter to access the CLI.
    C:\Windows\System32> ftp 192.168.80.102
    Connected to 192.168.80.102.
    220 FTP service ready.
    User (192.168.80.102:(none)): admin1234
    331 Password required for admin1234.
    Password:        //Enter the password Helloworld@2012.
    230 User logged in.
    ftp> binary
    200 Type set to I.
    ftp> get vrpcfg.zip
    200 Port command okay.
    150 Opening BINARY mode data connection for /vrpcfg.zip.
    226 Transfer complete.
    ftp: 905 bytes received in 0.04Seconds 25.86Kbytes/sec.
    
    NOTE:

    When uploading or downloading a file, specify the FTP working directory on the client. The backed up file will be downloaded to this directory.

Method 3: Configuring the Switch as an FTP Client and the Local PC as an FTP Server

In the following example, FTP user admin1234 downloads the file vrpcfg.zip to the PC.

  1. Configure the PC as an FTP server.

    Create the user name and password for logging in to the FTP server, and set the FTP working directory on the PC.

  2. Log in to the switch and enter the CLI.
    <HUAWEI> ftp 192.168.80.3    //IP address of the PC
    Trying 192.168.80.3 ...
    Press CTRL + K to abort
    Connected to 192.168.80.3.
    220 FTP Server ready.
    User(192.168.80.3:(none)): admin1234      //User name configured during FTP server configuration (admin1234 as an example)
    331 Password required for admin1234.
    Enter password:                      //Password configured during FTP server configuration
    230 User admin1234 logged in.
    [ftp] put vrpcfg.zip
    200 Port command successful.
    150 Opening data connection for vrpcfg.zip.
    /     100% [***********] 
    226 File received ok
    FTP: 14751 byte(s) send in 0.963 second(s) 14.958Kbyte(s)/sec.
    [ftp]
    
Translation
Download
Updated: 2018-10-08

Document ID: EDOC1000102369

Views: 122455

Downloads: 3136

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