From 4a6059c06c5e78c81522fa5b377bac0c7d5a38bc Mon Sep 17 00:00:00 2001 From: Salvatore Cuzzilla Date: Mon, 26 Jun 2023 13:10:53 +0200 Subject: [PATCH] Improve docu & routers config snippets ... --- VERSION | 2 +- doc/Changelog | 8 ++++-- doc/network-devices-conf-snip.md | 46 ++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 56130fb..0f1acbd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v1.1.1 +v1.1.2 diff --git a/doc/Changelog b/doc/Changelog index 975e68f..404410b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -7,8 +7,12 @@ The keys used are: !: fixed/modified feature, -: deleted feature, +: new feature -current -- 25-01.2023 - ! Minor, multiple, fixes on install.sh (install vs clone dir) +current -- XX-XX.20XX + +v1.1.2 -- 26-06.2023 + + JunOS "sensor_path" formatted as JSON + ! Testing gRPC dial-out support for Cisco NX-OS (testing device: NX-OS 10.2(2)@Nexus9000) + ! Documentation general review/update | adding integration-with-pmtelemetryd.md | adding network-devices-conf-snip.md v1.1.1 -- 21-01.2023 + When running in "Library mode" the ZMQ uri is learned from pmtelemetryd. In "binary mode" the ZMQ uri is statically set to "ipc:///tmp/grpc.sock" diff --git a/doc/network-devices-conf-snip.md b/doc/network-devices-conf-snip.md index 44ee7e1..f6a3d58 100644 --- a/doc/network-devices-conf-snip.md +++ b/doc/network-devices-conf-snip.md @@ -10,6 +10,21 @@ ## Cisco-XR 7.4.1@NCS-540 ```SHELL +# Reference documentation: https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k-r7-0/telemetry/configuration/guide/b-telemetry-cg-asr9000-70x/b-telemetry-cg-asr9000-70x_chapter_010.html + +telemetry model-driven strict-timer +telemetry model-driven destination-group COLLECTOR +telemetry model-driven destination-group COLLECTOR address-family ipv4 192.168.100.254 port 10001 +telemetry model-driven destination-group COLLECTOR address-family ipv4 192.168.100.254 port 10001 encoding json +telemetry model-driven destination-group COLLECTOR address-family ipv4 192.168.100.254 port 10001 protocol grpc no-tls +telemetry model-driven sensor-group SENSOR +telemetry model-driven sensor-group SENSOR sensor-path openconfig-interfaces:interfaces +telemetry model-driven +telemetry model-driven subscription SUBSCRIPTION +telemetry model-driven subscription SUBSCRIPTION sensor-group-id SENSOR sample-interval 60000 +telemetry model-driven subscription SUBSCRIPTION destination-id COLLECTOR +telemetry model-driven subscription SUBSCRIPTION source-interface Loopback0 + ``` ## Cisco-XE 17.06.01prd7@C8000V @@ -33,6 +48,8 @@ telemetry ietf subscription 1 feature telemetry ! +feature openconfig +! telemetry ! destination-profile @@ -57,8 +74,37 @@ telemetry ## JunOS 20.4R3-S2.6@mx10003 ```SHELL +# Reference documentation: https://www.juniper.net/documentation/us/en/software/junos/interfaces-telemetry/topics/topic-map/telemetry-grpc-dialout-ta.html + +set groups TLM services analytics streaming-server GRPC_SERVER remote-address 192.168.100.254 +set groups TLM services analytics streaming-server GRPC_SERVER remote-port 10001 +! +set groups TLM services analytics export-profile GRPC_PROFILE local-address 192.168.100.100 +set groups TLM services analytics export-profile GRPC_PROFILE reporting-rate 60 +set groups TLM services analytics export-profile GRPC_PROFILE format json-gnmi +set groups TLM services analytics export-profile GRPC_PROFILE transport grpc +! +set groups TLM services analytics sensor OC_IF server-name GRPC_SERVER +set groups TLM services analytics sensor OC_IF export-name GRPC_PROFILE +set groups TLM services analytics sensor OC_IF resource /interfaces ``` ## Huawei VRP V800R021C10SPC300T@NE40E ```SHELL +# Reference documentation: https://support.huawei.com/enterprise/en/doc/EDOC1100290800/862530fd/example-for-configuring-grpc-in-dial-out-mode + +telemetry + # + sensor-group SENSOR + sensor-path openconfig-interfaces:interfaces/interface/state + sensor-path openconfig-interfaces:interfaces/interface/state/counters + # + destination-group TLM + ipv4-address 192.168.100.254 port 10001 protocol grpc no-tls + # + subscription SUBSCRIPTION + local-source-address ipv4 192.168.100.100 + sensor-group SENSOR + destination-group TLM +# ```