Skip to main content

CLI command wrapper syntax

General syntax forms of the CLI command wrappers are listed in this section. The conventions used in the CLI command wrapper syntax are listed in the following table.

ConventionDefinition
a | b Alternative (" a " or " b ")

italicized-words

Needs user input to fulfill a parameter (a response to a variable)
[ ... ] (square brackets)Zero or one occurrence (square brackets are also used as a delimiter for some command parameters)
{ ... } (curly braces)Zero or more occurrences
(a | b | c) Choose only one of the alternatives
a &| b And/or. This is used for https client mode, when you can use with one or both controller IP addresses. This way, if one controller is not responding, SMcli will use the alternative IP address. This also covers the case when both IP addresses are required, such as for firmware download.
Attention
To run all of the CLI commands you must have administrator privileges. Some CLI commands will run without administrator privileges. Many commands, however, will not run. If the CLI command does not run because you do not have correct privileges, the CLI returns an exit code of 12.

Example in https client mode

The following examples demonstrate the https client mode command line parameters described in Command line parameters .

SMcli (Controller A host-name-or-IP-address&| 
Controller B host-name-or-IP-address) -u username -p password -c "commands;" [-clientType (auto | https | symbol)]
Note
If you do not specify a clientType , but do include the -u option and the username variable, the system will use either https or symbol client mode, whichever is available.

Examples in symbol client mode

The following examples demonstrate the symbol client mode command line parameters described in Command line parameters .

SMcli -a email: <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292293" className="keyword varname">email-address</var> [<var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292294" className="keyword varname">host-name-or-IP-address1</var> [<var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292295" className="keyword varname">host-name-or-IP-address2</var>]] [-n <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292296" className="keyword varname">storage-system-name</var> | -w <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292297" className="keyword varname">wwID</var> | -h <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292298" className="keyword varname">host-name</var>] [-I <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292299" className="keyword varname">information-to-include</var>] [-q <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292300" className="keyword varname">frequency</var>] [-S]
Restriction: The -a command line option is not supported for the DE2000H, DE4000H, DE4000F, DE6000H, and DE6000F storage array.
SMcli -x email: <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292301" className="keyword varname">email-address</var> [<var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292302" className="keyword varname">host-name-or-IP-address1</var> [<var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292303" className="keyword varname">host-name-or-IP-address2</var>]] [-n <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292304" className="keyword varname">storage-system-name</var> | -w <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292305" className="keyword varname">wwID</var> | -h <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292306" className="keyword varname">host-name</var>] [-S]
Restriction: The -x command line option is not supported for the DE2000H, DE4000H, DE4000F, DE6000H, and DE6000F storage array.
SMcli (-a | -x) trap: <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292307" className="keyword varname">community</var>, <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292308" className="keyword varname">host-name-or-IP-address</var> [<var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292309" className="keyword varname">host-name-or-IP-address1</var> [<var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292310" className="keyword varname">host-name-or-IP-address2</var>]] [-n <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292311" className="keyword varname">storage-system-name</var> | -w <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292312" className="keyword varname">wwID</var> | -h <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292313" className="keyword varname">host-name</var>] [-S]
Restriction: The -a and -x command line options are not supported for the DE2000H, DE4000H, DE4000F, DE6000H, and DE6000F storage array.
SMcli -d [-w] [-i] [-s] [-v] [-S]
Restriction: The -s command line option is not supported for the DE2000H, DE4000H, DE4000F, DE6000H, and DE6000F storage array.
SMcli <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292314" className="keyword varname">host-name-or-IP-address</var> -F <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292315" className="keyword varname">email-address</var> [-g <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292316" className="keyword varname">contactInfoFile</var>] [-S]
SMcli -A [<var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292317" className="keyword varname">host-name-or-IP-address</var> [<var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292318" className="keyword varname">host-name-or-IP-address</var>]] [-S]
SMcli -X (-n <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292319" className="keyword varname">storage-system-name</var> | -w <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292320" className="keyword varname">wwID</var> | -h <var id="GUID-925F3530-A333-4432-AB27-471650FCE721__V1292321" className="keyword varname">host-name</var>)
SMcli -?