Subscribe

NetApp DataONTAP PowerShell Service Processor Reboot Command

I am trying to reboot the service processor on our netapp filers with the below command as part of a powershell script

 

$controller | ForEach-Object {

Invoke-NaSsh -Controller $_ -Command "sp reboot" -Credential $credential }

 

When running this command I get prompted for the following;

 

NOTE : If your console connection is through the SP,it will be disconnected Do you want to reboot the SP now? (y/n) :?

 

Does anyone have an idea how I can confirm within the powershell script

 

Re: NetApp DataONTAP PowerShell Service Processor Reboot Command

Why not use the Restart-NcServiceProcessor cmdlet?

 

Get-NcNode | Restart-NcServiceProcessor

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: NetApp DataONTAP PowerShell Service Processor Reboot Command

Is there a way to do this for 7-mode filers?  Doesn't appear to be an equivalent powershell cmdlet or "-force" flag via CLI to avoid the prompt.

 

Thanks,