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
Connect-NcController : API invoke Failed - Error When Logging in With Powershell to SVM
2025-03-05
01:11 PM
366 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are getting these errors when we try to connect directly via powershell to the SVM. If we connect to the higher-level controller and SVM, it works. This used to work in former versions of ONTAP. Trying to avoid changing scripts unless I have to. Anybody know how to fix this?
Connect-NcController svmName -Credential vsadmin -vserver SVMName
Connect-NcController : API invoke failed:The underlying connection was closed: An unexpected error occurred on a send.
At line:1 char:1
Connect-NcController Device -Credential admin -vserver SVMName - this works
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
It works for me.
PS C:\Users\user\Scripts> Connect-NcController <SVM_IP> -Credential snapcenter -Vserver <Svm_Name>
PowerShell credential request
Enter your credentials.
Password for user snapcenter: ************
Name Address Vserver Version
---- ------- ------- -------
<SVM_IP> <SVM_IP> <SVM_Name> NetApp Release 9.14.1P10: Thu Nov 28 12:32:16 UTC 2024
PS C:\Users\user\Scripts> Get-NcVol -ONTAPI| select Vserver, Name
Vserver Name
------- ----
svm_name prod_data
svm_name prod_data2
svm_name svm_name_rootvol
svm_name svm_name_rootvol_ls1
What version is your Ontap? and PSTK?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are on NetApp Release 9.15.1P6. Powershell_9.16.1. What perms does you snapcenter account use? We are using vsadmin account with vsadmin roles.
