Microsoft Virtualization Discussions

Incorrect credentials

raffs
3,019 Views

I have PS toolkit 4.2.0.0

When i use the tollkit to connect to a ontap cdot 9.1p3 using a local user ,  i connect successfuly , and i am able to run commands without any "iincorrect credentials" errors being displayed.

 

When i perform the same process as a domain user "a------\n000111" - i get occassional "incorrect credentials" for exactly the same commands,

 

 

GLOBAL:Valid_ClusterMgmtIP = @("10.99.99.99")
$netapp_filer_name=[System.Net.Dns]::GetHostByAddress($Valid_ClusterMgmtIP).HostName


"netapp_filer_name = $netapp_filer_name"

try
{
  "running command : Connect-NcController -name $netapp_filer_name  -credential $credentials"
  $script:connect_to_primary_netapp_filer=Connect-NcController -name $netapp_filer_name -credential ACCOUNT-01\n103999 -ErrorAction Stop
  "Connection to $connect_to_primary_netapp_filer : successful"

}
catch
{
   "`tThe Login to the Netapp Filer : $netapp_filer using its FQDN name didnt work"
   break
}


(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;
(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;
(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;
(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;
(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;

 

PS C:\Users\d------> C:\PSSCRIPTS\01-testing-login-into-002.ps1
netapp_filer_name = clus0012.dc.corp.gingo.com
running command : Connect-NcController -name clus0012.dc.corp.gingo.com  -credential System.Management.Automation.PSCredential
Connection to clus0012.dc.corp.gingo.com : successful
784
784
784
784
784
784
784
784
784
784
get-ncvol : Incorrect credentials for clus0012.dc.corp.gingo.com.
At C:\PSSCRIPTS\01-testing-login-into-002.ps1.ps1:28 char:142
+ ... object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Co ...
+                    ~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (clus0012.dc.corp.gingo.com:NcController) [Get-NcVol], NaAuthException
    + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Volume.GetNcVol
 
700
784
784
784
784
784
784
784
784
784
784
784
784
get-ncvol : Incorrect credentials for clus0012.dc.corp.gingo.com.
At C:\Users\d------> C:\PSSCRIPTS\01-testing-login-into-002.ps1.ps1:30 char:177
+ ... object).Count;(get-ncvol | Measure-object).Count;
+                    ~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (clus0012.dc.corp.gingo.com:NcController) [Get-NcVol], NaAuthException
    + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Volume.GetNcVol
 
100
784
784
784
784
784
784

PS C:\Users\d------>

 

 

GLOBAL:Valid_ClusterMgmtIP = @("10.99.99.99")
$netapp_filer_name=[System.Net.Dns]::GetHostByAddress($Valid_ClusterMgmtIP).HostName


"netapp_filer_name = $netapp_filer_name"

try
{
  "running command : Connect-NcController -name $netapp_filer_name  -credential $credentials"
  $script:connect_to_primary_netapp_filer=Connect-NcController -name $netapp_filer_name -credential testcred -ErrorAction Stop
  "Connection to $connect_to_primary_netapp_filer : successful"

}
catch
{
   "`tThe Login to the Netapp Filer : $netapp_filer using its FQDN name didnt work"
   break
}


(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;
(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;
(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;
(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;
(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;(get-ncvol | Measure-object).Count;

 

when this script is executed.... there is no "incorrect credentials" error displayed.

 

 

 

PS C:\Users\d-----> C:\PSSCRIPTS\02-testing-login-into-999.ps1
netapp_filer_name = clus0012.dc.corp.gingo.com
running command : Connect-NcController -name clus0012.dc.corp.gingo.com  -credential System.Management.Automation.PSCredential
Connection to clus0012.dc.corp.gingo.com : successful
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784
784

PS C:\Users\d------>

 

 

  

The error / warning result is that  the count of volumes isn't as expected.

 

Anyone in the netapp community seen this issue before ?

 

 

1 REPLY 1

KSV
2,214 Views

I am getting a similar error message. I am not using different accounts to log in. Once I connect to Netapp, I am trying to upgrade the controller using the Get-NCclusterImageUpdate command and it fails using the incorrect credential.

Public