#[Bug?] How-to Remove-NcCredentials of an Off-Line cluster

3 messages · Page 1 of 1 (latest)

hushed notch
#

I have a lot of entries set using Add-NcCredentials. Normally I would have wiped them using a simple

Get-NcCredentials | Remove-NcCredentials # This would Wipe/Remove all found credentials.

But we have an issue now with a offline cluster, it seems that Remove-NcCredentials pings or check if the name in the credential is reachable? Why is this a dependency in the removal of a credential?

[code]
PS C:\SomeDirectory > Get-NcCredential -Verbose

Name Credential HostUser


ClusterX System.Management.Automation.PSCredential ACME\Admin_Account #offline
ClusterX.domain.local System.Management.Automation.PSCredential ACME\Admin_Account #offline
ClusterZ System.Management.Automation.PSCredential ACME\Admin_Account #online
ClusterZ.domain.local System.Management.Automation.PSCredential ACME\Admin_Account #online

PS C:\SomeDirectory > Get-NcCredential -Name ClusterX | Remove-NcCredential
Remove-NcCredential: No such host is known.
PS C:\SomeDirectory > ping ClusterX
Ping request could not find host ClusterX. Please check the name and try again.

PS C:\SomeDirectory > Get-NcCredential -Name ClusterZ | remove-NcCredential #online cluster
success
[/code]

Is there an option to bypass that online/alive check? I have no force option in the cmdlet. Or how do I remove an entry of an offline cluster?

Powershell version
Major Minor Patch PreReleaseLabel BuildLabel


7 4 14

Ontap PSTK
Name Version


NetApp.ONTAP 9.17.1.2509

viscid shoal
#

I've run into this in the past. I believe I fixed it by manually editing the C:\ProgramData\OnCommand\Common\StorageSystems.xml and removing the offending cluster entries.

hushed notch
#

Thanks, this will solve it, always wondered where these were hiding. Good info! Bug still stands IMHO, but I have a workaround now.