openconfig / gnmic

gNMIc is a gNMI CLI client and collector
https://gnmic.openconfig.net
Apache License 2.0
170 stars 55 forks source link

Poll updates are not written to output provided in the config #483

Open rao-aneesh opened 2 months ago

rao-aneesh commented 2 months ago

As the title says, poll updates aren't written to the output provided in the config file. Can support for this be added?

karimra commented 1 month ago

How do you see this working? Currently, Poll needs manual intervention to trigger the poll requests.

rao-aneesh commented 1 month ago

The output of every new poll can be appended to the file provided (treating it like the output of a stream subscription)

karimra commented 1 month ago

OK, so this is specific to a file output? If that's the case, maybe a simple file redirect will do the trick.

rao-aneesh commented 1 month ago

The issue with that is the poll UI will also get redirected to the file.