From 0c997db69f2c40b4f2b10c7bbcccb28b0049b548 Mon Sep 17 00:00:00 2001 From: Zac Dover Date: Fri, 9 May 2025 15:12:49 +1000 Subject: [PATCH] doc/mgr: edit cli_api.rst 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 (cherry picked from commit 2ae483840ae1629677446150f649ca484b613dbe) --- doc/mgr/cli_api.rst | 48 ++++++++++++++++++++++++++++++--------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/doc/mgr/cli_api.rst b/doc/mgr/cli_api.rst index 81a99ae44ac18..5ac23632bb5af 100644 --- a/doc/mgr/cli_api.rst +++ b/doc/mgr/cli_api.rst @@ -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 + +Print the list of servers by running the following command: + +.. prompt:: bash # + + ceph mgr cli list_servers - ceph mgr cli +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 - ceph mgr cli_benchmark +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 -- 2.39.5