saravananp
5 hours agoDay Hiker I
Pure FlashArray CLI Quick References (daily feeds)
| Questions | Commands | Explanations |
| How to display the NTP servers configured in a Pure Flash Array | purearray list --ntpserver | List the NTP servers configured |
| How to enable phonehome in a Pure Flash Array | purearray enable phonehome | Enable phonehome or dialhome feature of array. |
| How to list all the FC ports in a Pure Flash Array | purehw list --type fc | List all the FC ports in an Array with status and speed information |
| How to configure the DNS attributes of a Pure Flash array | puredns setattr --domain test.com --nameservers 192.168.0.10,192.168.2.11 | Add 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 array | purehgroup list --connect MY-HOSTS | List all the connected volumes for hostgroup MY-HOSTS |
| How to add hosts to existing hostgroups in Pure Flash Array | purehgroup setattr MY-HOSTS --addhostlist MY-HOST-002,MY-HOST-003 | Add MY-HOST-002 and MY-HOST-003 to existing hostgroup MY-HOSTS |
| How to list all the Controllers in a Pure Flash Array | purehw list --type ct | List all the Controller in an Array |
| How to eradicate multiple Virtual Volumes in Pure Flash Array | purevol eradicate MY_VOL_001 MY_VOL_002 | Eradicate 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 Array | purehost setattr MY-SERVER-001 --addwwnlist 1000000000000003 | Add 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 Array | pureport list --initiator | Display 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 array | purealert list --flagged | List 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 Array | purearray list --phonehome | Display the dial home configuration status of the Array |
| How to unflag an alert in the Pure Flash array | purealert unflag 121212 | Unflag alert with ID 121212. This will not appear in the flagged alert list. |
| How to rename a Pure Flash Array | purearray rename MYARRAY001 | Set the name of the array to MYARRAY001 |
| How to admit the newly connected drive modules in a Pure Flash array | puredrive admit | Admit 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 Array | purearray list --connect --throttle | Display the replication throttle limit |
| How to eradicate a Volume in Pure Flash Array | purevol eradicate MY_VOL_001 | Eradicate 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 POD | purepod remove --array PFAX70-REMOTE MYPOD001 | Remove 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 array | purealert list --filter "state='open'" | List all the alerts in Open state |
| How to list all the Hosts with connected volumes | purehost list --connect | List all the hosts in a Flash Array which have connected volumes |
| How to create a volume and include in POD | purevol create --size 1G MYPOD001::MY_VOL_001 | Create 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 Array | purevol list --space --sort size,total | List 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 array | purepod replica-link pause PRDPOD001 --remote ARRAY002 --remote-pod DRPOD001 | Pause 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 Array | purevol recover MY_VOL_001 | Recover virtual volume MY_VOL_001 which is destroyed earlier. |
| How to change the role of a user in Flash Array | pureadmin setattr testuser --role array_admin | Change 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 array | purevol 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 Array | purevol connect MY_VOL_001 --hgroup MY-HOSTS | Connect 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 Array | purehost list | List 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 Array | purevol copy MY_VOL_001 MY_VOL_002 | Create 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 Array | purevol rename MY_VOL_001 MY_VOL_002 | Rename virtual volume MY_VOL_001 to MY_VOL_002 |
| How to display the historical capacity and usage statistics information of a Pure Flash Array | purearray list --space --historical 30d | Display 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 Array | purehost connect MY-SERVER-001 --vol MY_VOL_001 --lun 10 | Connect 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 Array | purevol list --snap | List all the snap shots |
| How to list all the users with api tokens configured in the Flash Array | pureadmin list --api-token | List all the users with api tokens configured |
| How to reduce the size of a Volume in Pure Flash Array | purevol truncate --size 1G MY_VOL_001 | Reduce 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 capacity | puredrive list --total | List all the flash drive modules in an Array with the total capacity figure |
| How to disconnect volume from host in Pure Flash Array | purevol disconnect MY_VOL_001 --host MY-SERVER-001 | Disconnect 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 Array | purehgroup create MY-HOSTS --hostlist MY-HOST-001,MY-HOST-002 | Create hostgroup MY-HOSTS and add existing hosts MY-HOST-001 and MY-HOST-002 in to it |
| How to stretch a POD | purepod add --array PFAX70-REMOTE MYPOD001 | Add 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 Array | purevol create --size 10G MY_VOLUME_001 MY_VOLUME_002 | Create Virtual volumes MY_VOLUME_001 and MY_VOL_SIZE_002 of size 10GB |
| How to remove hosts from hostgroups in Pure Flash Array | purehgroup setattr MY-HOSTS --remhostlist MY-HOST-002,MY-HOST-003 | Remove MY-HOST-002 and MY-HOST-003 from hostgroup MY-HOSTS |
| How to delete host object in a Pure Flash Array | purehost delete MY-SERVER-001 | Delete host MY-SERVER-001 |
| How to search for HBA WWN and on which FC port its been logged in to on Flash Array | pureport 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 array | purealert list --filter "state='closed'" | List all the closed alerts |
| How to disconnect a specific volume from the host in Pure Flash Array | purehost disconnect MY-SERVER-001 --vol MY_VOL_001 | Disconnect volume MY_VOL_001 from host MY-SERVER-001. This will remove the visibility of the volume to the host. |