2013-11-14 20:14:39 -05:00
|
|
|
[[cat-master]]
|
2014-05-16 15:43:35 -04:00
|
|
|
== cat master
|
2013-11-14 20:14:39 -05:00
|
|
|
|
|
|
|
`master` doesn't have any extra options. It simply displays the
|
2016-10-13 16:42:21 -04:00
|
|
|
master's node ID, bound IP address, and node name. For example:
|
2013-11-14 20:14:39 -05:00
|
|
|
|
2016-10-13 16:42:21 -04:00
|
|
|
[source,js]
|
2013-11-14 20:14:39 -05:00
|
|
|
--------------------------------------------------
|
2016-10-13 16:42:21 -04:00
|
|
|
GET /_cat/master?v
|
|
|
|
--------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
|
|
|
|
might respond:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
id host ip node
|
|
|
|
YzWoH_2BT-6UjVGDyPdqYg 127.0.0.1 127.0.0.1 YzWoH_2
|
2013-11-14 20:14:39 -05:00
|
|
|
--------------------------------------------------
|
2016-10-13 16:42:21 -04:00
|
|
|
// TESTRESPONSE[s/YzWoH_2.+/.+/ _cat]
|
2013-11-14 20:14:39 -05:00
|
|
|
|
|
|
|
This information is also available via the `nodes` command, but this
|
|
|
|
is slightly shorter when all you want to do, for example, is verify
|
|
|
|
all nodes agree on the master:
|
|
|
|
|
2015-07-14 12:14:09 -04:00
|
|
|
[source,sh]
|
2013-11-14 20:14:39 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
% pssh -i -h list.of.cluster.hosts curl -s localhost:9200/_cat/master
|
|
|
|
[1] 19:16:37 [SUCCESS] es3.vm
|
2016-09-16 08:32:03 -04:00
|
|
|
Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 H5dfFeA
|
2013-11-14 20:14:39 -05:00
|
|
|
[2] 19:16:37 [SUCCESS] es2.vm
|
2016-09-16 08:32:03 -04:00
|
|
|
Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 H5dfFeA
|
2013-11-14 20:14:39 -05:00
|
|
|
[3] 19:16:37 [SUCCESS] es1.vm
|
2016-09-16 08:32:03 -04:00
|
|
|
Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 H5dfFeA
|
2013-11-14 20:14:39 -05:00
|
|
|
--------------------------------------------------
|
2016-10-13 16:42:21 -04:00
|
|
|
// NOTCONSOLE
|