saravananp
3 hours agoDay Hiker I
Pure FlashArray CLI Quick References (daily feeds)
| Questions | Commands | Explanations |
| How to display serial number of a specific hardware component of a Pure Flash Array | purehw list CT0 --spec | Display model, part number, and serial number of Controller 0 |
| How to check the Remote Assist is active or inactive in a Pure Flash Array | purearray remoteassist --status | check the Remote Assist is active or inactive |
| How to change the password for a user in Flash Array | pureadmin setattr testuser --password | Change the password for the user testuser |
| How to display the name serial number and firmware version of Pure Flash Array | purearray list | Display the array name,serial number and firmware version |
| How to generate API token for a user in Flash Array | pureadmin create testuser --api-token | Generate an API token for the user testuser |
| How to increase the size of a Volume in Pure Flash Array | purevol setattr --size 2G MY_VOL_001 | Increase 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 Array | purehw list --type eth | List all the Ethernet ports in an Array |
| How to set the NTP server for Pure Flash Array | purearray setattr --ntpserver time.google.com | Set the NTP server |
| How to list all the Host initiators and connected volumes | purehost list --all | List 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 Array | purevol list --pending-only | List 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 number | purehw list --spec | List 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 array | purepod list --mediator | List all the pods along with connectivity status from each array to the mediator. |
| How to create a user in Flash Array | pureadmin create testuser --role storage_admin | Create user testuser with storage_admin role. Possible roles are readonly, ops_admin, storage_admin, array_admin |
| How to destroy Volume in Pure Flash Array | purevol destroy MY_VOL_001 | Destroy 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 Storage | pureaudit list | Display 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 Array | purearray list --controller | List 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 Array | purehw list | List 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 port | pureport 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 user | pureadmin list --api-token --expose | List all the users with api tokens configured and expose the api token for the current user loggedin. |
| How to set the personality for a host | purehost setattr MY-SERVER-001 --personality esxi | Set 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 Arrays | pureport 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 WWN | purehost 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 Array | purevol connect MY_VOL_001 --host MY-SERVER-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 copy data from one Volume to another in a Pure Flash Array | purevol copy MY_VOL_001 MY_VOL_002 --overwrite | Copy data from MY_VOL_001 to an existing volume MY_VOL_002. Contents of MY_VOL_002 will be overwritten. |