Example for Logging In to the Switch to Manage Files

21 0 0 0

Overview

You can log in to the switch using the console port, Telnet, or STelnet to manage storage, directories, and local files. Only logged in users can manage the storage. To transfer files, you can use FTP, TFTP, Secure Copy Protocol (SCP), or FTPS.

Configuration Notes

  • Before logging in to the switch to manage files, complete the following task:
    • Log in to the switch from a terminal.
  • This example applies to all versions of all S series switches.
imgDownload?uuid=72ed41fa93ca498f8048d06 NOTE:

The following uses the command lines and outputs of the S5720EI running V200R008C00 as an example.

Networking Requirements

A user logs in to the Switch using the console port, Telnet, or STelnet from the PC, and needs to perform the following operations on the files on the Switch:

  • View the files and subdirectories in the current directory.
  • Create the directory test. Copy the file vrpcfg.zip to test and rename the file as backup.zip.
  • View files in test.
Figure 3-19  Networking diagram for logging in to the switch to manage files 
imgDownload?uuid=c489511b202c4e8fb8fce0a

Procedure

  1. View the files and subdirectories in the current directory.

    <HUAWEI> system-view[HUAWEI] sysname Switch[Switch] quit<Switch> dirDirectory of flash:/
    
      Idx  Attr     Size(Byte)  Date        Time       FileName    0  -rw-            889  Mar 01 2012 14:41:56   private-data.txt
        1  -rw-          6,311  Feb 17 2012 14:05:04   backup.cfg
        2  -rw-          2,393  Mar 06 2012 17:20:10   vrpcfg.zip
        3  -rw-            812  Dec 12 2011 15:43:10   hostkey
        4  drw-              -  Mar 01 2012 14:41:46   compatible
        5  -rw-            540  Dec 12 2011 15:43:12   serverkey
    ...
    509,256 KB total (52,752 KB free)

  2. Create the directory test. Copy the file vrpcfg.zip to test and rename the file as backup.zip.

    # Create the directory test.

    <Switch> mkdir testInfo: Create directory flash:/test......Done.

    # Copy the file vrpcfg.zip to test and rename the file as backup.zip.

    <Switch> copy vrpcfg.zip flash:/test/backup.zip    //Set the target file name to backup.zip. If not specified, the target file name is the same as the source file name.Copy flash:/vrpcfg.zip to flash:/test/backup.zip?[Y/N]:y100%  complete/
    Info: Copied file flash:/vrpcfg.zip to flash:/test/backup.zip...Done. 

  3. View files in test.

    # Access test.

    <Switch> cd test

    # View the current directory.

    <Switch> pwdflash:/test

    # View files in test.

    <Switch> dirDirectory of flash:/test/
    
      Idx  Attr     Size(Byte)  Date        Time       FileName
        0  -rw-          2,399  Mar 12 2012 11:16:44   backup.zip509,256 KB total (52,748 KB free)

Configuration Files

Switch configuration file

#
sysname Switch
#
return

See more please click 

https://support.huawei.com/enterprise/en/doc/EDOC1000069520/9aadccc0/comprehensive-configuration-examples


  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

Login and enjoy all the member benefits

Login
Fast reply Scroll to top