master.asciidoc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. For example:
  5. [source,js]
  6. --------------------------------------------------
  7. GET /_cat/master?v
  8. --------------------------------------------------
  9. // CONSOLE
  10. might respond:
  11. [source,txt]
  12. --------------------------------------------------
  13. id host ip node
  14. YzWoH_2BT-6UjVGDyPdqYg 127.0.0.1 127.0.0.1 YzWoH_2
  15. --------------------------------------------------
  16. // TESTRESPONSE[s/YzWoH_2.+/.+/ _cat]
  17. This information is also available via the `nodes` command, but this
  18. is slightly shorter when all you want to do, for example, is verify
  19. all nodes agree on the master:
  20. [source,sh]
  21. --------------------------------------------------
  22. % pssh -i -h list.of.cluster.hosts curl -s localhost:9200/_cat/master
  23. [1] 19:16:37 [SUCCESS] es3.vm
  24. Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 H5dfFeA
  25. [2] 19:16:37 [SUCCESS] es2.vm
  26. Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 H5dfFeA
  27. [3] 19:16:37 [SUCCESS] es1.vm
  28. Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 H5dfFeA
  29. --------------------------------------------------
  30. // NOTCONSOLE