VMware on AWS: HCX, some useful CLI commands

Short Story: login on HCX manager via ssh and perform some troubleshooting with CLI commands.
Could be useful know some easy HCX commands to discover network issues from On-prem networks and VMC on AWS.

# ssh admin@<hcx manager>
[admin@HCX-MGR ] ccli
Welcome to HCX Central CLI
[admin@HCX-MGR ] hc
<probe health check about configuration>
[admin@HCX-MGR] list
<list of HCX fleet with ID, node name, IP address and state>

use this command to login into a fleet where 0 is an example of ID node and use ssh command to enter on fleet.

[admin@HCX-MGR] go 0
Switched to node 0.
[admin@HCX-MGR] ssh
Welcome to HCX Central CLI
[root@<name of the fleet> ] ip tun
<status of gre tunnel>
[root@<name of the fleet> ] tcpdump -c20 -i vNic_0 -n -e host <wan ip address of remote side>

to perform network tests on tunnel use those commands

[admin@HCX-MGR:WAN-IX] perftest site
++++++++++ StartTest ++++++++++
---------- Site-0 [WAN-IX, 192.0.2.33 >>> 192.0.2.34] ----------
Duration Transfer Bandwidth Retransmit
server workload started
[ 4] 0.00-30.00 sec 305 MBytes 85.4 Mbits/sec 174 sender
[ 4] 0.00-30.00 sec 299 MBytes 83.6 Mbits/sec receiver
Done
---------- Site-0 [WAN-IX, 192.0.2.33 <<< 192.0.2.34] ----------
Duration Transfer Bandwidth Retransmit
[ 4] 0.00-30.00 sec 484 MBytes 135 Mbits/sec 3263 sender
[ 4] 0.00-30.00 sec 478 MBytes 134 Mbits/sec receiver
Done
++++++++++ StopTest ++++++++++
[admin@HCX-MGR:WAN-IX] perftest ipsec
++++++++++ StartTest ++++++++++
---------- Ipsec-0 [t_0, 192.0.2.37 >>> 192.0.2.45] ----------
Duration Transfer Bandwidth Retransmit
server workload started
[ 4] 0.00-30.00 sec 361 MBytes 101 Mbits/sec 107 sender
[ 4] 0.00-30.00 sec 357 MBytes 99.8 Mbits/sec receiver
Done
---------- Ipsec-0 [t_0, 192.0.2.37 <<< 192.0.2.45] ---------- 
Duration Transfer Bandwidth Retransmit 
[ 4] 0.00-30.00 sec 450 MBytes 126 Mbits/sec 1651 sender 
[ 4] 0.00-30.00 sec 443 MBytes 124 Mbits/sec receiver 
Done 
---------- Ipsec-1 [t_1, 192.0.2.38 >>> 192.0.2.46] ----------
Duration Transfer Bandwidth Retransmit
server workload started
[ 4] 0.00-30.00 sec 390 MBytes 109 Mbits/sec 650 sender
[ 4] 0.00-30.00 sec 382 MBytes 107 Mbits/sec receiver
Done
---------- Ipsec-1 [t_1, 192.0.2.38 <<< 192.0.2.46] ---------- 
Duration Transfer Bandwidth Retransmit 
[ 4] 0.00-30.00 sec 552 MBytes 154 Mbits/sec 287 sender 
[ 4] 0.00-30.00 sec 547 MBytes 153 Mbits/sec receiver 
Done 
---------- Ipsec-2 [t_2, 192.0.2.39 >>> 192.0.2.47] ----------
Duration Transfer Bandwidth Retransmit
server workload started
[ 4] 0.00-30.00 sec 480 MBytes 134 Mbits/sec 1186 sender
[ 4] 0.00-30.00 sec 470 MBytes 131 Mbits/sec receiver
Done
---------- Ipsec-2 [t_2, 192.0.2.39 <<< 192.0.2.47] ----------
Duration Transfer Bandwidth Retransmit
[ 4] 0.00-30.00 sec 661 MBytes 185 Mbits/sec 650 sender
[ 4] 0.00-30.00 sec 654 MBytes 183 Mbits/sec receiver
Done
++++++++++ StopTest ++++++++++
[admin@HCX-MGR:WAN-IX] perftest ipsec -P 8
++++++++++ StartTest ++++++++++
---------- Ipsec-0 [t_0, 192.0.2.37 >>> 192.0.2.45] ----------
Duration Transfer Bandwidth Retransmit
server workload started
[ 4] 0.00-30.00 sec 67.4 MBytes 18.8 Mbits/sec 72 sender
[ 4] 0.00-30.00 sec 66.1 MBytes 18.5 Mbits/sec receiver
[ 6] 0.00-30.00 sec 76.7 MBytes 21.5 Mbits/sec 92 sender
[ 6] 0.00-30.00 sec 74.8 MBytes 20.9 Mbits/sec receiver
[ 8] 0.00-30.00 sec 78.2 MBytes 21.9 Mbits/sec 98 sender
[ 8] 0.00-30.00 sec 76.5 MBytes 21.4 Mbits/sec receiver
[ 10] 0.00-30.00 sec 55.9 MBytes 15.6 Mbits/sec 52 sender
[ 10] 0.00-30.00 sec 55.2 MBytes 15.4 Mbits/sec receiver
[ 12] 0.00-30.00 sec 63.8 MBytes 17.8 Mbits/sec 66 sender
[ 12] 0.00-30.00 sec 62.4 MBytes 17.4 Mbits/sec receiver
[ 14] 0.00-30.00 sec 82.7 MBytes 23.1 Mbits/sec 91 sender
[ 14] 0.00-30.00 sec 81.0 MBytes 22.7 Mbits/sec receiver
[ 16] 0.00-30.00 sec 64.0 MBytes 17.9 Mbits/sec 56 sender
[ 16] 0.00-30.00 sec 62.5 MBytes 17.5 Mbits/sec receiver
[ 18] 0.00-30.00 sec 69.4 MBytes 19.4 Mbits/sec 61 sender
[ 18] 0.00-30.00 sec 68.8 MBytes 19.2 Mbits/sec receiver
[SUM] 0.00-30.00 sec 558 MBytes 156 Mbits/sec 588 sender
[SUM] 0.00-30.00 sec 547 MBytes 153 Mbits/sec receiver
Done
---------- Ipsec-0 [t_0, 192.0.2.37 <<< 192.0.2.45] ---------- 
Duration Transfer Bandwidth Retransmit 
[ 4] 0.00-30.00 sec 161 MBytes 45.1 Mbits/sec 1117 sender 
[ 4] 0.00-30.00 sec 157 MBytes 43.9 Mbits/sec receiver 
[ 6] 0.00-30.00 sec 170 MBytes 47.4 Mbits/sec 1018 sender 
[ 6] 0.00-30.00 sec 166 MBytes 46.6 Mbits/sec receiver 
[ 8] 0.00-30.00 sec 85.9 MBytes 24.0 Mbits/sec 721 sender 
[ 8] 0.00-30.00 sec 83.4 MBytes 23.3 Mbits/sec receiver 
[ 10] 0.00-30.00 sec 101 MBytes 28.1 Mbits/sec 434 sender 
[ 10] 0.00-30.00 sec 99.4 MBytes 27.8 Mbits/sec receiver 
[ 12] 0.00-30.00 sec 85.3 MBytes 23.9 Mbits/sec 342 sender 
[ 12] 0.00-30.00 sec 84.3 MBytes 23.6 Mbits/sec receiver 
[ 14] 0.00-30.00 sec 83.1 MBytes 23.2 Mbits/sec 507 sender 
[ 14] 0.00-30.00 sec 81.9 MBytes 22.9 Mbits/sec receiver 
[ 16] 0.00-30.00 sec 98.8 MBytes 27.6 Mbits/sec 586 sender 
[ 16] 0.00-30.00 sec 97.7 MBytes 27.3 Mbits/sec receiver 
[ 18] 0.00-30.00 sec 84.7 MBytes 23.7 Mbits/sec 346 sender 
[ 18] 0.00-30.00 sec 83.3 MBytes 23.3 Mbits/sec receiver 
[SUM] 0.00-30.00 sec 869 MBytes 243 Mbits/sec 5071 sender 
[SUM] 0.00-30.00 sec 854 MBytes 239 Mbits/sec receiver 
Done 
---------- Ipsec-1 [t_1, 192.0.2.38 >>> 192.0.2.46] ----------
Duration Transfer Bandwidth Retransmit
server workload started
[ 4] 0.00-30.00 sec 63.6 MBytes 17.8 Mbits/sec 57 sender
[ 4] 0.00-30.00 sec 61.6 MBytes 17.2 Mbits/sec receiver
[ 6] 0.00-30.00 sec 48.3 MBytes 13.5 Mbits/sec 59 sender
[ 6] 0.00-30.00 sec 46.4 MBytes 13.0 Mbits/sec receiver
[ 8] 0.00-30.00 sec 48.3 MBytes 13.5 Mbits/sec 58 sender
[ 8] 0.00-30.00 sec 46.4 MBytes 13.0 Mbits/sec receiver
[ 10] 0.00-30.00 sec 48.4 MBytes 13.5 Mbits/sec 51 sender
[ 10] 0.00-30.00 sec 46.6 MBytes 13.0 Mbits/sec receiver
[ 12] 0.00-30.00 sec 41.8 MBytes 11.7 Mbits/sec 37 sender
[ 12] 0.00-30.00 sec 40.5 MBytes 11.3 Mbits/sec receiver
[ 14] 0.00-30.00 sec 43.6 MBytes 12.2 Mbits/sec 40 sender
[ 14] 0.00-30.00 sec 42.5 MBytes 11.9 Mbits/sec receiver
[ 16] 0.00-30.00 sec 36.5 MBytes 10.2 Mbits/sec 43 sender
[ 16] 0.00-30.00 sec 35.6 MBytes 9.97 Mbits/sec receiver
[ 18] 0.00-30.00 sec 51.6 MBytes 14.4 Mbits/sec 59 sender
[ 18] 0.00-30.00 sec 50.2 MBytes 14.0 Mbits/sec receiver
[SUM] 0.00-30.00 sec 382 MBytes 107 Mbits/sec 404 sender
[SUM] 0.00-30.00 sec 370 MBytes 103 Mbits/sec receiver
Done
---------- Ipsec-1 [t_1, 192.0.2.38 <<< 192.0.2.46] ----------
Duration Transfer Bandwidth Retransmit 
[ 4] 0.00-30.00 sec 85.4 MBytes 23.9 Mbits/sec 116 sender 
[ 4] 0.00-30.00 sec 84.5 MBytes 23.6 Mbits/sec receiver 
[ 6] 0.00-30.00 sec 128 MBytes 35.7 Mbits/sec 152 sender 
[ 6] 0.00-30.00 sec 127 MBytes 35.4 Mbits/sec receiver 
[ 8] 0.00-30.00 sec 74.0 MBytes 20.7 Mbits/sec 200 sender 
[ 8] 0.00-30.00 sec 73.1 MBytes 20.4 Mbits/sec receiver 
[ 10] 0.00-30.00 sec 153 MBytes 42.9 Mbits/sec 314 sender 
[ 10] 0.00-30.00 sec 153 MBytes 42.7 Mbits/sec receiver 
[ 12] 0.00-30.00 sec 128 MBytes 35.8 Mbits/sec 263 sender 
[ 12] 0.00-30.00 sec 127 MBytes 35.5 Mbits/sec receiver 
[ 14] 0.00-30.00 sec 140 MBytes 39.1 Mbits/sec 272 sender 
[ 14] 0.00-30.00 sec 139 MBytes 38.7 Mbits/sec receiver 
[ 16] 0.00-30.00 sec 107 MBytes 29.8 Mbits/sec 233 sender 
[ 16] 0.00-30.00 sec 106 MBytes 29.6 Mbits/sec receiver 
[ 18] 0.00-30.00 sec 104 MBytes 29.0 Mbits/sec 165 sender 
[ 18] 0.00-30.00 sec 103 MBytes 28.8 Mbits/sec receiver 
[SUM] 0.00-30.00 sec 919 MBytes 257 Mbits/sec 1715 sender 
[SUM] 0.00-30.00 sec 911 MBytes 255 Mbits/sec receiver 
Done 
---------- Ipsec-2 [t_2, 192.0.2.39 >>> 192.0.2.47] ----------
Duration Transfer Bandwidth Retransmit
server workload started
[ 4] 0.00-30.00 sec 102 MBytes 28.5 Mbits/sec 254 sender
[ 4] 0.00-30.00 sec 99.5 MBytes 27.8 Mbits/sec receiver
[ 6] 0.00-30.00 sec 80.2 MBytes 22.4 Mbits/sec 203 sender
[ 6] 0.00-30.00 sec 78.1 MBytes 21.8 Mbits/sec receiver
[ 8] 0.00-30.00 sec 62.7 MBytes 17.5 Mbits/sec 158 sender
[ 8] 0.00-30.00 sec 61.5 MBytes 17.2 Mbits/sec receiver
[ 10] 0.00-30.00 sec 55.5 MBytes 15.5 Mbits/sec 56 sender
[ 10] 0.00-30.00 sec 55.0 MBytes 15.4 Mbits/sec receiver
[ 12] 0.00-30.00 sec 46.6 MBytes 13.0 Mbits/sec 35 sender
[ 12] 0.00-30.00 sec 46.5 MBytes 13.0 Mbits/sec receiver
[ 14] 0.00-30.00 sec 176 MBytes 49.2 Mbits/sec 413 sender
[ 14] 0.00-30.00 sec 169 MBytes 47.4 Mbits/sec receiver
[ 16] 0.00-30.00 sec 106 MBytes 29.7 Mbits/sec 198 sender
[ 16] 0.00-30.00 sec 104 MBytes 29.0 Mbits/sec receiver
[ 18] 0.00-30.00 sec 188 MBytes 52.5 Mbits/sec 607 sender
[ 18] 0.00-30.00 sec 182 MBytes 50.8 Mbits/sec receiver
[SUM] 0.00-30.00 sec 817 MBytes 229 Mbits/sec 1924 sender
[SUM] 0.00-30.00 sec 795 MBytes 222 Mbits/sec receiver
Done
---------- Ipsec-2 [t_2, 192.0.2.39 <<< 192.0.2.47] ----------
Duration Transfer Bandwidth Retransmit
[ 4] 0.00-30.00 sec 139 MBytes 38.8 Mbits/sec 1389 sender
[ 4] 0.00-30.00 sec 135 MBytes 37.8 Mbits/sec receiver
[ 6] 0.00-30.00 sec 125 MBytes 35.0 Mbits/sec 1272 sender
[ 6] 0.00-30.00 sec 121 MBytes 33.9 Mbits/sec receiver
[ 8] 0.00-30.00 sec 76.5 MBytes 21.4 Mbits/sec 834 sender
[ 8] 0.00-30.00 sec 74.3 MBytes 20.8 Mbits/sec receiver
[ 10] 0.00-30.00 sec 71.5 MBytes 20.0 Mbits/sec 459 sender
[ 10] 0.00-30.00 sec 69.7 MBytes 19.5 Mbits/sec receiver
[ 12] 0.00-30.00 sec 113 MBytes 31.7 Mbits/sec 344 sender
[ 12] 0.00-30.00 sec 111 MBytes 31.1 Mbits/sec receiver
[ 14] 0.00-30.00 sec 91.0 MBytes 25.4 Mbits/sec 470 sender
[ 14] 0.00-30.00 sec 88.6 MBytes 24.8 Mbits/sec receiver
[ 16] 0.00-30.00 sec 60.2 MBytes 16.8 Mbits/sec 360 sender
[ 16] 0.00-30.00 sec 59.5 MBytes 16.6 Mbits/sec receiver
[ 18] 0.00-30.00 sec 59.1 MBytes 16.5 Mbits/sec 336 sender
[ 18] 0.00-30.00 sec 58.2 MBytes 16.3 Mbits/sec receiver
[SUM] 0.00-30.00 sec 735 MBytes 206 Mbits/sec 5464 sender
[SUM] 0.00-30.00 sec 718 MBytes 201 Mbits/sec receiver
Done
++++++++++ StopTest ++++++++++

You may also like...