PowerFlex SCLI Basics show some useful commands for managing a PowerFlex cluster by command line.
PowerFlex CLI (SCLI) is installed as part of the MDM component. It can be found in the following operational systems:
Before using most SCLI commands, you must log in using the following command (for the 4.5.2 version, for example):
As we can see in the following picture, the “scli –login“ command has worked; however, since this MDM node is not the “Primary MDM node,” all subsequent commands fail:
As showed you before, our Primary MDM is the “SDS03”. To switch the Primary MDM ownership to another MDM, we can execute the following command (in this example, we are switching the Primary MDM ownership from SDS03 (192.168.255.73) to SDS01 (192.168.255.71)):
scli --login --management_system_ip pfmp.lab.local --username admin
scli --switch_mdm_ownership --new_primary_mdm_ip 192.168.255.71
As shown in the above picture, we have switched the Primary MDM ownership from SDS03 to SDS01. We have tried to execute a command from SDS03, and we have received an error since this node is not the Primary MDM node anymore 😉
The best approach is to log in to SDS01 and run the commands from there!
Querying MDM Cluster Details
To query the MDM Cluster details:
scli --query_cluster
This command helps understand the MDM cluster topology (whether a 3-node or 5-node cluster). Moreover, we can see the following details:
— Virtual IP addresses and their associated interfaces (if in use);
— The Primary MDM node;
— The Secondary MDM node;
— Tie-Breakers nodes;
— Standby MDMs;
— All IP addresses for each MDM node.
Querying Storage Data Server (SDS) Nodes
To query all Storage Data Server (SDS) nodes:
scli --query_all_sds
As shown in the above picture, eleven (11) SDS nodes exist, divided into two different Protection Domains (PD-0 and PD-1).
Querying Protection Domain Details
To query details of each Protection Domain:
scli --query_protection_domain --protection_domain_name PD-0
scli --query_protection_domain --protection_domain_name PD-1
Querying Storage Pool Details
To query details of each Storage Pool:
scli --query_storage_pool --protection_domain_name PD-0 --storage_pool_name SP-SW_SSD-0
scli --query_storage_pool --protection_domain_name PD-1 --storage_pool_name SP-SW_SSD-1
Querying Storage Data Client (SDC) Nodes
To query all Storage Data Client (SDS) nodes:
scli --query_all_sdc
As shown in the above picture, fifteen (15) SDC nodes exist. The SDC ID, SDC Name, Ips, Connected GUID, OS Type, Version, and other details can be seen.
Querying Details of a Specific Storage Data Server (SDS) Nodes
To query details of a specific Storage Data Server (SDS) node:
scli --query_sds --sds_name SDS01
Querying Details of a Specific Disk Device on SDS Node
To query details of a specific disk device for a Storage Data Server (SDS) node:
scli --query_sds_device_info --sds_name SDS01 --device_path /dev/sdc
To Wrapping This Up
PowerFlex CLI (SCLI) is an essential tool every PowerFlex Administrator must know.
We showed some examples of using. However, there are many possibilities with this tool. I highly recommended to check the CLI reference to see it: