From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mogw0840.ocn.ad.jp (mogw0840.ocn.ad.jp [153.149.234.41]) by dpdk.org (Postfix) with ESMTP id D91C05F17 for ; Tue, 6 Mar 2018 11:55:15 +0100 (CET) Received: from mf-smf-ucb035c2 (mf-smf-ucb035c2.ocn.ad.jp [153.153.66.231]) by mogw0840.ocn.ad.jp (Postfix) with ESMTP id 54298A00468; Tue, 6 Mar 2018 19:55:14 +0900 (JST) Received: from ntt.pod01.mv-mta-ucb029 ([153.149.230.163]) by mf-smf-ucb035c2 with ESMTP id tAFRe2YoUAqaItAFWeYJ1s; Tue, 06 Mar 2018 19:55:14 +0900 Received: from smtp.ocn.ne.jp ([153.149.227.167]) by ntt.pod01.mv-mta-ucb029 with id JavE1x0013dLKTM01avEKU; Tue, 06 Mar 2018 10:55:14 +0000 Received: from localhost.localdomain (sp1-66-103-93.msc.spmode.ne.jp [1.66.103.93]) by smtp.ocn.ne.jp (Postfix) with ESMTPA; Tue, 6 Mar 2018 19:55:13 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org Cc: Yasufumi Ogawa Date: Tue, 6 Mar 2018 19:55:03 +0900 Message-Id: <20180306105505.65486-2-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20180306105505.65486-1-ogawa.yasufumi@lab.ntt.co.jp> References: <20180306105505.65486-1-ogawa.yasufumi@lab.ntt.co.jp> Subject: [spp] [PATCH 1/3] docs: add additional common commands X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 10:55:16 -0000 From: Yasufumi Ogawa SPP is updated to support for basic Linux commands, such as pwd, cd and ls. This update is for adding the new commands to common command section. Signed-off-by: Yasufumi Ogawa --- docs/guides/commands/common.rst | 90 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 87 insertions(+), 3 deletions(-) diff --git a/docs/guides/commands/common.rst b/docs/guides/commands/common.rst index 719d663..ebd1fa1 100644 --- a/docs/guides/commands/common.rst +++ b/docs/guides/commands/common.rst @@ -43,7 +43,7 @@ It also show a list of secondary IDs spp > status Soft Patch Panel Status : primary: 1 - secondary count: 4 + secondary count: 2 Connected secondary id: 1 Connected secondary id: 2 @@ -84,6 +84,67 @@ as a config, although you can use any of extensions such as ``.txt`` or spp> playback 2nfv_uni.config +pwd +--- + +Show current path. + +.. code-block:: console + + spp> pwd + /path/to/curdir + + +cd +-- + +Change current directory. + +.. code-block:: console + + spp> cd /path/to/dir + + +ls +-- + +Show a list of directory contents. + +.. code-block:: console + + spp> ls /path/to/dir + + +mkdir +----- + +Make a directory. + +.. code-block:: console + + spp> mkdir /path/to/dir + + +cat +--- + +Show contents of a file. + +.. code-block:: console + + spp> cat /path/to/file + + +less +---- + +Show contents of a file. + +.. code-block:: console + + spp> less /path/to/file + + bye --- @@ -111,6 +172,18 @@ Second one is for all SPP processes other than controller. closing:('127.0.0.1', 53620) +exit +---- + +Same as ``bye`` command but just for terminating SPP controller and +not for other processes. + +.. code-block:: console + + spp > exit + Thank you for using Soft Patch Panel + + help ---- @@ -122,9 +195,20 @@ Show help message for SPP commands. Documented commands (type help ): ======================================== - bye help playback pri record sec status + bye cd help load_cmd mkdir pri record status topo_subgraph + cat exit less ls playback pwd sec topo spp > help status - Display Soft Patch Panel Status + Display status info of SPP processes + + spp > status + spp > help sec Send command to secondary process + + SPP secondary process is specified with secondary ID and takes + sub commands. + + spp > sec 1;status + spp > sec 1;add ring 0 + spp > sec 1;patch 0 2 -- 2.13.1