saravananp
1 hour agoDay Hiker I
Pure FlashArray CLI Quick References (daily feeds)
| Questions | Commands | Explanations |
| 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. |
| How to display the connection key that can be used to connect to a Pure Flash Array | purearray list --connection-key | Display the connection key that can be used to connect to the array |
| How to list all the users configured in the Flash Array | pureadmin list | List all the users configured in the Flash Array |
| How to list all the Volumes in a Pure Flash Array | purevol list | List all the Virtual Volume |
| How to list all the drive modules in a Pure Flash Array | purehw list --type bay | List all the Drive modules in an Array |
| How to display all the Flash Array Target Ports | pureport list | Display all the target ports within the Flash Array. This includes FC, iSCSI and NVME ports. This command also displays WWNs of FC ports iSCSI Qualified Names(IQNs) for iSCSI ports and NVMe Qualified Names(NQNs) for NVMe ports. |
| How to move the volume to the pod in a Pure Flash array | purevol move vol001 MYPOD001 | Move the volume vol001 to the non-stretched pod. This will throw an error message if trying to add to a stretched pod. |
| How to display the current DNS parameters configured in the Pure Flash array | puredns list | Display the current DNS parameters configured in the array. This includes the domain suffixes and IP addresses of the name servers |
| How to destroy a POD | purepod destroy MYPOD001 | Destroy or delete POD MYPOD001. The POD must be empty and unstretched to destroy. POD will not be destructed immediately, but placed under 24hr eradication pending period. |
| How to display the syslog server setting for a Pure Flash Array | purearray list --syslogserver | List the syslog server names configured to push the logs in pure array |
| How to list all flash drives and NVRAM modules in a Pure Flash Array | puredrive list | List all the flash drive modules in an Array. This will also display the capacity of each module. |
| How to monitor replica links in a Pure Flash array | purepod replica-link monitor --replication | Monitor the data transfer speed on the replica links on the array. If the replication link is pause, the speed will show as 0 |
| How to list all the volumes connected to a Host | purehost list MY-SERVER-001 --connect | List all the volumes connected to Host MY-SERVER-001 |
| How to list all the PODs in the Pure Flash array | purepod list | List all the PODs in the Pure Flash array. This will shows the arrays in POD and status of each. |
| How to display the arraywide IO performance of a Pure Flash Array | purearray monitor --interval 4 --repeat 5 | Display the array-wide IO performance of a Flash Array in every 4 seconds for 5 times. |
| How to display all the FC Ports in a controller within the Flash Arrays | pureport list --raw --filter "name='CT0.FC*'" | Display all the Fibre Channel Ports in Controller 0 with its WWNs in the Flash Arrays |
| How to disconnect volume from hostgroup in Pure Flash Array | purehgroup disconnect MY-HOSTS --vol MY_VOL_001 | Disconnect volume MY_VOLUME_001 from hostgroup MY-HOSTS |
| How to remove all the hosts from a hostgroup in Pure Flash Array | purehgroup setattr MY-HOSTS --hostlist "" | Remove all the hosts from hostgroup MY-HOSTS |
| How to disconnect remote array from the local Pure Flash array | purearray disconnect 10.0.0.1 | Disconnects array 10.0.0.1 from the local array connected for remote replication. |
| How to set the minimum password length of user accounts in a Pure Flash array | pureadmin global setattr --min-password-length 8 | Set the minimum length of characters required for all the local user account passwords to 8. Minimum length allowed is 1. This will not affect the existing user accounts, but all future password assignment must meet the new value. |
| How to connect volume with hostgroup in Pure Flash Array | purehgroup connect MY-HOSTS --vol MY_VOL_001 | Connect volume MY_VOLUME_001 to hostgroup MY-HOSTS. This will assign a lun id to the volume. The lun id will start from 254 and go down up to 1If all LUNs in the [1...254] range are taken, Purity//FA starts at LUN 255 and counts up to the maximum LUN 16383, assigning the first available LUN to the connection. |
| How to rename a host object in a Pure Flash Array | purehost rename MY-SERVER-001 YOUR-SERVER-001 | Rename host MY-SERVER-001 to YOUR-SERVER-001 |
| How to demote a pod in Pure Flash array | purepod demote MYPOD001 | Demote the pod MYPOD001 |
| How to change the bandwidth a Volume in Pure Flash Array | purevol setattr --bw-limit 1M MY_VOL_001 | Change the bandwidth limit of MY_VOL_001 to 1MB/s |
| How to connect volume to host in Pure Flash Array | purevol connect MY_VOL_001 --host MY-SERVER-001 | Connect volume MY_VOL_001 to host MY-SERVER-001. This will Provide the R/W access to the volume.Next available lun address will used by default. |
| How to connect a volume to multiple hosts in Pure Flash Array | purehost connect MY-SERVER-001 MY-SERVER-002 --vol MY_VOL_001 | Connect volume MY_VOL_001 to hosts MY-SERVER-001 and MY-SERVER-002 |
| How to connects the local Pure Flash array to remote array for asynchronous replication using the connection key | purearray connect --management-address 10.0.0.1 --type async-replication --connection-key | Connects the local array to remote array 10.0.0.1 for asynchronous replication using the connection key. The Connection key will be prompted to enter. |
| How to display all the iSCSI Ports in aFlash Array | pureport list --raw --filter "name='*ETH*'" | Display all the iSCSI Ports with its IQNs in the Flash Arrays |
| How to connect multiple volumes to host in a Pure Flash Array | purevol connect MY_VOL_001 MY_VOL_002 --host MY-SERVER-001 | Connect volumes MY_VOL_001 and MY_VOL_002 to host MY-SERVER-001 |
| How to create a host object in Pure Flash Array | purehost create MY-SERVER-001 | Create a host object called MY-SERVER-001. HBA wwns can be added later using purehost setattr command. |
| How to create snap shot of a Volume in a Pure Flash Array | purevol snap MY_VOL_001 | Create snap shot of MY_VOL_001. If it is first snap then MY_VOL_001.2 will be created |
| How to increase the size of multiple Volume in Pure Flash Array | purevol setattr --size 2G MY_VOL_001 MY_VOL_002 | Increase the size of MY_VOL_001 and MY_VOL_002 to 2GB ( the current size of MY_VOL_001 is 500MB and MY_VOL_002 is 1GB, for example ) |
| How to remove hba wwn from a host object in Pure Flash Array | purehost setattr MY-SERVER-001 --remwwnlist 1000000000000003 | Remove HBA wwn 1000000000000003 from host MY-SERVER-001 |
| How to create multiple host objects in a Pure Flash Array | purehost create MY-SERVER-001 MY-SERVER-002 | Create hosts MY-SERVER-001 and MY-HOST-002 |
| How to display the personality of a host | purehost list MY-SERVER-001 --personality | Display the personality of host MY-SERVER-001 |
| How to list the hosts and personality assigned to each | purehost list --personality | Display the list hosts along with the personality set against each. The personality is define using the purehost setattr command. |
| How to unlock a locked user in Flash Array | pureadmin reset testuser --lockout | Unlock locked user testuser |
| How to list all the volumes sorted by serial number in descending order on a Pure Flash Array | purevol list --sort "serial-" | List all the volumes sorted by serial number descending order |
| How to create a Volume in a Pure Flash Array | purevol create --size 10G MY_VOLUME_001 | Create a Virtual volume called MY_VOLUME_001 of size 10GB |