From bfb0fa35d210769ba6c4573922cde11e1c0aedb8 Mon Sep 17 00:00:00 2001 From: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> Date: Mon, 19 Jul 2021 14:37:34 +0800 Subject: [PATCH] Update SHOW HOSTS results --- .../6.show/6.show-hosts.md | 44 ++++++++++++------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/6.show-hosts.md b/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/6.show-hosts.md index 6069fed2d69..52978353a4f 100644 --- a/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/6.show-hosts.md +++ b/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/6.show-hosts.md @@ -30,23 +30,35 @@ nebula> SHOW HOSTS; Got 3 rows (time spent 866/1411 us) nebula> SHOW HOSTS GRAPH; -+---------------+------+----------+---------+--------------+---------+ -| Host | Port | Status | Role | Git Info Sha | Version | -+---------------+------+----------+---------+--------------+---------+ -| "192.168.x.x" | 9669 | "ONLINE" | "GRAPH" | "3c65733" | | -+---------------+------+----------+---------+--------------+---------+ ++-----------+------+----------+---------+--------------+---------------------------------------------+ +| Host | Port | Status | Role | Git Info Sha | Version | ++-----------+------+----------+---------+--------------+---------------------------------------------+ +| "graphd" | 9669 | "ONLINE" | "GRAPH" | "5368115" | "5368115, Build Time: Jul 19 2021 02:31:12" | ++-----------+------+----------+---------+--------------+---------------------------------------------+ +| "graphd1" | 9669 | "ONLINE" | "GRAPH" | "5368115" | "5368115, Build Time: Jul 19 2021 02:31:12" | ++-----------+------+----------+---------+--------------+---------------------------------------------+ +| "graphd2" | 9669 | "ONLINE" | "GRAPH" | "5368115" | "5368115, Build Time: Jul 19 2021 02:31:12" | ++-----------+------+----------+---------+--------------+---------------------------------------------+ nebula> SHOW HOSTS STORAGE; -+---------------+------+----------+-----------+--------------+---------+ -| Host | Port | Status | Role | Git Info Sha | Version | -+---------------+------+----------+-----------+--------------+---------+ -| "192.168.x.x" | 9779 | "ONLINE" | "STORAGE" | "68487497" | | -+---------------+------+----------+-----------+--------------+---------+ ++-------------+------+----------+-----------+--------------+---------------------------------------------+ +| Host | Port | Status | Role | Git Info Sha | Version | ++-------------+------+----------+-----------+--------------+---------------------------------------------+ +| "storaged0" | 9779 | "ONLINE" | "STORAGE" | "0dfa699" | "0dfa699, Build Time: Jul 19 2021 02:22:45" | ++-------------+------+----------+-----------+--------------+---------------------------------------------+ +| "storaged1" | 9779 | "ONLINE" | "STORAGE" | "0dfa699" | "0dfa699, Build Time: Jul 19 2021 02:22:45" | ++-------------+------+----------+-----------+--------------+---------------------------------------------+ +| "storaged2" | 9779 | "ONLINE" | "STORAGE" | "0dfa699" | "0dfa699, Build Time: Jul 19 2021 02:22:45" | ++-------------+------+----------+-----------+--------------+---------------------------------------------+ nebula> SHOW HOSTS META; -+---------------+------+----------+--------+--------------+---------+ -| Host | Port | Status | Role | Git Info Sha | Version | -+---------------+------+----------+--------+--------------+---------+ -| "192.168.x.x" | 9559 | "ONLINE" | "META" | "68487497" | | -+---------------+------+----------+--------+--------------+---------+ -``` \ No newline at end of file ++----------+------+----------+--------+--------------+---------------------------------------------+ +| Host | Port | Status | Role | Git Info Sha | Version | ++----------+------+----------+--------+--------------+---------------------------------------------+ +| "metad2" | 9559 | "ONLINE" | "META" | "0dfa699" | "0dfa699, Build Time: Jul 19 2021 02:23:49" | ++----------+------+----------+--------+--------------+---------------------------------------------+ +| "metad0" | 9559 | "ONLINE" | "META" | "0dfa699" | "0dfa699, Build Time: Jul 19 2021 02:23:49" | ++----------+------+----------+--------+--------------+---------------------------------------------+ +| "metad1" | 9559 | "ONLINE" | "META" | "0dfa699" | "0dfa699, Build Time: Jul 19 2021 02:23:49" | ++----------+------+----------+--------+--------------+---------------------------------------------+ +```