Here is a list of useful commands for operating HCX in the CLI, which can be used for troubleshooting and performance testing.
Start, Exit and Help
Central CLI can be started with admin user, simply like below. Type "exit" command or twice CtrlC to quit CCLI.
/dev$ ssh admin@<hcx-mgmt-ip>
Password:
[admin@onpremhcm1 ~]$ ccli
[admin@onpremhcm1] exit
[admin@onpremhcm1 ~]$ ccli
[admin@onpremhcm1] ^C
Input Ctrl-c once more to exit
[admin@onpremhcm1] ^C Interrupted
Central CLI Commands
CLI | Description |
show node nodeId info | Show basic information of the specified node. |
show node nodeId config cgw show node nodeId config ipsec | Show CGW configuration (in JSON). Show ipsec configuration. |
show node nodeId log alert show node nodeId log event show node nodeId log syslog | Show /var/log/emessages, /var/log/system_events and journal logs of the CGW. |
show node nodeId fou config show node nodeId fou state | Show FOU transport configuration and runtime state |
show node nodeId network address show node nodeId network arp show node nodeId network route show node nodeId network socket show node nodeId network ping target_address | Show various network information on the CGW, such as IP addresses, ARP table, route table, socket lists. "ping" is used to do ICMP ping against the specified address. |
show node nodeId service all show node nodeId service cgwstate|status show node nodeId service hbrsrv show node nodeId service ipsec show node nodeId service lwdproxy show node nodeId service mobilityagent show node nodeId service sshd | Show the specified service runtime status. "cgw state|status" is used to display the internal config engine status. |
show node nodeId system cpu show node nodeId system date show node nodeId system disk show node nodeId system load show node nodeId system memory show node nodeId system process show node nodeId system runtime | Show the system resources information. |
| |
CCLI Commands | |
go node | Select the node to diagnose |
Show info | Show basic node information (build, type etc.) |
show firewall | show firewall table |
show network address show network arp show network route show network socket show network ping target_address | Show various network information on the CGW, such as IP addresses, ARP table, route table, socket lists. |
show log alert show log event show log syslog | Show /var/log/emessages, /var/log/system_events and journal logs of the CGW. |
hc hc probe hc unit all | ipsec | resource | service | fou hc alert | Start healthchecking (both probing and self testing) Start probing healthchecking (probe VC/Lookup/Gateways) Start self-healthchecking (against specified unit) Show the alerts generated in latest healthcheck. |
Commenti