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

Command Reference

OceanStor 18000 V3 Series V300R006

This document is applicable to OceanStor 18500 V3 and 18800 V3. Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
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).
export cli history

export cli history

Function

The export cli history command is used to export the historical record of executed commands.

Format

export cli history ip=? user=? password=? path=? [ port=? ] [ protocol=? ]

Parameters

Parameter

Description

Value

ip=?

IP address of a File Transfer Protocol (FTP) server or a Secure File Transfer Protocol (SFTP) server to which the command execution history will be exported.

NOTE:

The FTP server or SFTP server must be accessible to the storage system.

-

user=?

User name for logging in to an FTP server or an SFTP server.

The value contains 1 to 64 characters without colons (:).

password=?

Password for logging in to an FTP server or an SFTP server.

The value contains 1 to 64 characters.

path=?

File name of and path to a file for storing the exported history on an FTP server or an SFTP server. The file name must be supported by the FTP and SFTP server.

The file name cannot contain any of the following characters: ' \ / : * ? " < > |.

port=?

ID of the employed port on an FTP server or an SFTP server.

The value ranges from 1 to 65535.

  • If "protocol" is set to "FTP", the default value is "21".
  • If "protocol" is set to "SFTP", the default value is "22".

protocol=?

Protocol type.

The value can be "FTP" or "SFTP". The default value is "SFTP".

To ensure the security of data transfer, you are advised to use Secure File Transfer Protocol (SFTP).

Level

Administrator

Usage Guidelines

This command is only used to export the history of executed commands on the current controller to an FTP server or an SFTP server connecting to the storage system.

NOTE:

Prerequisites for using this command:

  • The FTP server or SFTP server is accessible to the storage system.
  • The FTP service or SFTP service has been started on the server.
  • The folder for storing the exported history file has been created on the FTP server or SFTP server.

If the storage system serves as a server in the file transfer with external systems, it supports the SFTP service only. If the storage system serves as a client, it supports both the FTP and SFTP services.

Example

Export the historical record of executed commands. The IP address of the SFTP server is "192.168.8.211", the user name is "admin", the password is "123456", and the folder that stores the exported record is "path", and the name of the exported file is "test.txt".

admin:/>export cli history ip=192.168.8.211 user=admin password=****** path=/path/test.txt 
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138390

Views: 226954

Downloads: 150

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