Now there is an active session to the FlashArray and this can be used to query the array for information. In order to use the current session the
$FlashArray variable will be used in all subsequent cmdlets for the
Array parameter. In the below example the FlashArray controller details are retrieved.
PS C:\> Get-PfaControllers -Array $FlashArray
status : ready
model : FA-m20
version : 4.8.1
name : CT0
mode : secondary
status : ready
model : FA-m20
version : 4.8.1
name : CT1
mode : primary
Any time information is retrieved from the FlashArray (GET operations) and assigned to variable it will return a PowerShell Object (PSObject). With the information stored as a PSObject individual properties can be queried, used as part of the pipeline or simply formatted.
PS C:\> $Controllers = Get-PfaControllers -Array $FlashArray
PS C:\> $Controllers.Item(0)
status : ready
model : FA-m20
version : 4.8.1
name : CT0
mode : secondary
PS C:\> $Controllers.Item(1)
status : ready
model : FA-m20
version : 4.8.1
name : CT1
mode : primary
PS C:\> $Controllers.Item(1).Name
CT1
PS C:\> $Controllers.Item(1).Model
FA-m20
PS C:\>