---
title: 'Useful Pure Storage Flash Array CLI commands'
url: 'https://tech.luc3nt.com/blog/useful-pure-storage-flash-array-cli-commands'
markdown: 'https://tech.luc3nt.com/blog/useful-pure-storage-flash-array-cli-commands.md'
date: '2022-05-30'
description: 'Pure Storage Flash Array CLI commands that I find useful.. Just for Reference. pureve'
taxonomy:
  tag:
    - pure
    - 'shell script'
  archives_month:
    - may_2022
  archives_year:
    - '2022'
---

# Useful Pure Storage Flash Array CLI commands

[ Home ](https://tech.luc3nt.com/)     [ Blog ](https://tech.luc3nt.com/blog)      Useful Pure Storage Flash Array CLI commands    

Pure Storage Flash Array CLI commands that I find useful.. Just for Reference.

#### pureversion:

- `pureversion -a` - Shows the current version of code on the controller

#### pureboot:

- `pureboot list` - Displays which version of Purity OS will load on boot.
- `pureboot reboot --offline` - Reboots the current controller
- `pureboot reboot --primary` - Reboots the current controller, returns as Primary
- `pureboot reboot --secondary` - Reboots the current controller, returns as Secondary

#### purearray:

- `purearray list` - Displays the array name, serial no and firmware version details.
- `purearray list --controller` - Lists all the controllers connected to the Pure array. Also displays the model, status & firmware details of each controller.
- `purearray list --connect` - Display remotely connected arrays.
- `purearray list --ntpserver` - Display configured NTP server to sync system time.
- `purearray list --space` - Display the capacity usage information of the Pure device.

#### puredb:

- `puredb list mode` - Returns the name of the primary controller.
- `puredb query firmware_upgrades` - Shows actively running firmware updates.
- `puredb run giveback --safe` - Performs a manual failover to the secondary controller making it the primary and this controller the secondary. (must be ran from primary)

#### purealert:

- `purealert list` - List all the active alerts in the Pure device.
- `purealert list --filter “severity=’critical'”` - List all the alerts with severity :critical.

#### puredrive:

- `puredrive list` - List all the flash disks in the device. This will also display the capacity of each flash module.
- `puredrive list --total` - List all flash disks with total capacity.
- `puredrive list CH1.BAY5` - Display information about specific flash drive (CH1 & BAY5 is mentioned as an example).
- `puredrive admit` - Admits unadmitted flash drives.

#### purehgroup:

- `purehgroup list` - List all hostgroups.
- `purehgroup list --connect` - Lists all hostgroups with connected volumes.
- `purehgroup list --connect HG01` - Lists connected volumes to the host group HG01 (HG01 is mentioned as an example).
- `purehgroup list --space` - List all the hostgroups with the total capacity of connected volumes.

#### purehost:

- `purehost list` - List all hosts
- `purehost list --connect` - List all hosts with connected volumes
- `purehost list --connect HOST01` - Lists connected volumes to the host HOST01 (HOST01 is mentioned as an example)
- `purehost monitor --balance` - Shows the current balance across hosts

#### purehw:

- `purehw list` - List hardware components
- `purehw list --spec` - List hardware components with part number and serial number
- `purehw list --type bay --spec` - List all the drive modules with part number & serial number

#### pureport:

- `pureport list` - Display all the target ports within the device.
- `pureport list –initiator` - lists all the host initiator WWNs & IQNs.

#### purevol:

- `purevol list` - List all virtual volumes
- `purevol list –snap` - List all snaps
- `purevol list –space` - List all virtual volumes with size

 [ Previous Post](https://tech.luc3nt.com/blog/ansible-for-san-automation-part-3)

#### Related Posts

- 100 

     [Ansible for SAN Automation: Part 3 Pure Storage Flash Array](https://tech.luc3nt.com/blog/ansible-for-san-automation-part-3 "Ansible for SAN Automation: Part 3 Pure Storage Flash Array")
- 50 

     [Joining Linux to Active Directory](https://tech.luc3nt.com/blog/joining-linux-to-active-directory "Joining Linux to Active Directory")

#### Random Article

 [ I'm Feeling Lucky!](https://tech.luc3nt.com/random)

#### About Me

![imgur](https://i.imgur.com/l86CB8L.png)##### **Tony Lucent**

**Blog Owner - System Engineer - Technology Enthusiast** 
I excel in data storage, storage area networking, disaster recovery, and virtualization.

![](https://raw.githubusercontent.com/bradvin/social-share-urls/master/images/logo-icons/linkedin.jpg) [LinkedIn](https://www.linkedin.com/in/amlucent/)

#### Popular Tags

#### Archives

- [ 2 May 2022  ](https://tech.luc3nt.com/blog/archives_month:may_2022)
- [ 1 April 2022  ](https://tech.luc3nt.com/blog/archives_month:apr_2022)
- [ 2 March 2022  ](https://tech.luc3nt.com/blog/archives_month:mar_2022)
- [ 1 February 2022  ](https://tech.luc3nt.com/blog/archives_month:feb_2022)
- [ 1 November 2020  ](https://tech.luc3nt.com/blog/archives_month:nov_2020)
- [ 2 October 2020  ](https://tech.luc3nt.com/blog/archives_month:oct_2020)
- [ 2 August 2020  ](https://tech.luc3nt.com/blog/archives_month:aug_2020)
- [ 1 July 2020  ](https://tech.luc3nt.com/blog/archives_month:jul_2020)

#### Syndicate

 [ Atom 1.0](https://tech.luc3nt.com/blog.atom) [ RSS](https://tech.luc3nt.com/blog.rss)

---

## Navigation

- Parent: [Blog](https://tech.luc3nt.com/blog.md)
- Next: [Ansible for SAN Automation: Part 3 Pure Storage Flash Array](https://tech.luc3nt.com/blog/ansible-for-san-automation-part-3.md)
