Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
NetApp DataONTAP PowerShell Service Processor Reboot Command

2015-11-08
04:16 PM
4,582 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
