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


To have a better experience, please upgrade your IE browser.


Command Reference

OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI provided by 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. 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).
show cli history

show cli history


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


show cli history [ n=? ]






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

The value ranges from 1 to 1024.


The storage system can store a maximum of 1024 executed commands. When the value of this parameter is 1024, all of the executed commands will be displayed.



Usage Guidelines

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

  • To query all executed commands, run the "show cli history" command.
  • To query the latest n (a numeral) commands that you have executed, run the "show cli history n=?" command.


  • Query all executed commands.
    admin:/>show cli history 
    [2018-02-02 17:16:20] [admin] [ 62580] [cli startup in interactive mode] [succeeded] 
    [2018-02-02 17:16:35] [admin] [ 62580] [show cli history ] [succeeded] 
    [2018-02-02 17:16:42] [admin] [ 62580] [show cli configuration ] [succeeded] 
    [2018-02-02 17:16:51] [admin] [ 54821] [cli startup in interactive mode] [succeeded] 
    [2018-02-02 17:16:51] [admin] [ 62580] [show event ] [succeeded] 
    [2018-02-02 17:16:58] [admin] [ 62580] [show event number=10 ] [succeeded] 
    [2018-02-02 17:17:02] [admin] [ 62580] [show cli configuration ] [succeeded] 
    [2018-02-02 17:17:15] [admin] [ 62580] [change cli timeout=60 ] [succeeded] 
    [2018-02-02 17:17:21] [admin] [ 62580] [show safe_strategy ] [succeeded] 
    [2018-02-02 17:17:28] [admin] [ 54821] [exit ] [succeeded] 
    [2018-02-02 17:17:33] [admin] [ 62580] [change safe_strategy session_expired_time=50 ] [succeeded] 
    [2018-02-02 17:17:38] [admin] [ 62580] [show safe_strategy ] [succeeded] 
    [2018-02-02 17:17:45] [admin] [ 62580] [change cli timeout=60 ] [failed] 
    [2018-02-02 17:17:50] [admin] [ 62580] [show cli configuration ] [succeeded] 
    [2018-02-02 17:18:00] [admin] [ 62580] [show cli history N=10 ] [succeeded]
  • Query the 5 commands that are executed most recently.
    admin:/>show cli history n=5 
    [2018-02-02 17:17:38] [admin] [ 62580] [show safe_strategy ] [succeeded] 
    [2018-02-02 17:17:45] [admin] [ 62580] [change cli timeout=60 ] [failed] 
    [2018-02-02 17:17:50] [admin] [ 62580] [show cli configuration ] [succeeded] 
    [2018-02-02 17:18:00] [admin] [ 62580] [show cli history N=10 ] [succeeded] 
    [2018-02-02 17:18:59] [admin] [ 62580] [show cli history ] [succeeded]

System Response


Updated: 2019-09-02

Document ID: EDOC1000181601

Views: 331701

Downloads: 41

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