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.
Conventions for CLI command wrapper syntax
Convention | Definition |
---|---|
|
Alternative ("a" or "b") |
|
Needs user input to fulfill a parameter (a response to a variable) |
|
Zero or one occurrence (square brackets are also used as a delimiter for some command parameters) |
|
Zero or more occurrences |
|
Choose only one of the alternatives |
|
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. |
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)]
If you do not specify a |
Examples in symbol client mode
The following examples demonstrate the symbol
client mode command line parameters described in Command line parameters.
SMcli **-a** **email:** email-address [host-name-or-IP-address1 [host-name-or-IP-address2]] [**-n** storage-system-name | **-w** wwID | **-h** host-name] [**-I** information-to-include] [**-q** frequency] [**-S**]
The |
SMcli **-x** **email:** email-address [host-name-or-IP-address1 [host-name-or-IP-address2]] [**-n** storage-system-name | **-w** wwID | **-h** host-name] [**-S**]
The |
SMcli (**-a** | **-x**) **trap:** community, host-name-or-IP-address [host-name-or-IP-address1 [host-name-or-IP-address2]] [**-n** storage-system-name | **-w** wwID | **-h** host-name] [**-S**]
The |
SMcli **-d** [**-w**] [**-i**] [**-s**] [**-v**] [**-S**]
The |
SMcli host-name-or-IP-address **-F** email-address [**-g** contactInfoFile] [**-S**]
SMcli **-A** [host-name-or-IP-address [host-name-or-IP-address]] [**-S**]
SMcli **-X **(**-n** storage-system-name | **-w** wwID | **-h** host-name)
SMcli **-?**