New-FlashArrayCapacityReport cmdlet in Pure Storage PowerShell Toolkit 3.3.224.0

[Updated: 2/23/2017, 2/22/2017]

New-FlashArrayCapacityReport is a new cmdlet introduced in the Pure Storage PowerShell Toolkit 3.3.224.0. This reports provides a view of the FlashArray that includes the following:

  • Information about the FlashArray such as Name, Purity Version, ID, System Capacity and more.
  • Details about volumes such as Name, Size, Data Reduction, Thin Provisioning and Shared Space.
  • Volumes section has a Protected column to indicate if a volume is protected by a snapshot.
  • Details about individual FlashRecover Snapshots.

 

PS C:\> New-FlashArrayCapacityReport -EndPoint 10.0.0.1 -OutFilePath C:\Temp -HTMLFileName Test-Report.html

FlashArray Capacity Report example:

An additional cmdlet added is Update-DriveInformation which allows the updating of drive letters and drive labels easily.

Example to update existing mounted drive letter from T to S and set new drive label:

PS C:\> Update-DriveInformation -CurrentDriveLetter T -NewDriveLetter S -NewDriveLabel 'TEST3'

Example updating existing drive letter with new drive label:

PS C:\> Update-DriveInformation -CurrentDriveLetter S -NewDriveLabel 'TEST789'

 

Install the updated PowerShell Toolkit from the PowerShell Gallery as follows:

PS C:\> Install-Module -Name PureStoragePowerShellToolkit -RequiredVersion 3.3.224.0

If there you have any feedback or feature additions for the New-FlashArrayCapacityReport cmdlet please add them here.

Thanks,
Barkz

  • Justin Wilamowski

    Love the idea of the Capacity report.. attempting to give it a try this morning but running into a few issues..

    1. Simple typo, the PS Command line listed above shows it as New-FlashArrayReport instead of New-FlashArrayCapacityReport.

    2. Running the report seems to generate repeated errors that seem to be related to the percentage complete (this might be a non-issue but after roughly 5 minutes of the same looping error i killed it):

    Write-Progress : Cannot validate argument on parameter ‘PercentComplete’. The 467 argument is greater than the ma
    allowed range of 100. Supply an argument that is less than or equal to 100 and then try the command again.
    At C:Program
    FilesWindowsPowerShellModulesPureStoragePowerShellToolkit3.2.0.0PureStoragePowerShellToolkit.psm1:190 char:9
    + … ng Pure Storage FlashArray report…” -PercentComplete $volumes.Count
    + ~~~~~~~~~~~~~~
    + CategoryInfo : InvalidData: (:) [Write-Progress], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.WriteProgressCommand

    • Hi Justin –

      First off thanks for the feedback. Nice to know there are people using the toolkit. I removed the Write-Progress updates as it really isn’t necessary, but if you have feedback on that feature let me know. I just updated the module on the PowerShell Gallery to 3.3.224.0 and also pushed the updated source code to GitHub. Check http://code.purestorage.com for the repo. I also update the blog post to reflect the correct cmdlet name, figured I’d at least get that one right 😉

      If you have requests for a feature log it on the Issues section of the GitHub repo (https://github.com/PureStorage-OpenConnect/powershell-toolkit/issues).

      Thanks,
      Barkz

    • Barkz

      Hi Justin –

      First off thanks for the feedback. Nice to know there are people using the toolkit. I removed the Write-Progress updates as it really isn’t necessary, but if you have feedback on that feature let me know. I just updated the module on the PowerShell Gallery to 3.3.224.0 and also pushed the updated source code to GitHub. Check http://code.purestorage.com for the repo. I also update the blog post to reflect the correct cmdlet name, figured I’d at least get that one right 😉

      If you have requests for a feature log it on the Issues section of the GitHub repo (https://github.com/PureStorage-OpenConnect/powershell-toolkit/issues).

      Thanks,
      Barkz

  • Garrick Dunkley

    The report shows overall data reduction but is it possible to get it to show the actual data reduction figure? (The one without thin provisioning)

    • Hi Garrick –

      The Volumes section contains the per volume actual data reduction value. Is this what you are looking for?

      Thanks,
      Barkz

    • Barkz

      Hi Garrick –

      The Volumes section contains the per volume actual data reduction value. Is this what you are looking for?

      Thanks,
      Barkz