Microsoft Virtualization Discussions

Upgrading PowerShell Toolkit to 9.10.1 broke my scripts.

Sanaman
2,521 Views

Hi,

Script was running fine on previous PSTK version so no firewall issues. Today I tested a simple line it can't connect to the cluster in version 9.10.1.


PS C:\Users\sanamn\Scripts> Connect-NcController  <Filer FQDN>
Connect-NcController : Invalid URI: The hostname could not be parsed.
At line:1 char:1
+ Connect-NcController <Filer FQDN>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (Filer FQDN:NcController) [Connect-NcController], UriFormatException
+ FullyQualifiedErrorId : HttpConnectionFailed,DataONTAP.C.PowerShell.SDK.ConnectNcController

 

My OnTap version is 9.9.1p6. Windows 10 enterprise running Powershell version 5.1

 

Thanks

4 REPLIES 4

mbeattie
2,481 Views

Hi,

 

I upgraded the PSTK to 9.10.1.2111 and tested it against an ONTAP 9.8 cluster. PowerShell version: 5.1.19041.1320 on Windows 10. No issues connecting to the cluster via FQDN or IP Address using:

 

Connect-NcController -Name <cluster> -HTTPS -Credential (Get-Credential -Credential <user>)

 

Do you get the same error connecting to the cluster from all systems?

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

TIKMS
1,424 Views

I get the same Error with NetApp.ONTAP 9.10.1.2111.
However, this only happens with NcControllers that return both an IPv4 and an IPv6 address during an nslookup. Maybe Connect-NcController of this Version cannot handle domain name lookups that return more than one ip-address.

saharsh
940 Views

Hi,

 

Form 9.10.1.2111 the powershell toolkit uses REST API. Please let me know in which commands you are facing failures, also you can drop us mail on ng-ontap-pstk-queries for any query related to NetApp.Ontap.PowerShell.Toolkit

 

Sanaman
914 Views

It's ok. Upgraded my PSTK to 9.13.1.2306 and all good now

Public