CLI・NETCONF・RESTCONFでtelemetryを設定する2 / 7
CLIの設定例
以下はIOS XE17.15系のlegacy receiver形式で、memoryのoperational dataを60秒ごとに送るlab例である。対応model/path、source VRF、collectorへのroute/ACLとkey-value GPBを受けるgRPC collectorを用意する。
telemetry ietf subscription 710
encoding encode-kvgpb
filter xpath /memory-ios-xe-oper:memory-statistics/memory-statistic
stream yang-push
update-policy periodic 6000
receiver ip address 192.0.2.80 57555 protocol grpc-tcp
end
show telemetry ietf subscription 710 detail
このperiodの単位は1/100秒なので6000は60秒である。grpc-tcpのlab例は暗号化を構成していない。TLSが必要な経路では対応するnamed receiverとTLS profile/trustを設定する。legacy receiverとnamed receiverを同じsubscriptionへ混在させない。