Downloadable SMcli command line parameters
The SANtricity OS 11.60 and newer releases include the ability to download and install the http-based version of CLI (also referred to as "Secure CLI" or SMcli) directly through the SANtricity System Manager.
11.60 and newer downloadable SMcli command line parameters
The downloadable version of the SMcli is available on E4000, EF600, EF300, E5700, EF570, E2800, and EF280 controllers. To download the SMcli within the SANtricity System Manager, select Settings > System and Add-ons > Command Line Interface .
A Java Runtime Environment (JRE), version 8 and above, must be available on the management system where you plan to run the CLI commands. |
As with previous versions of the SMcli, the SMcli downloadable through the SANtricity System Manager has a unique set of parameters. For information on using command line parameters for SANtricity OS 11.53 and older releases, see Legacy command line parameters.
Multifactor authentication
If SAML (Security Assertion Markup Language) is enabled, only access tokens can be used with the CLI. If SAML is not enabled, the username/password or access tokens can be used. Access tokens can be generated through the SANtricity System Manager.
Parameter | Definition |
---|---|
|
Defines the access token to be used for authentication with a storage array. An access token is a replacement for supplying the username and password. |
|
This argument requires one of two arguments:
|
|
Follow this parameter with the |
|
Defines the password for the storage array on which you want to run commands. A password is not necessary under these conditions:
|
|
This argument requires one of two arguments:
|
General https mode command line parameters
The downloadable SMcli only supports https mode. The following are commonly used command line parameters for https mode.
Parameter | Definition | ||
---|---|---|---|
|
Specifies either the host name or the Internet Protocol (IP) address ( When managing out-of-band storage management through the Ethernet connection on each controller, you must specify the |
||
|
This optional argument allows an
|
||
|
Runs the commands without performing a syntax check first. |
||
|
Displays the legal notices for Downloadable SMcli. |
||
|
Specifies the locally stored label on which you want to run the script commands. This is optional when you use
|
||
|
Specifies a file name for all output text that is a result of running the script commands. Use the
If you do not specify an output file, the output text goes to standard output ( |
||
|
Suppresses informational messages describing the command progress that appear when you run script commands. (Suppressing informational messages is also called silent mode.) This parameter suppresses these messages:
|
||
|
Displays the downloadable SMcli version |
||
|
Shows usage information about the CLI commands. |
Managing stored arrays
The following command line parameters allow you to manage stored arrays through your locally stored label.
The locally stored label may not match the actual storage array name displayed under the SANtricity System Manager. |
Parameter | Definition | ||
---|---|---|---|
|
Displays all locally stored labels and their associated addresses |
||
|
Displays the addresses associated with the locally stored label named |
||
|
Deletes all locally stored labels |
||
|
Deletes the locally stored label named |
||
|
|
Parameter | Definition |
---|---|
|
Displays all trusted certificates stored locally |
|
Displays a locally stored trusted certificate with the alias |
|
Deletes all trusted certificates stored locally |
|
Deletes a locally stored trusted certificate with the alias |
|
|
|
|
Identify devices
The following command line parameter allow you to display information for all applicable devices visible to the host.
Starting with the SANtricity 11.81 release, the SMcli identifyDevices parameter replaces functionality previously available through the SMdevices tool.
|
Parameter | Definition |
---|---|
|
Looks for all SCSI native block devices that are associated with our Storage Arrays. For each found device, reports various information such as native OS specific device name, associated storage array, volume name, LUN info, etc. |
Examples
Refer to the following for examples of the -identifyDevices
parameter within the Linux and Windows operating systems.
ICTAE11S05H01:~/osean/SMcli-01.81.00.10004/bin # ./SMcli -identifyDevices <n/a> (/dev/sg2) [Storage Array ictae11s05a01, Volume 1, LUN 0, Volume ID <600a098000bbd04f00001c7365426b58>, Alternate Path (Controller-A): Non owning controller - Active/Non-optimized, Preferred Path Auto Changeable: Yes, Implicit Failback: Yes] /dev/sdb (/dev/sg3) [Storage Array ictae11s05a01, Volume Access, LUN 7, Volume ID <600a098000bbcdd3000002005a731d29>] <n/a> (/dev/sg4) [Storage Array ictae11s05a01, Volume 1, LUN 0, Volume ID <600a098000bbd04f00001c7365426b58>, Preferred Path (Controller-B): Owning controller - Active/Optimized, Preferred Path Auto Changeable: Yes, Implicit Failback: Yes] /dev/sdc (/dev/sg5) [Storage Array ictae11s05a01, Volume Access, LUN 7, Volume ID <600a098000bbcdd3000002005a731d29>] SMcli completed successfully.
PS C:\Users\Administrator\Downloads\SMcli-01.81.00.0017\bin> .\SMcli -identifyDevices \\.\PHYSICALDRIVE1 [Storage Array ICTAG22S08A01, Volume Vol1, LUN 1, Volume ID <600a0980006cee060000592e6564fa6a>, Preferred Path (Controller-B): Owning controller - Active/Optimized, Preferred Path Auto Changeable: Yes, Implicit Failback: Yes] \\.\PHYSICALDRIVE2 [Storage Array ICTAG22S08A01, Volume Vol2, LUN 2, Volume ID <600a0980006ce727000001096564f9f5>, Preferred Path (Controller-A): Owning controller - Active/Optimized, Preferred Path Auto Changeable: Yes, Implicit Failback: Yes] \\.\PHYSICALDRIVE3 [Storage Array ICTAG22S08A01, Volume Vol3, LUN 3, Volume ID <600a0980006cee06000059326564fa76>, Preferred Path (Controller-B): Owning controller - Active/Optimized, Preferred Path Auto Changeable: Yes, Implicit Failback: Yes] \\.\PHYSICALDRIVE4 [Storage Array ICTAG22S08A01, Volume Vol4, LUN 4, Volume ID <600a0980006ce7270000010a6564fa01>, Preferred Path (Controller-A): Owning controller - Active/Optimized, Preferred Path Auto Changeable: Yes, Implicit Failback: Yes] SMcli completed successfully.
Additional Notes
-
Compatible on Linux and Windows operating systems running x86-64 platforms with SCSI-based host interfaces only.
-
NVMe-based host interfaces are not supported.
-
-
The
identifyDevices
parameter does not cause a re-scan at the OS level. It iterates over the existing devices seen by the OS. -
You must have sufficient user permissions to run the
identifyDevices
command.-
This includes the ability to read from OS native block devices and perform SCSI Inquiry commands.
-