Is there any CLI command to check the peer status?
Try this (gives xml output with status of all search peer)
./splunk _internal call /services/search/distributed/peers
./splunk search "| rest /services/search/distributed/peers | rename status as search_peer_status| table host replicationStatus search_peer_status startup_time "
View solution in original post
Would this not be cleaner?
./splunk list search-server
Server at URI "22.214.171.124:8089" with status as "Up"
Server at URI "126.96.36.199:8089" with status as "Up"
Server at URI "188.8.131.52:8089" with status as "Up"
Thanks Somesh 🙂