Useful Pure Storage Flash Array CLI commands

pure shell script

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