On 5/21/2026 11:39 PM, Bruce Richardson wrote:
> To simplify interactive telemetry script for general use, i.e. not from
> other scripts, we can add two new features to it:
> 
> 1. Support for FOREACH to allow gathering a set of output values across
>    a list of ports or devices, e.g. ethdevs or rawdevs.
> 2. Support having predefined aliases in a file in the user's home
>    directory to simplify the use of more complicated FOREACH commands.

+1
How about add help command to introducing above FOREACH and aliases?

> 
> Putting these together, we can create new commands such as "eth_names".
> 
>   bruce@host:$ cat ~/.dpdk_telemetry_aliases
>   eth_names=FOREACH index /ethdev/list /ethdev/info,$index .name
> 
>   bruce@host:$ echo eth_names | ./usertools/dpdk-telemetry.py | jq
>   [
>     {
>       "index": 0,
>       "name": "0000:16:00.0"
>     },
>     {
>       "index": 1,
>       "name": "0000:16:00.1"
>     }
>   ]
> 
> Bruce Richardson (2):
>   usertools/telemetry: add a FOREACH command
>   usertools/telemetry: support using aliases for long commands
> 
>  doc/guides/howto/telemetry.rst |  76 +++++++++++++
>  usertools/dpdk-telemetry.py    | 201 ++++++++++++++++++++++++++++++++-
>  2 files changed, 271 insertions(+), 6 deletions(-)
> 
> --
> 2.53.0
> 

Reply via email to