Start a Conversation

Unsolved

1 Rookie

 • 

41 Posts

3230

August 9th, 2022 00:00

isProTip

Introduction to PowerStore CLI

The PowerStore Manager CLI enables you to run commands on a system through a prompt from a Microsoft Windows or UNIX/Linux host. The PowerStore Manager CLI is intended for users who want to interactively manage a PowerStore system, or to use commands in scripts for automating routine tasks.

Set up the PowerStore CLI client, click here

PowerStore CLI command syntax

The syntax of an example command line is as follows:

pstcli ] [

PSTCLI command examples

Run PSTCLI from Client

pstcli -d -u -p -session

-session - Opens a persistent session with the cli> prompt

01-pstcli session.jpg

Basic help

02-Help.jpg

To get full list of commands

03-HelpAll.jpg

Help for specific command

04-HelpAlert.jpg

Example of alert show

05-AlertShow.jpg

View detail output of specific alert

06-AlertShow Detail.jpg

Event show example with limit to 3 output

08-EventShowLimit.jpg

Command show default limit of 100 records. To see all records, use -all as per below example

09-HardwareShowAll.jpg

Network show example with default view

10-NetworkShow.jpg

Use -select to show specific fields

11-NetworkShowSelect.jpg

Host show with default table output

14-HostShowTable.jpg

Host show with nvp output

15-HostShowNVP.jpg

Host show with csv output

16-HostShowCSV.jpg

Host show with json output

17-HostShowJSON.jpg

Full CLI Reference Guide, click here   

#PowerStore #storageinfrastructure #architecture #cloud #infrastructure #cluster #datacentric #IWork4Dell

1 Rookie

 • 

4 Posts

May 1st, 2023 14:00

Could someone provide an example of how to use the -query switch to filter for a specific string in a volume or host name

Query only for volumes containing TOM

TOM123

TOM456

TOM789

BILL123

BILL456

BILL789

 

Thanks.

1 Rookie

 • 

41 Posts

May 2nd, 2023 01:00

Hello @mpm1164 , 

You can try this command to filter volume name column that containing TOM.  

volume show -query "name like *TOM*"

To filter host name, use below command.

host show -query "name like *BILL*"

Hope this helps. 

1 Rookie

 • 

4 Posts

May 2nd, 2023 06:00

Thanks very much @Ooi Hoo Hong !

Moderator

 • 

53 Posts

May 4th, 2023 06:00

Hi Hoo Hong, 

great info on the CLI, thanks for sharing

No Events found!

Top