Hi Splunkers,
I am struggling to verify connection status of master node in indexer through VM using linux command.
Does someone know what command can I use to view the connection status between them?
not close. it didnt state which is master or indexer.
well, I just tried this and it looks good.
/opt/splunk/bin/splunk list cluster-config -auth username:password | grep master_uri
Do you mean
splunk show cluster-status
?
it's not the result that I need
I built indexer cluster with pointing to master node in other vm.
I would like to check through using linux command in indexer VM.
Hi @HadrianusHon,
here you can find all the commands you need https://docs.splunk.com/Documentation/Splunk/8.2.6/Indexer/UsetheCLI#View_cluster_information
Ciao.
Giuseppe
Thank you for the response,
I checked them all and it is still not the command I was looking for.
Perhaps, it is existed.
I'm afraid if you want to check the intra-cluster connectivity the only available command is the "show cluster-status". But indeed it works only on the CM so either run it on CM, on run it from the indexer but call the CM fo the status by using the -uri option.
"on run it from the indexer but call the CM fo the status by using the -uri option."
May you let me know what command it is? I can try .
It's still the same "show cluster-status" command but you have to tell it where to look for CM. It implies that you must have network connectivity to the CM from the host you're running the command on of course.
splunk show cluster-status -uri https://your.cm.address:8089/
not close. it didnt state which is master or indexer.
well, I just tried this and it looks good.
/opt/splunk/bin/splunk list cluster-config -auth username:password | grep master_uri
But this doesn't tell you about the _status_ of the connectivity. It tells you about the configuration.
These are two different things.