0

NSX Central CLI

Prior to Central CLI if an administrator wanted to gain details on constructs such as the NSX Edge Gateways (as well as the services running on them), Distributed Logical Routers, and Logical Switches, they would require console access to one or more of the following:

• NSX Manager
• NSX Controllers
• NSX Edge Gateways

You will be pleased to know that’s no longer the case as you can now do all your monitoring and troubleshooting from one central point via Central CLI. However there is one thing to keep in mind. The commands executed via Central CLI are Read-only commands.

The new NSX Central CLI leverages existing communication channels (such as netcpa, vswfd, etc.) to retrieve operational data such as VTEP/MAC/ARP tables from the NSX Controllers, dynamic routing peer status, routing tables, distributed firewall vNIC rules and stats, edge status, and so on. Let’s login to our NSX manager and have a look a few examples.

List all the commands available

To List all your clusters

• Cluster Name – The name of the vSphere cluster.
• Cluster ID – Unique identifier for vSphere cluster.
• Datacenter Name – Referring to the vSphere Datacenter for which the cluster
resides in.
• Firewall Status – Whether or not the Distributed Firewall can be utilized on Virtual
Machines in this cluster.

List hosts in a clusters

• Host Name – The fully qualified domain name (FQDN) of the ESXi host in the
vSphere Cluster.
• Host ID – Unique identifier for the ESXi host.
• Installation Status – Whether or not the necessary network virtualization
components (ESXi VIBs for VXLAN, Distributed Firewall, and Logical Routers)

Review the health of a specific host

I have changed the ip address of my gw hence the output showing an error. I will need to change it on my hosts at some point!

List VMs on a host

• VM Name – The name of the Virtual Machine as it’s seen in the vSphere Client.
• VM ID – Unique identifier for the VM.
• Power Status – Whether or not the Virtual Machine is currently powered on.

List specific VM details

• Vnic Name – The name of the vNIC as seen on the VM.
• Vnic ID – Unique identifier for this specific vNIC object.
• Filters – This refers to the Distributed Firewall (DFW) Filter ID applied to the VM.

Specific vNIC Details

• MAC Address – The MAC address of the vNIC on the VM.
• Port Group ID – Unique identifier for the distributed virtual switch portgroup.
• Filters – the unique identifier for the DFW filter.
• VXLAN – Information related to the VXLAN configuration such as ID, Multicast IP,
VTEPs etc.

List all Logical Switches

• Name – The name of the logical switch.
• UUID – A unique identifier for the logical switch.
• VNI – The VXLAN Network Identifier that the logical switch sits on.
• Trans Zone Name – The name of the transport zone that the Logical Switch
resides in.
• Trans Zone ID – The unique identifier of the transport zone that the Logical Switch
resides in.

List Logical Switch Details On a Host Verbose

• Control Plane Sync Status and UDP Port Used for the Control Plane.
• Number of Logical Switches currently recognized by the host.
• Detail specific to a Logical Switch.
• VXLAN Network Identifier (VNI).
• Multicast IP (if the replication mode is set to be Multicast).
• NSX Controller which currently has the slice for the Logical Switch.
• Number of MAC and ARP Entry Counts.

Logical Switch Details On a Host – Statistics

That’s it. This is by no means a comprehensive list of the all the commands available but merely a taster of what you can do with the CLI. If you are interested in knowing more I strongler recommend the command line interface reference guide .

I hope this post was helpful. Be social share.

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

Sharing is caring!

Leave a Reply

Your email address will not be published. Required fields are marked *