Appearance
config hostname
Get or set host names on the manager nodes.
config hostname get
config hostname set [ local | remote ] <hostname>
- get
For example:
YBCLI(13325) (PRIMARY - yb100-mgr0)> config hostname get Local node : yb100-mgr0.ybroad.io Remote node: yb100-mgr1.ybroad.io
- set
For example:
YBCLI(13325) (PRIMARY - yb100-mgr0)> config hostname set local yb100-mgr0.ybroad.io Changing the hostname of a manager node will cause the network stack to be reconfigured. This may cause some services to be temporarily unavailable. Are you sure you want to set the hostname of the local node to: yb100-mgr0.ybroad.io Response (yes/no): yes Setting the new hostname. Standby... Restarting HA cluster services. Standby... Done Waiting for cluster to be updated. Standby... Done Successfully set hostname to: yb100-mgr0.ybroad.io
Parent topic:config