When it comes to Troubleshoot Network Problems, the ability to use the TCP / UDP port status checking tools is your key skills as an administrator. In this tutorial, we'll teach you the netcat tool for examining the status of ports in VMware ESXi.
Netcat tool in VMware CLI
Suppose we are going to examine the status of the TCP port 80 for communication with the server with the IP address 192.168.1.5. It's enough to use the netcat tool. Of course Syntax here is different from the name of the tool. To do this, we can type the command as follows:
nc -z 192.168.1.5 80
Note that the letter z means that we do not intend to send any data, and we just want to know what the port is in. As seen, Connection is established.
But what if the port we are looking for is UDP? For example, the 902 UDP port is used for heartbeats between vCenter and ESXi.
In this case, follow the example below:
As you can see, the UU-switched port was converted to UDP only by adding the -u switch.
In the end, it should be noted that if the desired port is not active and the connection is not established, then, as in the image below, no response will be received! (Check the port 910 for instructions on what happened afterwards)
Please share it on social networks if this is useful to you.