X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=doc%2Fguides%2Fhowto%2Ftelemetry.rst;fp=doc%2Fguides%2Fhowto%2Ftelemetry.rst;h=e7b5434152de6c788470b94ea70ff58cfec4452a;hb=98ffdfbcf1ea8f4705fa3dacd6d9ae94d3705733;hp=b4a34ed674684afabb0e243174f80984602b7675;hpb=544f35c334e5c0b99b4d2f93ca6d38fb7e1299d6;p=dpdk.git diff --git a/doc/guides/howto/telemetry.rst b/doc/guides/howto/telemetry.rst index b4a34ed674..e7b5434152 100644 --- a/doc/guides/howto/telemetry.rst +++ b/doc/guides/howto/telemetry.rst @@ -29,17 +29,13 @@ Telemetry Initialization The library is enabled by default, however an EAL flag to enable the library exists, to provide backward compatibility for the previous telemetry library -interface. +interface:: -.. code-block:: console + --telemetry - --telemetry +A flag exists to disable Telemetry also:: -A flag exists to disable Telemetry also. - -.. code-block:: console - - --no-telemetry + --no-telemetry Running Telemetry @@ -48,33 +44,50 @@ Running Telemetry The following steps show how to run an application with telemetry support, and query information using the telemetry client python script. -#. Launch testpmd as the primary application with telemetry. - - .. code-block:: console +#. Launch testpmd as the primary application with telemetry:: ./app/dpdk-testpmd -#. Launch the telemetry client script. - - .. code-block:: console +#. Launch the telemetry client script:: python usertools/dpdk-telemetry.py -#. When connected, the script displays the following, waiting for user input. +#. When connected, the script displays the following, waiting for user input:: - .. code-block:: console - - Connecting to /var/run/dpdk/rte/dpdk_telemetry.v2 - {"version": "DPDK 20.05.0-rc0", "pid": 60285, "max_output_len": 16384} - --> + Connecting to /var/run/dpdk/rte/dpdk_telemetry.v2 + {"version": "DPDK 20.05.0-rc2", "pid": 60285, "max_output_len": 16384} + --> #. The user can now input commands to send across the socket, and receive the - response. + response. Some available commands are shown below. + + * List all commands:: + + --> / + {"/": ["/", "/eal/app_params", "/eal/params", "/ethdev/list", + "/ethdev/link_status", "/ethdev/xstats", "/help", "/info"]} + + * Get the list of ethdev ports:: + + --> /ethdev/list + {"/ethdev/list": [0, 1]} + + .. Note:: + + For commands that expect a parameter, use "," to separate the command + and parameter. See examples below. + + * Get extended statistics for an ethdev port:: + + --> /ethdev/xstats,0 + {"/ethdev/xstats": {"rx_good_packets": 0, "tx_good_packets": 0, + "rx_good_bytes": 0, "tx_good_bytes": 0, "rx_missed_errors": 0, + ... + "tx_priority7_xon_to_xoff_packets": 0}} - .. code-block:: console + * Get the help text for a command. This will indicate what parameters are + required. Pass the command as a parameter:: - --> / - {"/": ["/", "/eal/app_params", "/eal/params", "/ethdev/list", - "/ethdev/link_status", "/ethdev/xstats", "/help", "/info"]} - --> /ethdev/list - {"/ethdev/list": [0, 1]} + --> /help,/ethdev/xstats + {"/help": {"/ethdev/xstats": "Returns the extended stats for a port. + Parameters: int port_id"}}