OpenConfigテレメトリシステムモデルコマンドのJunos設定へのマッピング
ジュニパーネットワークスACXシリーズ、MXシリーズ、PTXシリーズ向けのサポートされているデータモデルのバージョンとそのJunos OSまたはJunos Evolved OSリリースについては、 OpenConfigデータモデルのバージョン のトピックを参照してください。
以下の表は、テレメトリシステムコマンドとJunosの関連する設定とのマッピングを示しています。
コマンド名 |
OpenConfig Configuration |
Junos の設定 |
---|---|---|
センサーパス |
openconfig-telemetry-system:telemetry-system { sensor-groups { sensor-group <sensor-group-id> { config { sensor-group-id <sensor-group-id>; } sensor-paths { sensor-path <path> { config { path <path>; } } } } } |
services { analytics { sensor <<subscription-name>__ + <sensor-group-id>__ + <sensor-path >> { resource <path>; } } } |
OpenConfig Junos センサー名は、データ値 この設定の例については、 OpenConfig センサーの例 を参照してください。 |
コマンド名 |
OpenConfig Configuration |
Junos の設定 |
---|---|---|
サンプル間隔 |
openconfig-telemetry-system:telemetry-system { subscriptions { persistent-subscriptions { persistent-subscription 10000 { sensor-profiles { sensor-profile <> { config { sample-interval <>; } } } } } } } |
services { analytics { sensor <<subscription-name>_ + <sensor-group-id>_ + <sensor-path>> { reporting-rate <>; } } } |
OpenConfig |
コマンド名 |
OpenConfig Configuration |
Junos の設定 |
---|---|---|
サンプル間隔 |
openconfig-telemetry-system:telemetry-system { destination-groups { destination-group DST1 { destinations { destination <destination-address> { config { destination-address <address>; destination-port <port>; } } } } } |
services { analytics { streaming-server <<destination-group-id>_ + <destination-address>_ + <destination-port> { remote-address 10.1.1.1; remote-port 2000; } } } |
OpenConfig OpenConfig この設定の例については、「 OpenConfig デスティネーション コンフィギュレーション 」を参照してください。 |
コマンド名 |
OpenConfig Configuration |
Junos の設定 |
---|---|---|
エクスポートプロファイル |
openconfig-telemetry-system:telemetry-system { subscriptions { persistent-subscriptions { persistent-subscription 10000 { config { name 10000; local-source-address 10.2.3.1; originated-qos-marking 60; } sensor-profiles { sensor-profile SEN1 { config { sensor-group SEN1; sample-interval 10000; } } } } } } } |
services { analytics { export-profile 10000 { local-address 10.2.3.1; dscp 60; } sensor 10000__SEN1__<sensor-path> { export-name 10000; } } } |
OpenConfig OpenConfig Junos |
コマンド名 |
OpenConfig Configuration |
Junos の設定 |
---|---|---|
プロトコル |
openconfig-telemetry-system:telemetry-system { subscriptions { persistent-subscriptions { persistent-subscription 10000 { sensor-profiles { sensor-profile <> { config { protocol <>; } } } } } } } |
services { analytics { export-profile 10000 { transport <>; } sensor 10000__SEN1__<sensor-path> { export-name 10000; } } } |
OpenConfig |
コマンド名 |
OpenConfig Configuration |
Junos の設定 |
---|---|---|
エンコーディング |
openconfig-telemetry-system:telemetry-system { subscriptions { persistent-subscriptions { persistent-subscription 10000 { sensor-profiles { sensor-profile <> { config { encoding <>; } } } } } } } |
services { analytics { export-profile 10000 { format <>; } sensor 10000__SEN1__<sensor-path> { export-name 10000; } } } |
OpenConfig |
OpenConfig センサーの例
この例で使用されているOpenConfigからJunosへのマッピングについては、 表1:センサーパスとフィルター設定を参照してください。
openconfig-telemetry-system:telemetry-system { sensor-groups { sensor-group SEN1 { config { sensor-group-id SEN1; } sensor-paths { sensor-path /junos/system/linecard/interface/ { config { path /junos/system/linecard/interface/; } } } } } subscriptions { persistent-subscriptions { persistent-subscription 10000 { sensor-profiles { sensor-profile SEN1 { config { sensor-group SEN1; sample-interval 10000; } } } } } } } And translated Junos sensor config: --------- services { analytics { sensor 10000__SEN1__junos_system_linecard_interface { resource /junos/system/linecard/interface/; subscription-id 10000; reporting-rate 10; } } }
OpenConfig デスティネーションの設定
この例で使用されているOpenConfigからJunosへのマッピングについては、 表3:宛先グループの設定を参照してください。
OC destination config: ---- destination-groups { destination-group DST1 { destinations { destination 10.1.1.1 2000 { config { destination-address 10.1.1.1; destination-port 2000; } } } } Translates to: services { analytics { streaming-server DST1_10.1.1.1_2000 { remote-address 10.1.1.1; remote-port 2000; } } }
OpenConfigテレメトリシステムの例
次の例は、OpenConfig テレメトリ システムの完全な構成を示しています。
openconfig-telemetry-system:telemetry-system { sensor-groups { sensor-group SEN1 { config { sensor-group-id SEN1; } sensor-paths { sensor-path /junos/system/linecard/interface/ { config { path /junos/system/linecard/interface/; } } } } } destination-groups { destination-group DST1 { config { group-id DST1; } destinations { destination 10.1.1.1 2000 { config { destination-address 10.1.1.1; destination-port 2000; } } destination 10.2.2.1 4000 { config { destination-address 10.2.2.1; destination-port 4000; } } destination 10.2.1.1 2000 { config { destination-address 10.2.1.1; destination-port 2000; } } } } } subscriptions { persistent-subscriptions { persistent-subscription 10000 { config { name 10000; local-source-address 10.2.3.1; originated-qos-marking 60; protocol STREAM_GRPC; encoding ENC_PROTO3; } sensor-profiles { sensor-profile SEN1 { config { sensor-group SEN1; sample-interval 10000; } } } destination-groups { destination-group DST1; } } } } }
上記のOpenConfigの設定例は、次のJunosテレメトリシステムの設定にマッピングされています。
services { analytics { streaming-server DST1_10.1.1.1_2000 { remote-address 10.1.1.1; remote-port 2000; } streaming-server DST1_10.2.2.1_4000 { remote-address 10.2.2.1; remote-port 4000; } streaming-server DST_10.2.1.1_2000 { remote-address 10.2.1.1; remote-port 2000; } export-profile 10000 { local-address 10.2.3.1; dscp 60; transport grpc; format gpb-gnmi; } sensor 10000__SEN1__junos_system_linecard_interface { server-name [DST1_10.1.1.1_2000 DST1_10.2.2.1_4000 DST1_10.2.1.1_2000 ]; export-name 10000; resource /junos/system/linecard/interface/; subscription-id 10000; reporting-rate 10; } } }