NSX CLI Guide
Associated Commands:
CLI Description | Command |
---|---|
Clear Cluster Virtual IPv4 addressClear Cluster Virtual IPv4 address. |
clear cluster vip
|
Clears both cluster Virtual IPv4 & IPv6 addressesClears both cluster Virtual IPv4 & IPv6 addresses. |
clear cluster vip all
|
Clear Cluster Virtual IPv6 addressClear Cluster Virtual IPv6 address. |
clear cluster vip ipv6
|
Remove all other management nodes from the clusterRemove all other management nodes from the cluster. This will effectively convert a multi-node management cluster into a single node setup. The system will prompt for confirmation for this operation. It is recommended to use GSS guidance before using this command. |
deactivate cluster
|
Delete NSX configDelete NSX config on this node without removing it as transport node from management plane. |
del nsx
|
Delete NSX from hostDestroy NSX environment on this host without removing its transport node from management plane. If there are no resources used by the NSX host switches, this command will delete the host switches and all NSX packages. If there are any resources on the host switches, the resources will first be migrated out of the NSX host switches and then the host switches and all NSX packages will be deleted. |
del nsx
|
Delete NSX config, management IP, logs and filestoreDelete NSX config on this node without removing it as transport node from management plane. Additionally clear logs, filestore and management IP from the node. |
del nsx all
|
Delete NSX from hostDestroy NSX environment on this host without removing its transport node from management plane. If there are no resources used by the NSX host switches, this command will delete the host switches and all NSX packages. If there are any resources on the host switches, the resources will first be migrated out of the NSX host switches and then the host switches and all NSX packages will be deleted. Skips the pre-checks. |
del nsx force
|
Deregister Edge from management planeDetach this Edge from the management plane. |
detach management-plane <hostname-or-ip-address[:port]> username <username> thumbprint <thumbprint> [password <password>]
|
Detach host from management planeDetach this hypervisor host from the management plane. You can specify any NSX Manager in the management cluster in this command. Use the API username and password for the specified NSX Manager. If you do not provide a password on the command line, you will be prompted to enter one. Get the NSX Manager thumbprint by running the |
detach management-plane <hostname-or-ip-address[:port]> username <username> thumbprint <thumbprint> [password <password>]
|
Detach specified node from the clusterDetach the specified node from the cluster. |
detach node <node-id-arg>
|
Detach specified node from the cluster without checking repository-ip modification errorsDetach specified node from the cluster without checking repository-ip modification errors. |
detach node <node-id-arg> ignore-repository-ip-check
|
Display API server certificateDisplay the API server's certificate. |
get certificate api
|
Display API server certificate textDisplay the API server's certificate text. |
get certificate api text
|
Display API server certificate thumbprintDisplay the API server's certificate thumbprint. |
get certificate api thumbprint
|
Display cluster certificateDisplay the clsuter certificate. |
get certificate cluster
|
Display cluster certificate textDisplay the cluster certificate text. |
get certificate cluster text
|
Display cluster certificate thumbprintDisplay the cluster certificate thumbprint. |
get certificate cluster thumbprint
|
Get Cluster ConfigGet Cluster Config. |
get cluster config
|
Get Cluster StatusGet status of all the groups. |
get cluster status
|
Get Cluster StatusGet status of all the groups. Show leadership if there is any. |
get cluster status verbose
|
Get Cluster Virtual IPGet Cluster Virtual IP. |
get cluster vip
|
Join this node to a NSX ClusterJoin this node to a management cluster. You must provide the API username and password of a node that is already in the cluster. On that node, you can run the get cluster config command to get the cluster ID, and run the get certificate api thumbprint command to get the thumbprint. If you do not provide a password on the command line, you will be prompted to enter one. |
join <ip-address[:port]> cluster-id <cluster-id> thumbprint <thumbprint> [token <api-token>] [username <username> [password <password>]] [force]
|
Join node to the management planeJoin this node to the management plane. |
join management-plane <hostname-or-ip-address[:port]> thumbprint <thumbprint> token <token> [node-uuid <uuid>] [replace]
|
Join host with management planeJoin this hypervisor host with the management plane. You can specify any NSX Manager in the management cluster in this command. Use the API username and password for the specified NSX Manager. If you do not provide a password on the command line, you will be prompted to enter one. Get the NSX Manager thumbprint by running the
|
join management-plane <hostname-or-ip-address[:port]> username <username> thumbprint <thumbprint> [password <password>]
|
Join node to the management planeJoin this node to the management plane. |
join management-plane <hostname-or-ip-address[:port]> username <username> thumbprint <thumbprint> [password <password>] [node-uuid <uuid>] [replace]
|
Recover management plane account on the hostRecover management plane account on the host. You can specify any NSX Manager in the management cluster in this command. Use the API username and password for the specified NSX Manager. If you do not provide a password on the command line, you will be prompted to enter one. Get the NSX Manager thumbprint by running the |
reset management-plane <hostname-or-ip-address[:port]> username <username> thumbprint <thumbprint> [password <password>]
|
Set Cluster Virtual IPSet Cluster Virtual IP. |
set cluster vip <ip46-address>
|