Forum Discussion

saravananp's avatar
saravananp
Day Hiker I
1 hour ago

Pure FlashArray CLI Quick References (daily feeds)

QuestionsCommandsExplanations
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.
How to display the connection key that can be used to connect to a Pure Flash Arraypurearray list --connection-keyDisplay the connection key that can be used to connect to the array
How to list all the users configured in the Flash Arraypureadmin listList all the users configured in the Flash Array
How to list all the Volumes in a Pure Flash Arraypurevol listList all the Virtual Volume
How to list all the drive modules in a Pure Flash Arraypurehw list --type bayList all the Drive modules in an Array
How to display all the Flash Array Target Portspureport listDisplay 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 arraypurevol move vol001 MYPOD001Move 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 arraypuredns listDisplay the current DNS parameters configured in the array. This includes the domain suffixes and IP addresses of the name servers
How to destroy a PODpurepod destroy MYPOD001Destroy 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 Arraypurearray list --syslogserverList 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 Arraypuredrive listList 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 arraypurepod replica-link monitor --replicationMonitor 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 Hostpurehost list MY-SERVER-001 --connectList all the volumes connected to Host MY-SERVER-001
How to list all the PODs in the Pure Flash arraypurepod listList 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 Arraypurearray monitor --interval 4 --repeat 5Display 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 Arrayspureport 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 Arraypurehgroup disconnect MY-HOSTS --vol MY_VOL_001Disconnect volume MY_VOLUME_001 from hostgroup MY-HOSTS
How to remove all the hosts from a hostgroup in Pure Flash Arraypurehgroup setattr MY-HOSTS --hostlist ""Remove all the hosts from hostgroup MY-HOSTS
How to disconnect remote array from the local Pure Flash arraypurearray disconnect 10.0.0.1Disconnects 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 arraypureadmin global setattr --min-password-length 8Set 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 Arraypurehgroup connect MY-HOSTS --vol MY_VOL_001Connect 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 Arraypurehost rename MY-SERVER-001 YOUR-SERVER-001Rename host MY-SERVER-001 to YOUR-SERVER-001
How to demote a pod in Pure Flash arraypurepod demote MYPOD001Demote the pod MYPOD001
How to change the bandwidth a Volume in Pure Flash Arraypurevol setattr --bw-limit 1M MY_VOL_001Change the bandwidth limit of MY_VOL_001 to 1MB/s
How to connect volume to host in Pure Flash Arraypurevol connect MY_VOL_001 --host MY-SERVER-001Connect 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 Arraypurehost connect MY-SERVER-001 MY-SERVER-002 --vol MY_VOL_001Connect 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 keypurearray connect --management-address 10.0.0.1 --type async-replication --connection-keyConnects 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 Arraypureport 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 Arraypurevol connect MY_VOL_001 MY_VOL_002 --host MY-SERVER-001Connect volumes MY_VOL_001 and MY_VOL_002 to host MY-SERVER-001
How to create a host object in Pure Flash Arraypurehost create MY-SERVER-001Create 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 Arraypurevol snap MY_VOL_001Create 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 Arraypurevol setattr --size 2G MY_VOL_001 MY_VOL_002Increase 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 Arraypurehost setattr MY-SERVER-001 --remwwnlist 1000000000000003Remove HBA wwn 1000000000000003 from host MY-SERVER-001
How to create multiple host objects in a Pure Flash Arraypurehost create MY-SERVER-001 MY-SERVER-002Create hosts MY-SERVER-001 and MY-HOST-002
How to display the personality of a hostpurehost list MY-SERVER-001 --personalityDisplay the personality of host MY-SERVER-001
How to list the hosts and personality assigned to eachpurehost list --personalityDisplay 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 Arraypureadmin reset testuser --lockoutUnlock locked user testuser
How to list all the volumes sorted by serial number in descending order on a Pure Flash Arraypurevol list --sort "serial-"List all the volumes sorted by serial number descending order
How to create a Volume in a Pure Flash Arraypurevol create --size 10G MY_VOLUME_001Create a Virtual volume called MY_VOLUME_001 of size 10GB
No RepliesBe the first to reply