Microsoft Virtualization Discussions

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




Why not use the Restart-NcServiceProcessor cmdlet?


Get-NcNode | Restart-NcServiceProcessor


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


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.



Register for Insight 2021 Digital

INSIGHT 2021 Digital: Meet the Specialists 2

On October 20-22, gear up for a fully digital, totally immersive virtual experience with a downright legendary lineup of world-renowned specialists. Tune in for visionary conversations, solution deep dives, technical sessions and more.

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner