Microsoft Virtualization Discussions

NetApp DataONTAP PowerShell Service Processor Reboot Command

itsupport
4,266 Views

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

 

2 REPLIES 2

asulliva
4,107 Views

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.

BenCoughtry
3,457 Views

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,

Public