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 for Block

OceanStor Dorado V3 Series V300R002

This document is applicable to OceanStor Dorado3000 V3, Dorado5000 V3, Dorado6000 V3 and Dorado18000 V3. Based on the CLI provided by the DeviceManager, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands.
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).
show cli history

show cli history

Function

The show cli history command is used to query the history for executed commands.

Format

show cli history [ N=? ]

Parameters

Parameter

Description

Value

N=?

Number of most recently executed commands that you want to query.

The value ranges from 1 to 1024.

NOTE:

Given the storage system can memorize a maximum of 1024 executed commands, a value that is equal to 1024 could display all of the memorized commands.

Level

Administrator

Usage Guidelines

This command is only used to query the history of executed commands on the current controller.

  • To query all of the commands memorized by the storage system, run show cli history.
  • To query the N (a numeral) commands that you have executed in most recent, run show cli history N=?.

Example

  • To query all of the memorized commands, run the following command.
    admin:/>show cli history      
    [2017-07-20 10:00:38] [admin] [192.168.8.211 2335] [show cli history ] [succeeded] 
    [2017-07-20 10:01:47] [admin] [192.168.8.211 2335] [show cli configuration ] [succeeded] 
    [2017-07-20 10:02:04] [admin] [192.168.8.211 2335] [show event ] [succeeded] 
    [2017-07-20 10:02:29] [admin] [192.168.8.211 2335] [show event number=10 ] [succeeded] 
    [2017-07-20 10:02:36] [admin] [192.168.8.211 2335] [show cli configuration ] [succeeded] 
    [2017-07-20 10:02:47] [admin] [192.168.8.211 2335] [change cli timeout=60 ] [failed] 
    [2017-07-20 10:03:01] [admin] [192.168.8.211 2335] [show safe_strategy ] [succeeded] 
    [2017-07-20 10:03:23] [admin] [192.168.8.211 2335] [change safe_strategy session_expired_time=60 ] [succeeded] 
    [2017-07-20 10:03:25] [admin] [192.168.8.211 2335] [show safe_strategy ] [succeeded] 
    [2017-07-20 10:03:36] [admin] [192.168.8.211 2335] [change cli timeout=60 ] [succeeded] 
    [2017-07-20 10:03:41] [admin] [192.168.8.211 2335] [show cli configuration ] [succeeded] 
    [2017-07-20 10:03:50] [admin] [192.168.8.211 2335] [show cli history N=10 ] [succeeded]
  • To query "5" commands that you have executed in most recent, run the following command:
    admin:/>show cli history N=5 
    [2012-03-31 14:16:03] [admin] [192.168.8.211 2335] [show cli configuration] [succeeded] 
    [2012-03-31 14:16:13] [admin] [192.168.8.211 2335] [change cli silent_enabled=no] [succeeded] 
    [2012-03-31 14:17:11] [admin] [192.168.8.211 2335] [show cli history ] [succeeded] 
    [2012-03-31 14:18:35] [admin] [192.168.8.211 2335] [show cli history ] [succeeded] 
    [2012-03-31 14:18:58] [admin] [192.168.8.211 2335] [show cli history ] [succeeded]

System Response

None

Translation
Download
Updated: 2019-07-16

Document ID: EDOC1100049140

Views: 116061

Downloads: 134

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