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