In reply to Tomer Dichterman.

Or we could perhaps use something like:

github.com/CiscoDevNet/ncc/blob/master/ncc-simple-poller.py

And when we start making use of recent developments in IOS-XE 16.6.1, we can even leverage telemetry:

github.com/CiscoDevNet/ncc/blob/master/ncc-establish-subscription.py

Going in this direction gives us model-based access to operational data for these kinds of tasks, and the Linux environment of GuestShell makes this really easy.

Cheers,

Einar

(Note, telemetry extension for ncclient are currently in an ncclient fork until the IETF drafts achieve RFC status. Code is at github.com/CiscoDevNet/ncclient)