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).
Context-sensitive Help

Context-sensitive Help

When typing command lines on the command line interface (CLI), you can obtain real-time assistance and guidance using the context-sensitive help.

To trigger the context-sensitive help, typing ? or pressing Ctrl+A on the CLI.

NOTE:
  • To quit the context-sensitive help, type q.
  • To move backward or forward within help information screens, press PageUp or PageDown respectively. To move upward or downward within the same help information screen, press or respectively.

Context-sensitive Help — Using the ? Key

By typing ? on the CLI, you can obtain the usage guidance on CLI basic operations or can view details about an parameter. Here are some examples:

  • To query basic help information such as the information on command line misentries, context-sensitive help messages, command line completion, and available function keys, type ? directly on the CLI.
    admin:/>? //Type the question mark (?) directly. 
    ERROR REPORTING 
    The ^ (a caret) indicates a syntax error occurred in the preceding command 
    statement. The location of a caret in the command statement indicates the 
    location of the syntax error. 
     
    CONTEXT SENSITIVE HELP 
    [?]         - Display context sensitive help. This is either a list of possible 
                  command completions with summaries, or the full syntax of the 
                  current command. A subsequent repeat of this key, when a command 
                  has been resolved, will display a detailed reference. 
     
    [CTRL+A] - Display available list of the object that can be used as valid 
                  parameter. It is supported in limited context and the tips will be 
                  promoted after the TAB or space key is pressed. 
     
    AUTO-COMPLETION 
    The following keys both perform auto-completion for the current command line. 
    If the command prefix is not unique then the bell will ring and a subsequent 
    repeat of the key will display possible completions. 
     
    [Tab]          - Auto-complete and display possible inputs. 
     
    [Space]        - Auto-complete. 
     
    MOVEMENT KEYS 
    [Up]           - Move to the previous command line held in history. 
    [Down]         - Move to the next command line held in history. 
    [Left]         - Move the insertion point left one character. 
    [Right]        - Move the insertion point right one character. 
    [CTRL+Left] - Move the insertion point left one word. 
    [CTRL+Right] - Move the insertion point right one word. 
    [CTRL+S]       - Move the insertion point to the start of the command line 
    [CTRL+E]       - Move the insertion point to the end of the command line. 
     
    DELETION KEYS 
    [CTRL+C]       - Delete the whole line. 
    [CTRL+D]       - Delete the character selected by the cursor. 
    [CTRL+K]       - Delete all the characters to the right of the cursor, including the character selected by the cursor. 
    [Backspace] - Delete the character to the left of the cursor. 
     
    PAGING KEYS 
    [Enter]        - Move to the next line. 
    [Space]        - Move to the next page. 
    [G]            - Move to the last page. 
     
    ESCAPE SEQUENCES 
    Some characters cannot be inputed literally. They should be represented with escape sequences, 
    which are character sequences beginning with a backslash ("\'). The following table lists all the 
    escape sequences: 
     
    \\     A literal backslash, `\'. 
     
    \s     A space. 
     
    \q     A question-mark, '?'. 
     
    \|     A vertical-line, '|'.
  • To query the available adjacent segments and their details after typing a segment, type ? after the segment followed by a space.
    admin:/>add ?//Type the question mark (?) following a space 
    cache_partition 
    clone                Add a LUN to the clone 
    consistency_group Add a remote replication to the consistency group 
    disk_domain          Add disks to disk domain 
    host                 Add an initiator to the host 
    host_group           Add host(s) to host group 
    lun_copy             Add a target to the LUN copy 
    lun_group            Add the LUN(s) to the LUN group 
    mapping_view         Add port group to mapping view 
    notification         Add a trap notification record 
    port               Add a route to the port 
    port_group           Add port(s) to port group 
    remote_device        Add a link to the remote device 
    security_rule        Add a security rule 
    smartqos_policy      Add LUN(s) to the SmartQoS policy 
    snmp                 Add a SNMP USM record 
    storage_pool         Add tier to storage pool

Context-sensitive Help — Using the Ctrl+A Combination Keys

By pressing Ctrl+A when specifying parameters for certain commands, you can see the optional values of the parameters. Those values depend on the storage system that is being used. Here is an example:

To view all the available optional values of an operating parameter, press Ctrl+A right after typing the parameter.

admin:/>change port eth eth_port_id=//Press Ctrl+A to view optional values. 
---------------  Host Port:---------------- 

  ID              Health Status  Running Status  Type       IPv4 Address  IPv6 Address  MAC                Role         Working Rate(Mbps)  Enabled  Max Speed(bps) 
  --------------  -------------  --------------  ---------  ------------  ------------  -----------------  -----------  ------------------  -------  -------------- 
  CTE0.B.IOM0.P0  Normal         Link Down       Host Port  --            --            88:3f:d3:39:49:e9  INI and TGT  --                  Yes      10000 

  CTE0.B.IOM0.P1  Normal         Link Down       Host Port  --            --            88:3f:d3:39:49:ea  INI and TGT  --                  Yes      10000 

  CTE0.B.IOM0.P2  Normal         Link Down       Host Port  --            --            88:3f:d3:39:49:eb  INI and TGT  --                  Yes      10000 

  CTE0.B.IOM0.P3  Normal       Link Down       Host Port  --            --            88:3f:d3:39:49:ec  INI and TGT  --                  Yes      10000 

------------  Management Port:------------- 

  ID            Health Status  Running Status  Type             IPv4 Address  IPv6 Address  MAC                Role  Working Rate(Mbps)  Enabled  Max Speed(Mbps) 
  ------------  -------------  --------------  ---------------  ------------  ------------  -----------------  ----  ------------------  -------  --------------- 
  CTE0.A.MGMT0  Normal         Link Down       Management Port  10.124.61.10  --            00:00:05:15:0a:00  -- --                  Yes      1000 

  CTE0.A.MGMT1  Normal         Link Up         Management Port  --            --            00:00:05:15:0a:00  -- 1000                Yes      1000 

  CTE0.B.MGMT0  Normal         Link Down       Management Port  10.124.61.11  --            00:00:05:15:0b:00  -- --                  Yes      1000 

  CTE0.B.MGMT1  Normal         Link Up         Management Port  --            --            00:00:05:15:0b:00  -- 1000                Yes      1000 

------------  Maintenance Port:------------ 

  ID                  Health Status  Running Status  Type              IPv4 Address IPv6 Address  MAC                Role  Working Rate(Mbps)  Enabled  Max Speed(Mbps) 
  ------------------  -------------  --------------  ----------------  --------------  ------------  -----------------  ----  ------------------  -------  --------------- 
  CTE0.A.MAINTENANCE  Normal         Link Down       Maintenance Port  172.31.128.102  --            00:00:05:15:0a:00  -- --                  Yes      1000 

  CTE0.B.MAINTENANCE  Normal         Link Down       Maintenance Port  172.31.128.102  --            00:00:05:15:0b:00  -- --                  Yes      1000     
Translation
Download
Updated: 2019-07-16

Document ID: EDOC1100049140

Views: 123591

Downloads: 155

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