Soft Patch Panel
 help / color / mirror / Atom feed
* [spp] [PATCH] docs: add server command
@ 2018-12-18 12:31 ogawa.yasufumi
  0 siblings, 0 replies; only message in thread
From: ogawa.yasufumi @ 2018-12-18 12:31 UTC (permalink / raw)
  To: ferruh.yigit, spp, ogawa.yasufumi

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

Add description of server command in SPP Commands section.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
 docs/guides/commands/common.rst | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/docs/guides/commands/common.rst b/docs/guides/commands/common.rst
index 079d5ef..3763025 100644
--- a/docs/guides/commands/common.rst
+++ b/docs/guides/commands/common.rst
@@ -81,6 +81,32 @@ Execute command of index of history.
     spp > redo 5  # exec 5th command in the history
 
 
+server
+------
+
+Show a list of SPP REST API servers and switch to control for multiple
+nodes.
+
+Show all of registered REST API servers. Run ``server list`` or simply
+``server``.
+
+.. code-block:: console
+
+    spp > server
+      1: 192.168.1.101:7777 *
+      2: 192.168.1.102:7777
+
+    spp > server list  # same as above
+      1: 192.168.1.101:7777 *
+      2: 192.168.1.102:7777
+
+Switch to other server with index number displayed in ``server list``.
+
+.. code-block:: console
+
+    spp > server 2
+    Switch spp-ctl to "2: 192.168.1.102:7777".
+
 pwd
 ---
 
-- 
2.7.4

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-18 12:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-18 12:31 [spp] [PATCH] docs: add server command ogawa.yasufumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).