How to get confd_cli tty via Confd API?

Hi Team
We have implemented a customized confd CLI command using clispec. In the clispec we run a script to start a binary, which will collect system statistics data. It’s expected that this binary could have the collected statistics data printed to confd CLI. I wonder how the process could show the statistics data to confd cli asynchronized ? Can the process get the confd CLI tty?or pty?
Thanks
John

Hi,

You can for example use maapi cli_printf() and/or cli_cmd() to run or print something in CLI sessions asynchronously