Archives
Sunday, May 16th, 2021
Weather:
city not found
HomeComputingUtilizing Curl to test port network in VMware vCenter Server Appliance

Utilizing Curl to test port network in VMware vCenter Server Appliance

Indications

  • Incapable to test port network for associations starting from the VMware vCenter Server Appliance
  • Can’t test port availability for associations beginning from the VMware vCenter Server Appliance
  • Testing port availability for associations beginning from the VMware vCenter Server Appliance fizzles

Reason

While investigating vSphere Replication, it is regularly important to investigate port network as basic Windows utilities are not accessible. Twist is accessible in the VMware vCenter Server Appliance order line interface. This article gives a straightforward case of utilizing Curl to reenact a telnet association with verbose yield. This article additionally gives you an approach to test Port network in the event that they are not running vCenter Server on windows and running the vCenter Server Appliance.

Goal

To test port availability in VMware vCenter Server Appliance:

  • Sign in as root client through the VMware vCenter Server Appliance support.
  • Run this order 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:

    root@vc7 [ ~ ]# curl -v telnet://127.0.0.1:22
    * Rebuilt URL to: telnet://127.0.0.1:22/
    *   Trying 127.0.0.1…
    * TCP_NODELAY set
    * Connected to 127.0.0.1 (127.0.0.1) port 22 (#0)
    SSH-2.0-OpenSSH_7.8
    ^C

    root@vc7 [ ~ ]# curl -v telnet://127.0.0.1:23
    * Rebuilt URL to: telnet://127.0.0.1:23/
    *   Trying 127.0.0.1…
    * TCP_NODELAY set
    * connect to 127.0.0.1 port 23 failed: Connection refused
    * Failed to connect to 127.0.0.1 port 23: Connection refused
    * Closing connection 0
    curl: (7) Failed to connect to 127.0.0.1 port 23: Connection refused

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Post Tags
No comments

leave a comment