gs_om -t status --detail
通过此命令可以查看openGauss的访问端口,IP,状态。
[omm@lab6 ~]$ gs_om -t status --detail
[ Cluster State ]
cluster_state : Normal
redistributing : No
current_az : AZ_ALL
[ Datanode State ]
nodenode_ip port instance state
------------------------------------------------------------------------------
1 lab6 10.11.13.96 15400 6001 /home/omm/data P Primary Normal
[omm@lab6 ~]$