master.asciidoc 960 B

123456789101112131415161718192021222324252627
  1. [[cat-master]]
  2. == cat master
  3. `master` doesn't have any extra options. It simply displays the
  4. master's node ID, bound IP address, and node name.
  5. [source,sh]
  6. --------------------------------------------------
  7. % curl 'localhost:9200/_cat/master?v'
  8. id ip node
  9. Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 Solarr
  10. --------------------------------------------------
  11. This information is also available via the `nodes` command, but this
  12. is slightly shorter when all you want to do, for example, is verify
  13. all nodes agree on the master:
  14. [source,sh]
  15. --------------------------------------------------
  16. % pssh -i -h list.of.cluster.hosts curl -s localhost:9200/_cat/master
  17. [1] 19:16:37 [SUCCESS] es3.vm
  18. Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 Solarr
  19. [2] 19:16:37 [SUCCESS] es2.vm
  20. Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 Solarr
  21. [3] 19:16:37 [SUCCESS] es1.vm
  22. Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 Solarr
  23. --------------------------------------------------