Background:
I want to connect to the controller using my current credentials, no prompts and no hard-code creds in my scripts. I believe this requires RPC connection, not HTTP(S).
Configuration:
Server and controller are on the same VLAN. No firewalls or routers separate them.
Tracing route to xxx-psan-02 [10.111.11.40]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms xxx-psan-02 [10.111.11.40]
Trace complete.
Result:
With a hard-coded credential and an HTTPS connection, Get-NaController is fine.
With the same hard-coded credential and an RPC connection, I get this result:
PS C:\temp> Connect-NaController -name xxx-psan-02 -RPC -Credential $cred
Connect-NaController : RPC Error: The RPC server is unavailable. Code 0x6BA.
At line:1 char:21
+ Connect-NaController <<<< -name wat-psan-02 -RPC -Credential $cred
+ CategoryInfo : InvalidResult: (wat-psan-02:NaController) [Connect-NaController], EAPITRANSMISSION
+ FullyQualifiedErrorId : RpcConnectionFailed,DataONTAP.PowerShell.SDK.ConnectNaController