所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

OceanStor 2200 V3&2600 V3 存储系统 V300R005 命令参考

"本文档针对DeviceManager管理软件提供的CLI(Command Line Interface)命令行,介绍如何使用CLI设置、管理存储系统,以及按功能分类详细介绍各命令的使用方法。"
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
help object

help object

命令功能

help object命令用于查询命令在线帮助,包括操作对象下所有命令的列表、命令的格式、参数说明、使用指南和使用实例等。

命令格式

help object

参数说明

参数

参数说明

取值

object 需要查询的在线帮助的对象名称。

可以通过命令补全功能,输入help后按“Tab”获取。

级别

只读用户

使用指南

  • 使用此命令时,系统会显示属于此对象的所有命令的在线帮助。
  • 可以通过命令的第二个字段来确定命令操作对象,例如change cli命令,其第二个字段为cli,则通过help cli命令可以查询此命令的帮助信息。
  • “q”可以退出在线帮助界面。
  • “PageUp”“PageDown”可以在在线帮助界面中翻页,按“↑”“↓”可以在界面中移动。
  • 在线帮助的命令格式中,“< >”表示该参数必选,“[ ]”表示该参数可选。
  • 键入“h”可以查看linux less命令的全部用法。

使用实例

  • 查询cli对象所有命令的在线帮助,请以实际界面为准。

    admin:/>help cli
    NAME
    cli - CLI management commands
    
    SYNOPSIS
    show cli configuration
    show cli history [N=?]
    change cli [timeout=?] [capacity_mode=?] [more_enabled=?] [silent_enabled=?]
    export cli history <ip=?> <user=?> <password=?> <path=?> [port=?] [protocol=?]
    
    DESCRIPTION
    You can manage the configuration for the CLI(Command Line Interface) using those commands.
    For example, you can view the setting of CLI, view the history commands, specify the 
    management console for the session, and so on.
    OPTIONS
    N
    Type the number of most recently executed commands that you want to query.
    The value ranges from 1 to 1024.
    
    timeout
    Timeout(in minutes) after which you are automatically logged out of the 
    system due to user inactivity or a system problem.
    The value ranges from 1 to 100.
    
    capacity_mode
    Type the display option of capacity. The value is one of the following:
    "automatic" : The unit of the capacity will be displayed automatically.
    "precise" : The unit of the capacity will be displayed precisely.
    
    more_enabled
    Whether the more (display information page by page) function is enabled to display information. 
    The value is one of the following: yes or no.
    
    silent_enabled
    Allow a command to be completed by suppressing the output and not requiring user confirmation. 
    This is useful when there are commands in scripts.
    The value is one of the following:
    "yes" : Suppress the output.
    "no" : Not suppress the output.
    
    ip
    Type the IP address of the FTP/SFTP server to store the history commands file or command script file.
    
    path
    Type the file path in the FTP/SFTP server to store the history commands or command script.
    '/test/' indicates that script file or history file is saved in the test folder on the FTP/SFTP server. The 
    file name is automatically generated. '/test' indicates that script file or history file is saved in 
    the test file.
    
    user
    Type the name of the user that can access the FTP/SFTP server.
    
    password
    Type the password of the user.
    
    port 
    Type the port number of FTP/SFTP server. 
    The value ranges from 1 to 65535.
    The default value is "22".
    If the protocol is set to "FTP", the default value will be set to "21". 
    
    protocol
    File transfer protocol: FTP or SFTP, default is SFTP.
    NOTE: To ensure the security of data transfer, you are advised to use Secure File Transfer Protocol (SFTP).
    
    COMMANDS
    show cli configuration
    View the configuration of CLI.
    
    show cli history [N=?]
    View the lastest N history commands.
    If parameter N is not specified, the CLI display all history commands.
    
    change cli [timeout=?] [capacity_mode=?] [more_enabled=?] [silent_enabled=?]
    Change the configuration of CLI.
    
    export cli history <ip=?> <user=?> <password=?> <path=?> [port=?] [protocol=?]
    Export the history commands as a file to an FTP/SFTP server.
    
    EXAMPLES
    View the configuration of CLI.
    admin:/>show cli configuration
    More enabled(display page by page) : Yes 
    Silent enabled : No 
    Capacity Mode : Automatic 
    Timeout : 30 min
    
    View the lastest 10 history commands.
    admin:/>show cli history N=10
    [2014-03-25 12:32:25] [admin] [192.168.30.224 52493] [idle timeout exit] [succeeded]
    [2014-03-25 14:48:43] [admin] [192.168.30.224 51209] [cli startup in interactive mode] [succeeded]
    [2014-03-25 14:49:25] [admin] [192.168.30.224 51209] [show lun_migration count ] [succeeded]
    [2014-03-25 14:50:18] [admin] [192.168.30.224 51209] [show lun_migration general ] [succeeded]
    [2014-03-25 14:53:25] [admin] [192.168.30.224 51209] [show lun_migration general source_lun_id=5 ] [succeeded]
    [2014-03-25 14:53:41] [admin] [192.168.30.224 51209] [change lun_migration source_lun_id=5 speed=High ] [succeeded]
    [2014-03-25 14:56:14] [admin] [192.168.30.224 51209] [delete lun_migration source_lun_id=5 ] [succeeded]
    [2014-03-25 15:02:40] [admin] [192.168.30.224 51209] [show cli configuration ] [succeeded]
    [2014-03-25 15:04:33] [admin] [192.168.30.224 51209] [show cli history ] [succeeded]
    [2014-03-25 15:04:48] [admin] [192.168.30.224 51209] [show cli history N=5 ] [succeeded]
    
    Change the capacity display mode to precise.
    admin:/>change cli capacity_mode=precise
    Command executed successfully.
    
    Export the history CLI commands as a file to FTP server(192.168.5.98).
    admin:/>export cli history ip=192.168.5.98 admin=ftp_admin password=****** path=/cli_history_1
    Command executed successfully.
  • 查询show bbu命令的在线帮助。 通过show bbu命令第二个字段可以确定其所属对象为bbu,则使用help bbu命令查询其在线帮助。回显因产品而异,请以实际界面为准。

    admin:/>help bbu
    NAME
    bbu - BBU management commands
    
    SYNOPSIS
    show bbu general [bbu_id=?]
    show bbu life
    
    DESCRIPTION
    Backup Battery Unit (BBU) provides power to the system when the primary source of power is unavailable.
    The BBU module is installed in the controller enclosure, to provide power-off protection function for the controller.
    OPTIONS
    bbu_id
    ID of a BBU.
    To obtain the value, run "show bbu general" without parameter.
    
    COMMANDS
    show bbu general [bbu_id=?]
    View the information about BBUs.
    If the parameter bbu_id is not specified, the CLI will report the information 
    about all BBUs.
    
    show bbu life
    View the information about BBUs life.
    
    EXAMPLES
    View the information about all BBUs.
    admin:/>show bbu general
    ID Health Status Running Status Current Voltage(V) Number Of Discharges 
    --------- ------------- -------------- ------------------ -------------------- 
    CTE0.PSU0 Normal Online 16.1 7 
    CTE0.PSU1 Normal Online 16.2 5 
    
    View the information about BBUs life.
    admin:/>show bbu life
    ID Remaining Lifetime(days) 
    --------- ------------------------ 
    CTE0.PSU0 2536 
    CTE0.PSU1 2535

输出说明

无。

翻译
下载文档
更新时间:2019-04-22

文档编号:EDOC1000106112

浏览量:29815

下载量:236

平均得分:
本文档适用于这些产品
相关文档
相关版本
分享
上一页 下一页