]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/mgr: edit cli_api.rst 63690/head
authorZac Dover <zac.dover@proton.me>
Fri, 9 May 2025 05:12:49 +0000 (15:12 +1000)
committerZac Dover <zac.dover@proton.me>
Tue, 3 Jun 2025 19:42:56 +0000 (05:42 +1000)
Edit doc/mgr/cli_api.rst as part of the project to determine where the
error is in https://github.com/ceph/ceph/pull/62782 that prevents the
Jenkins tests from passing.

This is a change to one of twenty-five files in
https://github.com/ceph/ceph/pull/62782 and this commit represents one
of what will be at least twenty-five other commits made to track this
error down.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 2ae483840ae1629677446150f649ca484b613dbe)

doc/mgr/cli_api.rst

index 81a99ae44ac184180a8fb57e018a719c90ceb7ee..5ac23632bb5af9b39a463f47b4cac26e7522e303 100644 (file)
@@ -1,39 +1,55 @@
 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.
+The CLI API module exposes most of the ceph-mgr Python API via CLI.  This API
+can be benchmarked for further testing.
 
 Enabling
 --------
 
-The *cli api commands* module is enabled with::
+Enable the ``cli api commands`` module by running the following command:
 
-  ceph mgr module enable cli_api
+.. prompt:: bash #
 
-To check that it is enabled, run::
+   ceph mgr module enable cli_api
 
-  ceph mgr module ls | grep cli_api
+Ensure that the ``cli api commands`` module is enabled by running the following
+command:
+
+.. prompt:: bash #
+
+   ceph mgr module ls | grep cli_api
 
 Usage
 --------
 
-To run a mgr module command, run::
+This the the general form of Manager module commands: 
+
+.. prompt:: bash #
+
+   ceph mgr cli <command> <param>
+
+Print the list of servers by running the following command:
+
+.. prompt:: bash #
+
+   ceph mgr cli list_servers
 
-  ceph mgr cli <command> <param>
+List all available mgr module commands by running the following command:
 
-For example, use the following command to print the list of servers::
+.. prompt:: bash #
 
-  ceph mgr cli list_servers
+   ceph mgr cli --help
 
-List all available mgr module commands with::
+Benchmark a command, by running a command of the following form:
 
-  ceph mgr cli --help
+.. prompt:: bash #
 
-To benchmark a command, run::
+   ceph mgr cli_benchmark <number of calls> <number of threads> <command> <param>
 
-  ceph mgr cli_benchmark <number of calls> <number of threads> <command> <param>
+For example, run the following command to benchmark the command to get
+``osd_map``:
 
-For example, use the following command to benchmark the command to get osd_map::
+.. prompt:: bash #
 
-  ceph mgr cli_benchmark 100 10 get osd_map
+   ceph mgr cli_benchmark 100 10 get osd_map