#NetApp.ONTAP 9.11 woes?
1 messages · Page 1 of 1 (latest)
9.10.x
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP | Remove-Module -Force
PS /workspaces/ContentDev-Toolkit> $module = Get-Module -Name NetApp.ONTAP -ListAvailable | Where-Object {
>> $_.Version -gt [Version]"9.10" -and
>> $_.Version -lt [Version]"9.11"
>> }
PS /workspaces/ContentDev-Toolkit> $module | Import-Module
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Manifest 9.10.1.21… NetApp.ONTAP {Add-NaAggr, Add-NaCifsShare, Add-NaCred…
PS /workspaces/ContentDev-Toolkit> Connect-v3Storage -mwServer $MYmwServer
Looking up the default pod SVM for dev-mw.lod.netapp.com
Connecting to Storage Virtual Machine devcd1.lod.netapp.com
PowerShell credential request
Please enter your credentials for devcd1.lod.netapp.com (domain\username)
User: lod\jgriffit
Password for user lod\jgriffit: *****************
Name Address Vserver Version
---- ------- ------- -------
devcd1.lod.netapp.c… 10.62.101.143 devcd1 NetApp Release 9.13.1P6: Tue Dec 05 16:06:25 UTC …
PS /workspaces/ContentDev-Toolkit>
9.11.x
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP | Remove-Module -Force
PS /workspaces/ContentDev-Toolkit> $module = Get-Module -Name NetApp.ONTAP -ListAvailable | Where-Object {
>> $_.Version -gt [Version]"9.11" -and
>> $_.Version -lt [Version]"9.12"
>> }
PS /workspaces/ContentDev-Toolkit> $module | Import-Module
PS /workspaces/ContentDev-Toolkit> # Should be 9.11.x
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Manifest 9.11.1.22… NetApp.ONTAP {Add-NaAggr, Add-NaCifsShare, Add-NaCred…
PS /workspaces/ContentDev-Toolkit> Connect-v3Storage -mwServer $MYmwServer
Looking up the default pod SVM for dev-mw.lod.netapp.com
Connecting to Storage Virtual Machine devcd1.lod.netapp.com
PowerShell credential request
Please enter your credentials for devcd1.lod.netapp.com (domain\username)
User: lod\jgriffit
Password for user lod\jgriffit: *****************
Connect-NcController: /workspaces/ContentDev-Toolkit/module/LoDv3/Public/connect-v3Storage.ps1:51:4
Line |
51 | Connect-NcController -Name $storageSVM -Credential $Globa …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The remote server returned an error: (401) Unauthorized.
PS /workspaces/ContentDev-Toolkit>
9.12.x
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP | Remove-Module -Force
PS /workspaces/ContentDev-Toolkit> $module = Get-Module -Name NetApp.ONTAP -ListAvailable | Where-Object {
>> $_.Version -gt [Version]"9.12" -and
>> $_.Version -lt [Version]"9.13"
>> }
PS /workspaces/ContentDev-Toolkit> $module | Import-Module
PS /workspaces/ContentDev-Toolkit> # Should be 9.12.x
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Manifest 9.12.1.23… NetApp.ONTAP {Add-NaAggr, Add-NaCifsShare, Add-NaCred…
PS /workspaces/ContentDev-Toolkit> Connect-v3Storage -mwServer $MYmwServer
Looking up the default pod SVM for dev-mw.lod.netapp.com
Connecting to Storage Virtual Machine devcd1.lod.netapp.com
PowerShell credential request
Please enter your credentials for devcd1.lod.netapp.com (domain\username)
User: lod\jgriffit
Password for user lod\jgriffit: *****************
Name Address Vserver Version
---- ------- ------- -------
devcd1.lod.netapp.c… 10.62.101.143 devcd1 NetApp Release 9.13.1P6: Tue Dec 05 16:06:25 UTC …
PS /workspaces/ContentDev-Toolkit>
9.13.x
PS /workspaces/ContentDev-Toolkit> # Should be 9.13.x
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Manifest 9.13.1.23… NetApp.ONTAP {Add-NaAggr, Add-NaCifsShare, Add-NaCred…
PS /workspaces/ContentDev-Toolkit> Connect-v3Storage -mwServer $MYmwServer
Looking up the default pod SVM for dev-mw.lod.netapp.com
Connecting to Storage Virtual Machine devcd1.lod.netapp.com
PowerShell credential request
Please enter your credentials for devcd1.lod.netapp.com (domain\username)
User: lod\jgriffit
Password for user lod\jgriffit: ******************
Connect-NcController: /workspaces/ContentDev-Toolkit/module/LoDv3/Public/connect-v3Storage.ps1:51:4
Line |
51 | Connect-NcController -Name $storageSVM -Credential $Globa …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The remote server returned an error: (401) Unauthorized.
PS /workspaces/ContentDev-Toolkit> Connect-v3Storage -mwServer $MYmwServer
Looking up the default pod SVM for dev-mw.lod.netapp.com
Connecting to Storage Virtual Machine devcd1.lod.netapp.com
PowerShell credential request
Please enter your credentials for devcd1.lod.netapp.com (domain\username)
User: lod\jgriffit
Password for user lod\jgriffit: *****************
Name Address Vserver Version
---- ------- ------- -------
devcd1.lod.netapp.c… 10.62.101.143 devcd1 NetApp Release 9.13.1P6: Tue Dec 05 16:06:25 UTC …
PS /workspaces/ContentDev-Toolkit>
9.14.x
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP | Remove-Module -Force
PS /workspaces/ContentDev-Toolkit> $module = Get-Module -Name NetApp.ONTAP -ListAvailable | Where-Object {
>> $_.Version -gt [Version]"9.14" -and
>> $_.Version -lt [Version]"9.15"
>> }
PS /workspaces/ContentDev-Toolkit> $module | Import-Module
PS /workspaces/ContentDev-Toolkit> # Should be 9.14.x
PS /workspaces/ContentDev-Toolkit> Get-Module -Name NetApp.ONTAP
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Manifest 9.14.1.24… NetApp.ONTAP {Add-NaAggr, Add-NaCifsShare, Add-NaCred…
PS /workspaces/ContentDev-Toolkit> Connect-v3Storage -mwServer $MYmwServer
Looking up the default pod SVM for dev-mw.lod.netapp.com
Connecting to Storage Virtual Machine devcd1.lod.netapp.com
PowerShell credential request
Please enter your credentials for devcd1.lod.netapp.com (domain\username)
User: lod\jgriffit
Password for user lod\jgriffit: *****************
Name Address Vserver Version
---- ------- ------- -------
devcd1.lod.netapp.c… 10.62.101.143 devcd1 NetApp Release 9.13.1P6: Tue Dec 05 16:06:25 UTC …
PS /workspaces/ContentDev-Toolkit>
NetApp.ONTAP 9.11 woes?
I am having this same issue with the (401) Unauthorized. As @limber moon recommended in another thread, I added -ONTAPI to the end of my command and then it was able to connect. I guess that means it's an issue with REST vs. ZAPI? That was using PSTK 9.11, I am not seeing the 401 error when I'm using 9.14.
Yea, while an appropriate test, I wanted to 'look forward'. Most module versions are plus or minus 1 or 2 major-release-compatible. Whatever it was seems resolved in later releases of the module. I'm using NetApp.ONTAP 9.14.x with ONTAP 9.11 and 9.13 successfully (so far LoL).