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

S9300, S9300E, and S9300X V200R011C10

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).
Logging In to the Device to Manage Files

Logging In to the Device to Manage Files

Pre-configuration Tasks

Before logging in to the device to manage files, complete the following tasks:

  • Ensure that routes are reachable between the terminal and the device.
  • Ensure that a user has logged in to the device using a terminal.

Configuration Procedure

After a user logs in to the device on a terminal, the user can perform operations on storage media, directories, and files.

Users can perform the following operations in any sequence.

Procedure

  • Perform operations on directories.

    Table 7-2  Performing operations on directories
    Operation Command Description

    Display the current directory.

    pwd -

    Change the current directory.

    cd directory -

    Display files and subdirectories in a specified directory.

    dir [ /all ] [ filename | directory | /all-filesystems ] -

    Create a directory.

    mkdir directory -

    Delete a directory.

    rmdir directory
    • The directory to be deleted must be empty.

    • A deleted directory and its files cannot be restored from the recycle bin.

  • Perform operations on files.

    Table 7-3  Performing operations on files
    Operation Command Description

    Display the file content.

    more filename [ offset ] [ all ]

    -

    Copy a file.

    copy source-filename destination-filename
    • Before copying a file, ensure that the storage space is sufficient for the file.
    • If the target file has the same name as an existing file, the system asks you whether to overwrite the existing file.

    Move a file.

    move source-filename destination-filename

    If the target file has the same name as an existing file, the system asks you whether to overwrite the existing file.

    Rename a file.

    rename old-name new-name -

    Compress a file.

    zip source-filename destination-filename -

    Decompress a file.

    unzip source-filename destination-filename -

    Delete a file.

    delete [ /unreserved ] [ /quiet ] { filename | devicename }

    This command cannot delete a directory.

    NOTICE:

    In this command, /unreserved indicates that the file cannot be restored.

    Restore a file.

    undelete { filename | devicename }

    Running the delete command without the /unreserved keyword moves a file to the recycle bin. Run this command to restore this file.

    Remove a file from the recycle bin.

    reset recycle-bin [ filename | devicename ]

    Remove a file from the recycle bin to permanently delete it.

    Enter the system view.

    system-view -

    Execute batch files.

    execute batch-filename

    To perform multiple operations at one time, run the execute batch-filename command in the system view. The batch files must be stored in the storage medium first.

  • Perform operations on storage media.

    When the file system on a storage medium fails, the terminal prompts the user to rectify the fault.

    When the file system fault cannot be rectified or the data on the storage medium is unnecessary, you can format the storage medium.

    When a storage medium is formatted, data on the storage medium is cleared and cannot be restored. Therefore, exercise caution when formatting a storage medium.

    Table 7-4  Performing operations on storage media
    Operation Command Description

    Repair a storage medium with a faulty file system.

    fixdisk drive

    If the system still reports the fault after this command is executed, the storage medium is damaged.

    Format a storage medium.

    format drive

    If the storage medium is still unavailable after it is formatted, a physical exception occurs.

  • Configure the notification mode of the file system.

    When a user performs operations that may cause data loss or damage on a device, the system generates notifications or alarms. Users can configure the notification mode of the file system.

    Table 7-5  Configuring the notification mode of the file system
    Operation Command Description
    Enter the system view. system-view -
    Configure the notification mode of the file system. file prompt { alert | quiet }

    The default notification mode is alert.

    NOTICE:

    If the notification mode is set to quiet, the system does not provide notifications when data is lost caused by user misoperations such as deleting files. Therefore, this notification mode must be used with caution.

  • Use the XModem protocol to obtain a file (only when you have logged in through the console port).

    After logging in to the switch through the console port, you can use the xmodem get command to transfer a file from the PC to the switch.

    Table 7-6  Using the XModem protocol to obtain a file (only for console port login).
    Operation Command Description
    Use the XModem protocol to obtain a file. xmodem get { filename | devicename }

    Before running this command, confirm the path and file name of the file to be obtained.

Translation
Download
Updated: 2019-04-17

Document ID: EDOC1000178413

Views: 68257

Downloads: 109

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