Forum Discussion

saravananp's avatar
saravananp
Day Hiker I
3 hours ago

Pure FlashArray CLI Quick References (daily feeds)

QuestionsCommandsExplanations
How to display serial number of a specific hardware component of a Pure Flash Arraypurehw list CT0 --specDisplay model, part number, and serial number of Controller 0
How to check the Remote Assist is active or inactive in a Pure Flash Arraypurearray remoteassist --statuscheck the Remote Assist is active or inactive
How to change the password for a user in Flash Arraypureadmin setattr testuser --passwordChange the password for the user testuser
How to display the name serial number and firmware version of Pure Flash Arraypurearray listDisplay the array name,serial number and firmware version
How to generate API token for a user in Flash Arraypureadmin create testuser --api-tokenGenerate an API token for the user testuser
How to increase the size of a Volume in Pure Flash Arraypurevol setattr --size 2G MY_VOL_001Increase the size of MY_VOL_001 to 2GB ( from current size of 1GB for example )
How to list all the Ethernet ports in a Pure Flash Arraypurehw list --type ethList all the Ethernet ports in an Array
How to set the NTP server for Pure Flash Arraypurearray setattr --ntpserver time.google.comSet the NTP server
How to list all the Host initiators and connected volumespurehost list --allList all the hosts in a Flash Array along with its member initiators connected to volumes through target ports
How to list all the destroyed Virtual Volumes pending for eradication in a Pure Flash Arraypurevol list --pending-onlyList all the destroyed Virtual Volumes pending for eradication
How to list all the hardware components of a Pure Flash Array along with part and serial numberpurehw list --specList all the hardware components along with information like Model name, Part number and serial number
How to list the pods with the mediator connectivity status in a Pure Flash arraypurepod list --mediatorList all the pods along with connectivity status from each array to the mediator.
How to create a user in Flash Arraypureadmin create testuser --role storage_adminCreate user testuser with storage_admin role. Possible roles are readonly, ops_admin, storage_admin, array_admin
How to destroy Volume in Pure Flash Arraypurevol destroy MY_VOL_001Destroy virtual volume MY_VOL_001. This volume can be recovered within 24hrs. After that, physical storage occupied this volume will be reclaimed.
How to display audit log records in Pure Flash Storagepureaudit listDisplay the list of audit records. Audit trail records are created whenever administrative actions are perfromed by a user (for eg: creating, destroying, eradicating a volume)
How to list all the controllers connected to a Pure Flash Arraypurearray list --controllerList all the controllers connected to the Array. This will also display the model and status of each controller
How to list all the hardware components of a Pure Flash Arraypurehw listList all the hardware components along with information like status, temperature, voltage etc.
How to list all the HBA WWNs logged in to a Flash Array target FC portpureport list --initiator --raw --filter "name='CT0.FC0'"Display all HBA WWNs logged to the FC port CT0.FC0
How to expose the api token for the current userpureadmin list --api-token --exposeList all the users with api tokens configured and expose the api token for the current user loggedin.
How to set the personality for a hostpurehost setattr MY-SERVER-001 --personality esxiSet the personality of host MY-SERVER-001 to esxi. Some other values are aix, solaris etc..
How to display all the FC Ports in the Flash Arrayspureport list --raw --filter "name='*FC*'"Display all the Fibre Channel Ports with its WWNs in the Flash Arrays
How to display the host with a specified WWNpurehost list --filter "wwn='1000000000000003'"Display the host with WWN 1000000000000003 as a member
How to connect volume to host with specific LUN id in Pure Flash Arraypurevol connect MY_VOL_001 --host MY-SERVER-001 --lun 10Connect volume MY_VOL_001 to host MY-SERVER-001 and assign LUN id 10. This will Provide the R/W access to the volume.
How to copy data from one Volume to another in a Pure Flash Arraypurevol copy MY_VOL_001 MY_VOL_002 --overwriteCopy data from MY_VOL_001 to an existing volume MY_VOL_002. Contents of MY_VOL_002 will be overwritten.
No RepliesBe the first to reply