]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/mgr: Add cli api documentation 44088/head
authorWaad AlKhoury <waadalkhoury@localhost.localdomain>
Fri, 29 Oct 2021 14:38:11 +0000 (16:38 +0200)
committerPere Diaz Bou <pdiazbou@redhat.com>
Wed, 5 Jan 2022 09:11:58 +0000 (10:11 +0100)
Signed-off-by: Waad AlKhoury <walkhour@redhat.com>
doc/mgr/cli_api.rst [new file with mode: 0644]
doc/mgr/index.rst

diff --git a/doc/mgr/cli_api.rst b/doc/mgr/cli_api.rst
new file mode 100644 (file)
index 0000000..81a99ae
--- /dev/null
@@ -0,0 +1,39 @@
+CLI API Commands Module
+=======================
+
+The CLI API module exposes most ceph-mgr python API via CLI. Furthermore, this API can be
+benchmarked for further testing.
+
+Enabling
+--------
+
+The *cli api commands* module is enabled with::
+
+  ceph mgr module enable cli_api
+
+To check that it is enabled, run::
+
+  ceph mgr module ls | grep cli_api
+
+Usage
+--------
+
+To run a mgr module command, run::
+
+  ceph mgr cli <command> <param>
+
+For example, use the following command to print the list of servers::
+
+  ceph mgr cli list_servers
+
+List all available mgr module commands with::
+
+  ceph mgr cli --help
+
+To benchmark a command, run::
+
+  ceph mgr cli_benchmark <number of calls> <number of threads> <command> <param>
+
+For example, use the following command to benchmark the command to get osd_map::
+
+  ceph mgr cli_benchmark 100 10 get osd_map
index 5e7fcb77f93205fdaebe387b009d1e0818a7275f..4d20d509801a4873b6885761b29dd5be728546ae 100644 (file)
@@ -49,3 +49,4 @@ sensible.
     MDS Autoscaler module <mds_autoscaler>
     NFS module <nfs>
     Progress Module <progress>
+    CLI API Commands module <cli_api>