List Node Status From the Command Line

The yb-admin utility, located in the bin directory of YugabyteDB home, provides a command line interface for administering clusters.

Two of its many command options, list_all_masters and list_all_tablet_servers, allow us to view the current state and status of all nodes in a YugabytDB universe.

Examples:

				
					[yugabyte@ip-172-150-18-175 bin]$ ./yb-admin -init_master_addrs 172.150.18.175 list_all_masters
Master UUID                      	RPC Host/Port        	State    	Role
6487585620584914be19a6020c9c4bb3 	172.152.28.57:7100   	ALIVE    	LEADER
bc943815a7c4417fbd019aaed41be24a 	172.150.18.175:7100  	ALIVE    	FOLLOWER
ba4e8a778dd44b06a5f9b74a2ebd1ef3 	172.152.40.51:7100   	ALIVE    	FOLLOWER
				
			
				
					[yugabyte@ip-172-150-18-175 bin]$ ./yb-admin -init_master_addrs 172.150.18.175 list_all_tablet_servers
Tablet Server UUID               RPC Host/Port       Heartbeat delay Status   Reads/s  Writes/s Uptime   SST total size  SST uncomp size SST #files      Memory
84c813d1f37f4af884cd775e669431d0 172.150.18.175:9100 0.56s           ALIVE    0.00     0.00     818      76.71 GB        166.28 GB       283             184.98 MB
41b9120f5f7044cc967432e5d3903edf 172.152.28.57:9100  0.59s           ALIVE    0.00     0.00     816      340.24 GB       728.53 GB       337             1.06 GB
159d77ba6196481581b055e1040700bd 172.152.40.51:9100  0.06s           ALIVE    0.00     0.00     822      340.16 GB       728.56 GB       349             1.13 GB
				
			

Have Fun!