ONTAP Discussions

Connect-NcController : API invoke Failed - Error When Logging in With Powershell to SVM

ZBasile
76 Views

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
1 REPLY 1

Sanaman
25 Views

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?

Public