From c46459993873b6c6c63297fcea358ec05b1125cf Mon Sep 17 00:00:00 2001 From: Salvatore Cuzzilla Date: Wed, 21 Jun 2023 08:29:02 +0200 Subject: [PATCH] adding network devices conf snippet ... --- README.md | 3 +- ...yd.md => integration-with-pmtelemetryd.md} | 0 doc/network-devices-conf-snip.md | 64 +++++++++++++++++++ 3 files changed, 66 insertions(+), 1 deletion(-) rename doc/{Integration-with-pmtelemetryd.md => integration-with-pmtelemetryd.md} (100%) create mode 100644 doc/network-devices-conf-snip.md diff --git a/README.md b/README.md index 9610c89..2fa52cd 100644 --- a/README.md +++ b/README.md @@ -89,5 +89,6 @@ $ sudo /bin/sh -c "$(curl -fsSL https://github.com/network-analytics/mdt-dialout ## References -- [Integration with PMACCT/pmtelemetryd](https://github.com/network-analytics/mdt-dialout-collector/blob/main/doc/Integration-with-pmtelemetryd.md) +- [Integration with PMACCT/pmtelemetryd](https://github.com/network-analytics/mdt-dialout-collector/blob/main/doc/integration-with-pmtelemetryd.md) +- [Network devices configuration snippets](https://github.com/network-analytics/mdt-dialout-collector/blob/main/doc/network-devices-conf-snip.md) - [Multivendor (async) gRPC dial-out collector - APNIC Blog](https://blog.apnic.net/2022/10/17/multivendor-async-grpc-dial-out-collector/) diff --git a/doc/Integration-with-pmtelemetryd.md b/doc/integration-with-pmtelemetryd.md similarity index 100% rename from doc/Integration-with-pmtelemetryd.md rename to doc/integration-with-pmtelemetryd.md diff --git a/doc/network-devices-conf-snip.md b/doc/network-devices-conf-snip.md new file mode 100644 index 0000000..44ee7e1 --- /dev/null +++ b/doc/network-devices-conf-snip.md @@ -0,0 +1,64 @@ +## Table of Content + + + * [Cisco-XR 7.4.1@NCS-540](#cisco-xr-741ncs-540) + * [Cisco-XE 17.06.01prd7@C8000V](#cisco-xe-170601prd7c8000v) + * [Cisco-NX-OS 10.2(2)@Nexus9000](#cisco-nx-os-1022nexus9000) + * [JunOS 20.4R3-S2.6@mx10003](#junos-204r3-s26mx10003) + * [Huawei VRP V800R021C10SPC300T@NE40E](#huawei-vrp-v800r021c10spc300tne40e) + + +## Cisco-XR 7.4.1@NCS-540 +```SHELL +``` + +## Cisco-XE 17.06.01prd7@C8000V +```SHELL +# Reference documentation: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/173/b_173_programmability_cg/model_driven_telemetry.html + +telemetry ietf subscription 1 +! + encoding encode-kvgpb + filter xpath /oc-if:interfaces/oc-if:interface + source-address 192.168.100.100 + stream yang-push + update-policy periodic 6000 + receiver ip address 192.168.100.254 10001 protocol grpc-tcp + +``` + +## Cisco-NX-OS 10.2(2)@Nexus9000 +```SHELL +# Reference documentation: https://www.cisco.com/c/en/us/td/docs/dcn/nx-os/nexus9000/101x/programmability/cisco-nexus-9000-series-nx-os-programmability-guide-release-101x/m-n9k-model-driven-telemetry-101x.html + +feature telemetry +! +telemetry + ! + destination-profile + use-vrf vrf100 + source-interface Vlan100 + ! + destination-group 1 + ! encoding GPB-KV + host 192.168.100.254 port 10001 protocol gRPC encoding GPB + ! enabling gRPC dial-out + grpc-async + ! + sensor-group 1 + data-source YANG + path openconfig-interfaces:interfaces + ! + subscription 1 + dst-grp 1 + snsr-grp 1 sample-interval 60000 +! +``` + +## JunOS 20.4R3-S2.6@mx10003 +```SHELL +``` + +## Huawei VRP V800R021C10SPC300T@NE40E +```SHELL +```