ConfD User Community

Display progress or "please wait" for long "show ..." queries

I want to show to the CLI user message “please wait the query may take a long time” or progress (updated from the data provider).
Is there a way to do that?

I need such a thing because some of the “show …” commands are using a very slow hardware interface on the data plane (not all the queries at all) and I want to notify the user to prepare him for a long waiting time.

If you know a better approach I would appreciate your advice.

Thank you.

Try using maapi_prio_message().
See the confd_lib_maapi(3) man page for details.
Used in the examples.confd/in_service_upgrade/simple/upgrade.c example to notify all users of an imminent upgrade, but can also be directed to a specific user session (see man page).

1 Like