Xrdocs Io Telemetry Tutorials Telemetry Sensor Group Yang Anx
Xrdocs Io Telemetry Tutorials Telemetry Sensor Group Yang Anx
Frederic Cuiller
Architect, Cisco. Follow
Save to PDF
INTRODUCTION
C L I A S T E L E M E T R Y S TA R T I N G P O I N T, R E A L LY ?
W H AT I F I D O N ’ T H AV E A R O U T E R AVA I L A B L E ?
CONCLUSION
Introduction
I’ve been recently working on a Customer Proof of Concept where we demonstrated telemetry capabilities on
ASR 9000, NCS 5500 and Cisco 8000 platforms. When going through the demo customer raised a good point:
how do you nd the telemetry sensor-group to con gure? Is it intuition, a sixth sense?
This post will describe how to retrieve the YANG path for a given command and con gure the corresponding
sensor-group on an IOS-XR router.
Let’s start with an actual example. We are interested in collecting information about L2VPN bridge-domain, and
more speci cally the number of unknown unicast packets received on an attachment circuit.
The rst thing we do is to check the router CLI and nd this information:
We can assume information is possibly present in some L2VPN YANG models. Let’s con rm it.
Advanced NETCONF Explorer (ANX) is a tool written by Steven Barth at Cisco which has been open-sourced.
ANX is great companion when it comes to explore telemetry and is very handy for this job.
After installing ANX and con guring netconf on your IOS-XR device, you can point ANX to the router:
Number of available YANG models grows release after release. This can be veri ed on the GitHub repository.
Make sure you use a recent IOS-XR version to bene t the latest ones and make the most of telemetry.
Once ANX has collected the models, they can be explored. If we take our L2VPN example, our instinct tells us to
search into some L2PVN operational models, but there are a lot available:
Search feature can be leveraged to perform additional ltering, but still too much information:
Good news is heavy lifting work can be o oaded to ANX with CLI to YANG feature. Enter a command, ANX will
connect to the router and will try to discover the YANG schema:
telemetry model-driven
sensor-group L2VPN-AC-COUNTERS
sensor-path Cisco-IOS-XR-l2vpn-oper:l2vpnv2/active/bridge-domains/bridge-domain/bridge-acs/bridge-ac/attachme
Router will start streaming counters after destination-group and subscription-group are con gured like described
in a previous post. Last, data can be explored and visualized with Grafana:
Et voilà.
ANX requires a connection to a device. If you don’t have hardware accessible, there are a couple of options
available:
Download and spin-up an IOS-XRv 9000 virtual machine on your infrastructure, pickup any version you want
Conclusion
This post covered how to retrieve and con gure IOS-XR telemetry sensor-group using ANX. This simple
example, starting with a show command, can be replicated for other counters you’d like to stream.
SHARE ON
Leave a Comment
What do you think?
8 Responses
0 Comments
1 Login
Name
This site is maintained by Cisco Systems, Inc. employees. Powered by Jekyll & Minimal Mistakes.