Search the VMware Knowledge Base (KB)
View by Article ID

Using Curl to test port connectivity in VMware vCenter Server Appliance (2097039)

  • 14 Ratings
Language Editions

Symptoms

  • Unable to test port connectivity for connections originating from the VMware vCenter Server Appliance
  • Cannot test port connectivity for connections originating from the VMware vCenter Server Appliance
  • Testing port connectivity for connections originating from the VMware vCenter Server Appliance fails

Purpose

When troubleshooting vSphere Replication, it is often necessary to troubleshoot port connectivity as common Windows utilities are not available. Curl is available in the VMware vCenter Server Appliance command line interface. This article provides a simple example of using Curl to simulate a telnet connection with verbose output. This article also provides you a way to test Port connectivity if they are not running vCenter Server on windows and running the vCenter Server Appliance instead.

Resolution

To test port connectivity in VMware vCenter Server Appliance:
  1. Log in as root user through the VMware vCenter Server Appliance console.
  2. Run this command on the vCenter Server Appliance:
curl -v telnet://target ip address:desired port number

When the vCenter Server Appliance connects successfully or fails, you see output similar to:

# curl -v telnet://127.0.0.1:22
* About to connect() to 127.0.0.1 port 22 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 22 (#0)
SSH-2.0-OpenSSH_5.3
^C

# curl -v telnet://127.0.0.1:23
* About to connect() to 127.0.0.1 port 23 (#0)
* Trying 127.0.0.1... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host

Additional Information

You can also test port connectivity in VMware Workspace Portal 2.x using curl with the same steps above.

See Also

Update History

11/9/2016 - Added product 6.5 Prerelease.

Language Editions

ja,2148144;zh_cn,2148224

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 14 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 14 Ratings
Actions
KB: