Multi-Server Support in DCLI
DCLI supports establishing simultaneous connections to vCenter Server, VMware Cloud on AWS, and NSX-T endpoints. Currently, one instance of each connection type at the same time is supported.
You can establish multi-server connections only in interactive mode. In non-interactive mode, you can establish only one connection by using either environment variables or DCLI (+) options.
Connecting to Multiple Servers Simultaneously
The following example shows how you can connect to VMware Cloud on AWS and NSX-T with a single command.
dcli +vmc +nsx <sddc_nsx_endpoint_url> +skip +i
Connecting to Multiple Servers Sequentially
The following example shows how you can connect to VMware Cloud on AWS, NSX-T, and vCenter Server with separate commands. The example also includes running commands against the NSX-T and vCenter Server environments after establishing the connections.
dcli +vmc +i dcli> +nsx <sddc_nsx_endpoint_url> dcli> +server <sddc_vcenter_server_url> dcli> nsx policy api v1 infra networks list dcli> vcenter vm list