How-To: Configuring Remote Assist and Phone Home Using the PowerShell SDK v2
This article is for the PowerShell SDK version 2.
The Pure Storage FlashArray has a Remote Assist function for Pure Storage Support to connect to the array and perform tasks. In a typical scenario Remote Assist is enabled on an as-needed basis. There is also a feature called Phone Home that connects to the Pure1 service and uploads logs for continuous health monitoring. Both features use the Get-Pfa2SupportTest
and Update-Pfa2Support
cmdlets. The following PowerShell commands can be used to enable or disable Remote Assist and Phone Home without access to the FlashArray Web Management UI.
You must be connected to the array before executing these commands. Please reference this article for instructions on connecting to the array.
Remote Assist
Get status of Remote Assist
# Enter your array IP address or FQDN $FlashArray = "<IP or FQDN>" PS C:\>Get-Pfa2SupportTest -Array $FlashArray -TestType remote-assist ComponentAddress : ComponentName : CT0 Description : Testing remote assist connectivity Destination : Enabled : False ResultDetails : All tests passed. Success : True TestType : remote_assist PS C:\>
Enable Remote Assist
PS C:\>Update-Pfa2Support -Array $FlashArray -RemoteAssistActive $true ComponentAddress : ComponentName : CT0 Description : Testing remote assist connectivity Destination : Enabled : True ResultDetails : All tests passed. Success : True TestType : remote_assist PS C:\>
Disable Remote Assist
Update-Pfa2Support -Array $FlashArray -RemoteAssistActive $false ComponentAddress : ComponentName : CT0 Description : Testing remote assist connectivity Destination : Enabled : False ResultDetails : All tests passed. Success : True TestType : remote_assist PS C:\>
Phone Home
This example shows the commands to get the status of and set the Phone Home service as enabled or disabled.
It is not recommended that this service be disabled unless necessary.
Get status of Phone Home
PS C:\>Get-Pfa2SupportTest -Array $FlashArray -TestType phonehome ComponentAddress : ComponentName : CT0 Description : Testing phonehome connectivity and network status Destination : Enabled : True ResultDetails : Registered Success : True TestType : phonehome PS C:\>
Enable Phone Home
PS C:\>Update-Pfa2Support -Array $FlashArray -PhonehomeEnabled $true ComponentAddress : ComponentName : CT0 Description : Testing phonehome connectivity and network status Destination : Enabled : True ResultDetails : Registered Success : True TestType : phonehome PS C:\>
Disable Phone Home
PS C:\>Update-Pfa2Support -Array $FlashArray -PhonehomeEnabled $false ComponentAddress : ComponentName : CT0 Description : Testing phonehome connectivity and network status Destination : Enabled : False ResultDetails : Registered Success : True TestType : phonehome PS C:\>