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