{"repo":"AlexFengCisco/Telemetry_Receiver","free":true,"listed":false,"github":"https://github.com/AlexFengCisco/Telemetry_Receiver","clone":"git clone https://github.com/AlexFengCisco/Telemetry_Receiver.git","description":"Telemetry","language":"Python","stars":23,"topics":["gpb","ios-xr","gpb-kv","json","python","telemetry","grpc","telemetry-receiver","san","analytics"],"license":null,"category":"analytics","readme_excerpt":"Telemetry Receiver Python Telemetry Receiver for collection Cisco NX-OS IOS-XR UDP/TCP/gRPC A Python sample code demo how to collect Telemetry mesasge via UDP/gRPC and how to Parse message. Make it easy and fun to build your own telemetry recevier and agile handle telemetry message. Test bed : N9K and XRv9K N9K x.x.x.x version : nx-os 9.2.2 JSON / GPB-kv (Self-Description) xrv9k x.x.x.x version : xrv9k 6.4.1 JSON / GPB compact / GPB-kv (Self-Description) Telemetry Receiver UDP : port 57500 gRPC dial in : port 57400 gRPC dial out : port 50051 gRPC receiver working in dialin/dialout mode , passed testing with Cisco IOS XR Version 6.4.1 NOTE: max UDP protobuf length = 65535 ,header=28 ,real content = 65507 bytes Inside internal MDT header, IOS-XR has 12 bytes header, NX-OS has 6 bytes IOS-XR inside interanl header: +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ MSG TYPE ENCODING TYPE +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ MSG VERSION FLAGS +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ MSG LENGTH +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ .. PAYLOAD (MSG LENGTH bytes) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ MSG TYPE (2 bytes) = 1 (for MDT) ENCODING TYPE (2 bytes) = 1 (GPB), 2 (JSON) MSG VERSION (2 bytes) = 1 FLAGS (2 bytes) = 0 MSG LENGTH (4 bytes) Telemetry proto file for both GPB and GPB-kv use the follwoing command to make python proto output: protoc --python out=","default_branch":null,"files":null,"tree":[],"storefront":"/r/AlexFengCisco","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AlexFengCisco/Telemetry_Receiver/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}