bayard-cli status
DESCRIPTION
Show system status
USAGE
bayard-cli status [OPTIONS]
FLAGS
-
-h
,--help
Prints help information. -
-v
,--version
Prints version information.
OPTIONS
-s
,--server
<IP:PORT>
Index service address. [default: 127.0.0.1:5000]
EXAMPLES
To show an index schema with options:
$ bayard status --server=0.0.0.0:5001 | jq .
You'll see the result in JSON format. The result of the above command is:
{
"leader": 1,
"nodes": [
{
"address": {
"index_address": "0.0.0.0:5001",
"raft_address": "0.0.0.0:7001"
},
"id": 1
},
{
"address": {
"index_address": "0.0.0.0:5002",
"raft_address": "0.0.0.0:7002"
},
"id": 2
},
{
"address": {
"index_address": "0.0.0.0:5003",
"raft_address": "0.0.0.0:7003"
},
"id": 3
}
],
"status": "OK"
}