Forum Discussion

saravananp's avatar
saravananp
Day Hiker I
5 hours ago

Pure FlashArray CLI Quick References (daily feeds)

QuestionsCommandsExplanations
How to display the NTP servers configured in a Pure Flash Arraypurearray list --ntpserverList the NTP servers configured
How to enable phonehome in a Pure Flash Arraypurearray enable phonehomeEnable phonehome or dialhome feature of array.
How to list all the FC ports in a Pure Flash Arraypurehw list --type fcList all the FC ports in an Array with status and speed information
How to configure the DNS attributes of a Pure Flash arraypuredns setattr --domain test.com --nameservers 192.168.0.10,192.168.2.11Add the IPv4 addresses of two DNS servers for Array to use to resolve hostnames to IP addresses, and the domain suffix test.com for DNS searches.
How to list all the connected volumes for a hostgroup in a Pure Flash arraypurehgroup list --connect MY-HOSTSList all the connected volumes for hostgroup MY-HOSTS
How to add hosts to existing hostgroups in Pure Flash Arraypurehgroup setattr MY-HOSTS --addhostlist MY-HOST-002,MY-HOST-003Add MY-HOST-002 and MY-HOST-003 to existing hostgroup MY-HOSTS
How to list all the Controllers in a Pure Flash Arraypurehw list --type ctList all the Controller in an Array
How to eradicate multiple Virtual Volumes in Pure Flash Arraypurevol eradicate MY_VOL_001 MY_VOL_002Eradicate virtual volumes MY_VOL_001 and MY_VOL_002 which are destroyed earlier. This will fully destroy the volumes and not be able to recover further.
How to add new HBA wwn to a host object in Pure Flash Arraypurehost setattr MY-SERVER-001 --addwwnlist 1000000000000003Add new HBA wwn 1000000000000003 to host MY-HOST-001. 1000000000000003 should not be part of any other host.
How to display all the host initiators know to the Flash Arraypureport list --initiatorDisplay all the host initiator WWNs, IQNs, NQNs known for the Flash Array. This also shows the target ports on which the initiators are eligible to communicate.
How to list all the flagged alerts in a Pure Flash arraypurealert list --flaggedList all the alerts that are flagged. By default all alerts are flagged. We can unflag command once those are resolved.
How to display the Dial Home status of a Pure Flash Arraypurearray list --phonehomeDisplay the dial home configuration status of the Array
How to unflag an alert in the Pure Flash arraypurealert unflag 121212Unflag alert with ID 121212. This will not appear in the flagged alert list.
How to rename a Pure Flash Arraypurearray rename MYARRAY001Set the name of the array to MYARRAY001
How to admit the newly connected drive modules in a Pure Flash arraypuredrive admitAdmit all drive modules that have been added or connected but not yet admitted to the array. Once successfully admitted, the status of the drive modules will change from unadmitted to healthy.
How to display the replication throttle limit of a Pure Flash Arraypurearray list --connect --throttleDisplay the replication throttle limit
How to eradicate a Volume in Pure Flash Arraypurevol eradicate MY_VOL_001Eradicate virtual volume MY_VOL_001 which is destroyed earlier. This will fully destroy the volume and not be able to recover further.
How to unstretch a PODpurepod remove --array PFAX70-REMOTE MYPOD001Remove the remote array PFAX70-REMOTE from the POD MYPOD001. This will unstretch the POD and volume data inside the POD no longer synchronously replicated between two arrays. Volumes within the POD will be only visible in local array.
How to list all the Open alerts in a Pure Flash arraypurealert list --filter "state='open'"List all the alerts in Open state
How to list all the Hosts with connected volumespurehost list --connectList all the hosts in a Flash Array which have connected volumes
How to create a volume and include in PODpurevol create --size 1G MYPOD001::MY_VOL_001Create a volume of 1GiB size and include it in MYPOD001. If MYPOD001 is stretched, the same volume will be created and visible on the remote arrays too. The volume name and WWN number will appear same from each arrays.
How to list all the volumes sorted by size and consumption on a Pure Flash Arraypurevol list --space --sort size,totalList all the volumes sorted by size of each volume and then total space consumed. Both fields are sorted in ascending order.
How to pause the replication link in a Pure Flash arraypurepod replica-link pause PRDPOD001 --remote ARRAY002 --remote-pod DRPOD001Pause the Active/DR replication by pausing the replica link connection between local and remote array. To continue the replication resume the replica link
How to recover a Volume in Pure Flash Arraypurevol recover MY_VOL_001Recover virtual volume MY_VOL_001 which is destroyed earlier.
How to change the role of a user in Flash Arraypureadmin setattr testuser --role array_adminChange the role of the user testuser to array_admin role. Possible roles are readonly, ops_admin, storage_admin, array_admin
How to move the volume out of a pod in Pure Flash arraypurevol move MYPOD001::vol001 ""Move the volume vol001 out of the non-stretched pod MYPOD001. Will throw an error if trying to move from a stretched pod.
How to connect volume to hostgroup in Pure Flash Arraypurevol connect MY_VOL_001 --hgroup MY-HOSTSConnect volume MY_VOL_001 to hostgroup MY-HOSTS. This will assign a lun id to the volume. The lun id will start from 1 and go up to 16383.
How to list all the Hosts in a Flash Arraypurehost listList all the hosts in a Flash Array with its member WWNs or IQNs or NQNs. This will also show the Host Groups if it part of any.
How to create a copy of Volume in Pure Flash Arraypurevol copy MY_VOL_001 MY_VOL_002Create a copy MY_VOL_001 and name it as MY_VOL_002. If MY_VOL_002 already exists this will throw and error.
How to rename a Volume in Pure Flash Arraypurevol rename MY_VOL_001 MY_VOL_002Rename virtual volume MY_VOL_001 to MY_VOL_002
How to display the historical capacity and usage statistics information of a Pure Flash Arraypurearray list --space --historical 30dDisplay the capacity and usage statistics information of the Array since last 30 days
How to connect host to volume with a specific LUN id in Pure Flash Arraypurehost connect MY-SERVER-001 --vol MY_VOL_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 list all the snap shots in a Pure Flash Arraypurevol list --snapList all the snap shots
How to list all the users with api tokens configured in the Flash Arraypureadmin list --api-tokenList all the users with api tokens configured
How to reduce the size of a Volume in Pure Flash Arraypurevol truncate --size 1G MY_VOL_001Reduce the size of MY_VOL_001 to 1GB ( from current size of 8GB for example )
How to list all flash drives and NVRAM modules in a Pure Flash Array with total capacitypuredrive list --totalList all the flash drive modules in an Array with the total capacity figure
How to disconnect volume from host in Pure Flash Arraypurevol disconnect MY_VOL_001 --host MY-SERVER-001Disconnect volume MY_VOL_001 from host MY-SERVER-001. This will remove the visibility of the volume to the host.
How to create a hostgroup with existing hosts in Pure Flash Arraypurehgroup create MY-HOSTS --hostlist MY-HOST-001,MY-HOST-002Create hostgroup MY-HOSTS and add existing hosts MY-HOST-001 and MY-HOST-002 in to it
How to stretch a PODpurepod add --array PFAX70-REMOTE MYPOD001Add the remote array PFAX70-REMOTE to the POD MYPOD001. This will stretch the POD and volume data inside the POD synchronously replicated between two arrays. The arrays in a stretched POD are considered as peers, there is no concept of source and target. Volumes within the POD will be visible in each arrays with same serial numbers.
How to create multiple Volume in a Pure Flash Arraypurevol create --size 10G MY_VOLUME_001 MY_VOLUME_002Create Virtual volumes MY_VOLUME_001 and MY_VOL_SIZE_002 of size 10GB
How to remove hosts from hostgroups in Pure Flash Arraypurehgroup setattr MY-HOSTS --remhostlist MY-HOST-002,MY-HOST-003Remove MY-HOST-002 and MY-HOST-003 from hostgroup MY-HOSTS
How to delete host object in a Pure Flash Arraypurehost delete MY-SERVER-001Delete host MY-SERVER-001
How to search for HBA WWN and on which FC port its been logged in to on Flash Arraypureport list --initiator --raw --filter "initiator.wwn='1000000000000001'"Search for HBA WWN 1000000000000001 and on which FC port its been logged in to.
How to list all the closed alerts in the Pure Flash arraypurealert list --filter "state='closed'"List all the closed alerts
How to disconnect a specific volume from the host in Pure Flash Arraypurehost disconnect MY-SERVER-001 --vol MY_VOL_001Disconnect volume MY_VOL_001 from host MY-SERVER-001. This will remove the visibility of the volume to the host.
No RepliesBe the first to reply