遥测和监控
AI 群集网络需要无损、高吞吐量和低延迟的连接。维护性能的一个关键组件是收集和分析运营数据,以监控拥塞、系统运行状况和流量模式。Junos OS 遥测可以详细跟踪关键性能指标,包括特定于 AI 工作负载的阈值、计数器和拥塞指标。收集数据后,必须对这些数据进行分析、结构化和可视化,以支持监控、决策和持续网络优化。
以下部分介绍如何配置设备以启用数据收集,并概述了推荐用于 AI EVPN/VXLAN 交换矩阵解决方案的关键性能指标。
配置 QFX 交换机以提供遥测信息
要实施遥测收集,需要将交换机配置为允许基于 gPRC 的访问,如《Junos 遥测接口用户指南》中的 OpenConfig 和 gRPC for Junos 遥测接口 部分所述。
为此,所有叶节点和主干节点设备上都使用了以下配置:
user@spine1> show configuration system services extension-service
request-response {
grpc {
ssl {
port 32767;
local-certificate aos_grpc;
}
routing-instance mgmt_junos;
}
}
表49.适用于 Junos OS 的 gRPC 配置命令
| 命令 | 说明 |
|---|---|
extension-service request-response grpc |
在扩展服务框架下启用 gRPC 接口,用于 Junos 遥测接口 (JTI) 或第三方集成等 API。客户端发出请求并等待 Junos OS 服务器的响应。 |
ssl port 32767 |
配置 TCP 端口 32767 以便使用 SSL 加密进行通信。 |
local-certificate aos_grpc |
使用名为 aos_grpc 的证书配置身份验证,以保护 gRPC 会话。请按照 配置 gRPC 服务 中所述的步骤生成并安装必要的证书。 |
routing-instance mgmt_junos |
将 gRPC 服务器绑定到mgmt_junos路由实例,这意味着它仅侦听带外管理接口。 |
要验证遥测收集器之间的连接,请使用命令 show system connections 并搜索配置的 SSL 端口号。
jnpr@stripe2-leaf1> show system connections | match "Address|32767" Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp6 0 0 :::32767 :::* LISTEN 11937/jsd tcp6 0 0 10.161.33.38:32767 10.100.1.17:56634 ESTABLISHED 11937/jsd tcp6 0 0 10.161.33.38:32767 10.100.1.20:53184 ESTABLISHED 11937/jsd tcp6 0 0 10.161.33.38:32767 10.100.1.20:53170 ESTABLISHED 11937/jsd
示例输出显示来自两个收集器(10.100.1.17 和 10.100.1.20)的连接。
要确认收集器正在通过 gRPC/gNMI 主动提取数据并查看 正在使用哪些传感器, 请使用:
show network-agent statisticsshow network-agent statistics detailshow network-agent statistics subscription-paths <sensor-path>show network-agent statistics junipershow network-agent statistics gnmi
示例:
jnpr@stripe2-leaf1> show network-agent statistics
Subscription Details :
Subscription ID : 1
Type : juniper
Client IP : IPv6:::ffff:10.100.1.17:56634
Subscription Time (UTC) : Thu May 1 12:38:57 2025
Sensor Statistics :
Sensor Path : /network-instances/network-instance/mac-table/entries/entry/
Reporting Interval : 0
Component(s) : l2aldTM,l2ald
Child Sensor Statistics :
Path : /network-instances/network-instance/mac-table/entries/entry/
Component : l2ald
Component-ID : 65535
Path : /network-instances/network-instance/mac-table/entries/entry/
Component : l2aldTM
Component-ID : 65535
Subscription Details :
Subscription ID : 2
Type : gnmi
Client IP : IPv6:::ffff:10.100.1.17:56634
GNMI mode : STREAM
Subscription Time (UTC) : Thu May 1 12:38:57 2025
Sensor Statistics :
Sensor Path : /interfaces/interface/state/admin-status/
Reporting Interval : 120
Component(s) : re0/mib2d
GNMI Sub Mode : SAMPLE
Component ID : 65535
Sensor Path : /interfaces/interface/state/oper-status/
Reporting Interval : 120
Component(s) : re0/mib2d,evo-pfemand
GNMI Sub Mode : SAMPLE
Child Sensor Statistics :
Path : /interfaces/interface/state/oper-status/
Component : evo-pfemand
GNMI-SubMode : SAMPLE
Component-ID : 0
Path : /interfaces/interface/state/oper-status/
Component : re0/mib2d
GNMI-SubMode : SAMPLE
Component-ID : 65535
Sensor Statistics :
Sensor Path : /interfaces/interface/subinterfaces/subinterface/state/admin-status/
Reporting Interval : 120
Component(s) : re0/mib2d
GNMI Sub Mode : SAMPLE
Component ID : 65535
Sensor Path : /interfaces/interface/subinterfaces/subinterface/state/oper-status/
Reporting Interval : 120
Component(s) : re0/mib2d,evo-pfemand
GNMI Sub Mode : SAMPLE
Child Sensor Statistics :
Path : /interfaces/interface/subinterfaces/subinterface/state/oper-status/
Component : evo-pfemand
GNMI-SubMode : SAMPLE
Component-ID : 0
Path : /interfaces/interface/subinterfaces/subinterface/state/oper-status/
Component : re0/mib2d
GNMI-SubMode : SAMPLE
Component-ID : 65535
Subscription Details :
Subscription ID : 3
Type : juniper
Client IP : IPv6:::ffff:10.100.1.17:56634
Subscription Time (UTC) : Thu May 1 12:39:01 2025
Sensor Statistics :
Sensor Path : /junos/system/linecard/qmon-sw/
Reporting Interval : 5
Component(s) : evo-pfemand
Component ID : 0
Subscription Details :
Subscription ID : 4
Type : gnmi
Client IP : IPv6:::ffff:10.161.38.48:39588
GNMI mode : STREAM
Subscription Time (UTC) : Thu May 1 12:39:15 2025
Sensor Statistics :
Sensor Path : /components/component/cpu/utilization/
Reporting Interval : 2
Component(s) : re0/ehmd
GNMI Sub Mode : SAMPLE
Component ID : 65535
Subscription Details :
Subscription ID : 5
Type : juniper
Client IP : IPv6:::ffff:10.161.38.48:57182
Subscription Time (UTC) : Thu May 1 12:39:04 2025
Sensor Statistics :
Sensor Path : /junos/system/linecard/npu/memory/
Reporting Interval : 2
Component(s) : evo-pfemand
Component ID : 0
Subscription Details :
Subscription ID : 6
Type : juniper
Client IP : IPv6:::ffff:10.161.38.48:57182
Subscription Time (UTC) : Thu May 1 12:39:04 2025
Sensor Statistics :
Sensor Path : /junos/system/linecard/interface/
Reporting Interval : 2
Component(s) : picd,evo-pfemand
Child Sensor Statistics :
Path : /junos/system/linecard/interface/
Component : evo-pfemand
Component-ID : 0
Path : /junos/system/linecard/interface/
Component : picd
Component-ID : 0
Subscription Details :
Subscription ID : 7
Type : juniper
Client IP : IPv6:::ffff:10.161.38.48:57182
Subscription Time (UTC) : Thu May 1 12:39:04 2025
Sensor Statistics :
Sensor Path : /junos/system/linecard/qmon-sw/
Reporting Interval : 2
Component(s) : evo-pfemand
Component ID : 0
Subscription Details :
Subscription ID : 8
Type : juniper
Client IP : IPv6:::ffff:10.161.38.48:57182
Subscription Time (UTC) : Thu May 1 12:39:04 2025
Sensor Statistics :
Sensor Path : /junos/system/linecard/interface/queue/
Reporting Interval : 2
Component(s) : Not available
Component ID : 65535
jnpr@stripe1-leaf1> show network-agent statistics detail
Subscription Details :
Subscription ID : 1
Type : gnmi
Client IP : ipv6:::ffff:10.161.38.194:49526
GNMI mode : STREAM
Subscription Time (UTC) : Wed Oct 1 14:39:38 2025
Sensor Statistics :
Sensor Path : /components/component/cpu/utilization/
Reporting Interval : 2
Component(s) : re0/ehmd
GNMI Sub Mode : SAMPLE
Component ID : 65535
Average iLatency (ms) : 0
Average Circular Buffer Used (%) : 0
Bytes Sent : 347630
Packets Sent : 648
Drops : 0
Initial Sync Bytes Sent : 4536
Initial Sync Packets Sent : 8
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Initial Sync Average Circular Buffer Used (%) : 0
Sensor Path : /components/component/state/memory/utilized/
Reporting Interval : 30
Component(s) : re0/hwdre/stack1,re0/hwdre,picd
GNMI Sub Mode : SAMPLE
Average iLatency (ms) : 11
Average Circular Buffer Used (%) : 0
Bytes Sent : 34425
Packets Sent : 131
Drops : 0
Initial Sync Bytes Sent : 7482
Initial Sync Packets Sent : 29
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 11
Initial Sync Average Circular Buffer Used (%) : 0
Child Sensor Statistics :
Path : /components/component/state/memory/utilized/
Component : picd
GNMI-SubMode : SAMPLE
Component-ID : 0
Average iLatency (ms) : 13
Bytes Sent : 31154
Packets Sent : 116
Drops : 0
Initial Sync Bytes Sent : 7220
Initial Sync Packets Sent : 28
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 12
Path : /components/component/state/memory/utilized/
Component : re0/hwdre
GNMI-SubMode : SAMPLE
Component-ID : 65535
Average iLatency (ms) : 0
Bytes Sent : 928
Packets Sent : 5
Drops : 0
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Path : /components/component/state/memory/utilized/
Component : re0/hwdre/stack1
GNMI-SubMode : SAMPLE
Component-ID : 65535
Average iLatency (ms) : 0
Bytes Sent : 2343
Packets Sent : 10
Drops : 0
Initial Sync Bytes Sent : 262
Initial Sync Packets Sent : 1
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Sensor Statistics :
Sensor Path : /components/component/state/temperature/avg/
Reporting Interval : 30
Component(s) : re0/hwdre/stack1,re0/hwdre
GNMI Sub Mode : SAMPLE
Average iLatency (ms) : 1
Average Circular Buffer Used (%) : 0
Bytes Sent : 51773
Packets Sent : 180
Drops : 0
Initial Sync Bytes Sent : 9494
Initial Sync Packets Sent : 34
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 1
Initial Sync Average Circular Buffer Used (%) : 0
Child Sensor Statistics :
Path : /components/component/state/temperature/avg/
Component : re0/hwdre
GNMI-SubMode : SAMPLE
Component-ID : 65535
Average iLatency (ms) : 1
Bytes Sent : 46300
Packets Sent : 160
Drops : 0
Initial Sync Bytes Sent : 8634
Initial Sync Packets Sent : 31
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 1
Path : /components/component/state/temperature/avg/
Component : re0/hwdre/stack1
GNMI-SubMode : SAMPLE
Component-ID : 65535
Average iLatency (ms) : 0
Bytes Sent : 5473
Packets Sent : 20
Drops : 0
Initial Sync Bytes Sent : 860
Initial Sync Packets Sent : 3
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 1
Sensor Statistics :
Sensor Path : /components/component/state/used-power/
Reporting Interval : 30
Component(s) : re0/hwdre/stack1,re0/hwdre
GNMI Sub Mode : SAMPLE
Average iLatency (ms) : 2
Average Circular Buffer Used (%) : 0
Bytes Sent : 15636
Packets Sent : 65
Drops : 0
Initial Sync Bytes Sent : 2615
Initial Sync Packets Sent : 11
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 2
Initial Sync Average Circular Buffer Used (%) : 0
Child Sensor Statistics :
Path : /components/component/state/used-power/
Component : re0/hwdre
GNMI-SubMode : SAMPLE
Component-ID : 65535
Average iLatency (ms) : 2
Bytes Sent : 13453
Packets Sent : 55
Drops : 0
Initial Sync Bytes Sent : 2375
Initial Sync Packets Sent : 10
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 3
Path : /components/component/state/used-power/
Component : re0/hwdre/stack1
GNMI-SubMode : SAMPLE
Component-ID : 65535
Average iLatency (ms) : 0
Bytes Sent : 2183
Packets Sent : 10
Drops : 0
Initial Sync Bytes Sent : 240
Initial Sync Packets Sent : 1
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 2
Subscription Details :
Subscription ID : 2
Type : juniper
Client IP : ipv6:::ffff:10.161.38.194:45730
Subscription Time (UTC) : Wed Oct 1 14:40:14 2025
Sensor Statistics :
Sensor Path : /junos/system/linecard/npu/memory/
Reporting Interval : 2
Component(s) : evo-pfemand
Component ID : 0
Average iLatency (ms) : 0
Average Circular Buffer Used (%) : 0
Bytes Sent : 532438
Packets Sent : 54
Drops : 0
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Initial Sync Average Circular Buffer Used (%) : 0
Subscription Details :
Subscription ID : 3
Type : juniper
Client IP : ipv6:::ffff:10.161.38.194:45730
Subscription Time (UTC) : Wed Oct 1 14:40:14 2025
Sensor Statistics :
Sensor Path : /interfaces/interface/state/
Reporting Interval : 2
Component(s) : re0/mgmt-ethd,re0/mib2d,picd,evo-pfemand
Average iLatency (ms) : 0
Average Circular Buffer Used (%) : 0
Bytes Sent : 3748322
Packets Sent : 329
Drops : 0
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Initial Sync Average Circular Buffer Used (%) : 0
Child Sensor Statistics :
Path : /junos/system/linecard/interface/
Component : evo-pfemand
Component-ID : 0
Average iLatency (ms) : 0
Bytes Sent : 651076
Packets Sent : 54
Drops : 0
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Path : /junos/system/linecard/interface/
Component : picd
Component-ID : 0
Average iLatency (ms) : 0
Bytes Sent : 771043
Packets Sent : 55
Drops : 0
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Path : /interfaces/interface/state/
Component : re0/mgmt-ethd
Component-ID : 65535
Average iLatency (ms) : 0
Bytes Sent : 34318
Packets Sent : 55
Drops : 0
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Path : /interfaces/interface/state/
Component : re0/mib2d
Component-ID : 65535
Average iLatency (ms) : 0
Bytes Sent : 2291885
Packets Sent : 165
Drops : 0
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Subscription Details :
Subscription ID : 4
Type : juniper
Client IP : ipv6:::ffff:10.161.38.194:45730
Subscription Time (UTC) : Wed Oct 1 14:40:14 2025
Sensor Statistics :
Sensor Path : /junos/system/linecard/interface/queue/
Reporting Interval : 2
Component(s) : Not available
Component ID : 65535
Average iLatency (ms) : 0
Average Circular Buffer Used (%) : 0
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Initial Sync Average Circular Buffer Used (%) : 0
Subscription Details :
Subscription ID : 5
Type : juniper
Client IP : ipv6:::ffff:10.161.38.194:45730
Subscription Time (UTC) : Wed Oct 1 14:40:14 2025
Sensor Statistics :
Sensor Path : /junos/system/linecard/qmon-sw/
Reporting Interval : 2
Component(s) : evo-pfemand
Component ID : 0
Average iLatency (ms) : 0
Average Circular Buffer Used (%) : 0
Bytes Sent : 423086
Packets Sent : 54
Drops : 0
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Initial Sync Average Circular Buffer Used (%) : 0
Subscription Details :
Subscription ID : 6
Type : juniper
Client IP : ipv6:::ffff:10.161.53.17:36216
Subscription Time (UTC) : Wed Oct 1 14:40:26 2025
Sensor Statistics :
Sensor Path : /network-instances/network-instance/mac-table/entries/entry/
Reporting Interval : 0
Component(s) : l2aldTM,l2ald
Average iLatency (ms) : 0
Average Circular Buffer Used (%) : 0
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Initial Sync Bytes Sent : 2152
Initial Sync Packets Sent : 2
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Initial Sync Average Circular Buffer Used (%) : 0
Child Sensor Statistics :
Path : /network-instances/network-instance/mac-table/entries/entry/
Component : l2ald
Component-ID : 65535
Average iLatency (ms) : 0
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Initial Sync Bytes Sent : 1953
Initial Sync Packets Sent : 1
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 1
Path : /network-instances/network-instance/mac-table/entries/entry/
Component : l2aldTM
Component-ID : 65535
Average iLatency (ms) : 0
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Initial Sync Bytes Sent : 199
Initial Sync Packets Sent : 1
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Subscription Details :
Subscription ID : 7
Type : gnmi
Client IP : ipv6:::ffff:10.161.53.17:36216
GNMI mode : STREAM
Subscription Time (UTC) : Wed Oct 1 14:40:26 2025
Sensor Statistics :
Sensor Path : /interfaces/interface/state/admin-status/
Reporting Interval : 120
Component(s) : re0/mib2d
GNMI Sub Mode : SAMPLE
Component ID : 65535
Average iLatency (ms) : 0
Average Circular Buffer Used (%) : 0
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Initial Sync Bytes Sent : 21669
Initial Sync Packets Sent : 87
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 4
Initial Sync Average Circular Buffer Used (%) : 0
Sensor Path : /interfaces/interface/state/oper-status/
Reporting Interval : 120
Component(s) : evo-pfemand,re0/mib2d
GNMI Sub Mode : SAMPLE
Average iLatency (ms) : 0
Average Circular Buffer Used (%) : 0
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Initial Sync Bytes Sent : 41497
Initial Sync Packets Sent : 168
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 3
Initial Sync Average Circular Buffer Used (%) : 0
Child Sensor Statistics :
Path : /interfaces/interface/state/oper-status/
Component : evo-pfemand
GNMI-SubMode : SAMPLE
Component-ID : 0
Average iLatency (ms) : 0
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Initial Sync Bytes Sent : 19943
Initial Sync Packets Sent : 81
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 3
Path : /interfaces/interface/state/oper-status/
Component : re0/mib2d
GNMI-SubMode : SAMPLE
Component-ID : 65535
Average iLatency (ms) : 0
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Initial Sync Bytes Sent : 21554
Initial Sync Packets Sent : 87
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 4
Sensor Statistics :
Sensor Path : /interfaces/interface/subinterfaces/subinterface/state/admin-status/
Reporting Interval : 120
Component(s) : re0/mib2d
GNMI Sub Mode : SAMPLE
Component ID : 65535
Average iLatency (ms) : 0
Average Circular Buffer Used (%) : 0
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Initial Sync Bytes Sent : 31742
Initial Sync Packets Sent : 91
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 12
Initial Sync Average Circular Buffer Used (%) : 0
Sensor Path : /interfaces/interface/subinterfaces/subinterface/state/oper-status/
Reporting Interval : 120
Component(s) : evo-pfemand,re0/mib2d
GNMI Sub Mode : SAMPLE
Average iLatency (ms) : 0
Average Circular Buffer Used (%) : 0
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Initial Sync Bytes Sent : 63249
Initial Sync Packets Sent : 180
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 4
Initial Sync Average Circular Buffer Used (%) : 0
Child Sensor Statistics :
Path : /interfaces/interface/subinterfaces/subinterface/state/oper-status/
Component : evo-pfemand
GNMI-SubMode : SAMPLE
Component-ID : 0
Average iLatency (ms) : 0
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Initial Sync Bytes Sent : 30750
Initial Sync Packets Sent : 89
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 1
Path : /interfaces/interface/subinterfaces/subinterface/state/oper-status/
Component : re0/mib2d
GNMI-SubMode : SAMPLE
Component-ID : 65535
Average iLatency (ms) : 0
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Initial Sync Bytes Sent : 32499
Initial Sync Packets Sent : 91
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 6
Subscription Details :
Subscription ID : 8
Type : juniper
Client IP : ipv6:::ffff:10.161.53.17:36216
Subscription Time (UTC) : Wed Oct 1 14:40:29 2025
Sensor Statistics :
Sensor Path : /junos/system/linecard/qmon-sw/
Reporting Interval : 5
Component(s) : evo-pfemand
Component ID : 0
Average iLatency (ms) : 0
Average Circular Buffer Used (%) : 0
Bytes Sent : 109920
Packets Sent : 15
Drops : 0
Initial Sync Bytes Sent : 182314
Initial Sync Packets Sent : 12
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Initial Sync Average Circular Buffer Used (%) : 0
jnpr@stripe1-leaf1> show network-agent statistics subscription-paths /interfaces/interface/state/oper-status/ detail
Subscription Details :
Subscription ID : 2
Type : gnmi
Client IP : IPv6:::ffff:10.161.53.17:56132
GNMI mode : STREAM
Subscription Time (UTC) : Thu May 1 14:49:53 2025
Sensor Statistics :
Sensor Path : /interfaces/interface/state/oper-status/
Reporting Interval : 120
Component(s) : re0/mib2d,evo-pfemand
GNMI Sub Mode : SAMPLE
Average iLatency (ms) : 3
Average Circular Buffer Used (%) : 0
Bytes Sent : 2328768
Packets Sent : 8939
Drops : 0
Initial Sync Bytes Sent : 40679
Initial Sync Packets Sent : 165
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 4
Initial Sync Average Circular Buffer Used (%) : 0
Child Sensor Statistics :
Path : /interfaces/interface/state/oper-status/
Component : evo-pfemand
GNMI-SubMode : SAMPLE
Component-ID : 0
Average iLatency (ms) : 2
Bytes Sent : 1087006
Packets Sent : 4187
Drops : 0
Initial Sync Bytes Sent : 19165
Initial Sync Packets Sent : 78
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 2
Path : /interfaces/interface/state/oper-status/
Component : re0/mib2d
GNMI-SubMode : SAMPLE
Component-ID : 65535
Average iLatency (ms) : 5
Bytes Sent : 1241762
Packets Sent : 4752
Drops : 0
Initial Sync Bytes Sent : 21514
Initial Sync Packets Sent : 87
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 5
要确认传感器的状态,您可以使用: show agents sensors
jnpr@stripe1-leaf1> show agent sensors
Sensor Information :
Name : sensor_1000
Resource : /network-instances/network-instance/mac-table/entries/entry/
Version : 1.0
Sensor-id : 562949953421313
Subscription-ID : 1000
Component(s) : re0/l2ald-agent
Profile Information :
Name : export_1000
Reporting-interval : 0
Payload-size : 5000
Address : 0.0.0.0
Port : 1000
Timestamp : ntp
Format : GPB
Sensor Information :
Name : sensor_1001
Resource : /interfaces/interface/state/admin-status/
Version : 1.0
Sensor-id : 562949953421443
Subscription-ID : 1001
Component(s) : re0/mib2d
Profile Information :
Name : export_1001
Reporting-interval : 120
Payload-size : 5000
Address : 0.0.0.0
Port : 1000
Timestamp : ntp
Format : JSON
Sensor Information :
Name : sensor_1002
Resource : /interfaces/interface/state/oper-status/
Version : 1.0
Sensor-id : 562949953421314
Subscription-ID : 1002
Component(s) : re0/evoaft-jvisiond-brcm,re0/mib2d
Profile Information :
Name : export_1002
Reporting-interval : 120
Payload-size : 5000
Address : 0.0.0.0
Port : 1000
Timestamp : ntp
Format : JSON
Sensor Information :
Name : sensor_1003
Resource : /interfaces/interface/subinterfaces/subinterface/state/admin-status/
Version : 1.0
Sensor-id : 562949953421444
Subscription-ID : 1003
Component(s) : re0/mib2d
Profile Information :
Name : export_1003
Reporting-interval : 120
Payload-size : 5000
Address : 0.0.0.0
Port : 1000
Timestamp : ntp
Format : JSON
Sensor Information :
Name : sensor_1004
Resource : /interfaces/interface/subinterfaces/subinterface/state/oper-status/
Version : 1.0
Sensor-id : 562949953421316
Subscription-ID : 1004
Component(s) : re0/evoaft-jvisiond-brcm,re0/mib2d
Profile Information :
Name : export_1004
Reporting-interval : 120
Payload-size : 5000
Address : 0.0.0.0
Port : 1000
Timestamp : ntp
Format : JSON
Sensor Information :
Name : sensor_1005
Resource : /components/component/cpu/utilization/
Version : 1.0
Sensor-id : 562949953421450
Subscription-ID : 1005
Component(s) : re0/ehmd
Profile Information :
Name : export_1005
Reporting-interval : 2
Payload-size : 5000
Address : 0.0.0.0
Port : 1000
Timestamp : ntp
Format : GPB
Sensor Information :
Name : sensor_1006
Resource : /junos/system/linecard/npu/memory/
Version : 1.0
Sensor-id : 562949953421449
Subscription-ID : 1006
Component(s) : re0/evoaft-jvisiond-brcm
Profile Information :
Name : export_1006
Reporting-interval : 2
Payload-size : 5000
Address : 0.0.0.0
Port : 1000
Timestamp : ntp
Format : GPB
Sensor Information :
Name : sensor_1007
Resource : /junos/system/linecard/qmon-sw/
Version : 1.0
Sensor-id : 562949953421452
Subscription-ID : 1007
Component(s) : re0/evoaft-jvisiond-brcm
Profile Information :
Name : export_1007
Reporting-interval : 2
Payload-size : 5000
Address : 0.0.0.0
Port : 1000
Timestamp : ntp
Format : GPB
Sensor Information :
Name : sensor_1008
Resource : /interfaces/interface/state/
Version : 1.0
Sensor-id : 562949953421451
Subscription-ID : 1008
Component(s) : re0/evoaft-jvisiond-brcm,re0/mgmt-ethd,re0/mib2d
Profile Information :
Name : export_1008
Reporting-interval : 2
Payload-size : 5000
Address : 0.0.0.0
Port : 1000
Timestamp : ntp
Format : GPB
Sensor Information :
Name : sensor_1009
Resource : /junos/system/linecard/qmon-sw/
Version : 1.0
Sensor-id : 562949953421427
Subscription-ID : 1009
Component(s) : re0/evoaft-jvisiond-brcm
Profile Information :
Name : export_1009
Reporting-interval : 5
Payload-size : 5000
Address : 0.0.0.0
Port : 1000
Timestamp : ntp
Format : GPB
Sensor Information :
Name : sensor_1011
Resource : /lldp/state/enabled/
Version : 1.0
Sensor-id : 562949953421493
Subscription-ID : 1011
Component(s) : re0/l2cpd-agent
Profile Information :
Name : export_1011
Reporting-interval : 30
Payload-size : 5000
Address : 0.0.0.0
Port : 1000
Timestamp : ntp
Format : JSON
建议监控 KPI
表50.使用 Junos 命令和遥测传感器监控 GPU 后端交换矩阵的推荐 KPI 路径
| KPI JUNOS | 命令 | 传感器 |
|---|---|---|
| 接口状态 | show interfaces <interface> 简洁 | /interfaces/interface[name=<interface>]/state/oper-status /interfaces/interface[name=<interface>]/state/admin-status |
| 接口说明 | show interfaces <interface> extensive | match 说明 | /interfaces/interface[name=<interface>]/state/description |
| 接口 MTU | show interfaces <interface> extensive | match MTU | /interfaces/interface[name=<interface>]/state/mtu |
| 接口速度 | show interfaces <interface> 广泛 | 匹配速度 | /interfaces/interface[name=<interface>]/state/high-speed |
| 接口输入丢弃 | show interfaces <interface> extensive | 查找“输入错误” | /interfaces/interface[name=<interface>]/state/counters/in-discards |
| 接口输出丢弃 | show interfaces <interface> extensive | 查找“输出错误” | /interfaces/interface[name=<interface>]/state/counters/out-discards |
| 接口输出包 | 运行 show interfaces <interface> extensive | 匹配“数据包总数” | /interfaces/interface[name=<interface>]/state/counters/out-pkts |
| 接口输出单播包 | 运行 show interfaces <interface> extensive | match 单播 | /interfaces/interface[name=<interface>]/state/counters/out-单播-pkts |
| 接口输入包 | 运行 show interfaces <interface> extensive | 匹配“数据包总数” | /interfaces/interface[name=<interface>]/state/counters/in-pkts |
| 接口输入单播包 | 运行 show interfaces <interface> extensive | match 单播 | /interfaces/interface[name=<interface>]/state/counters/in-单播-pkts |
| 每个接口 ECN 标记的数据包 | show interfaces <interface> extensive | match ecn | /state/interfaces/interface[name=<interface>/counters/errors/out-ecn-ce-marked-pkts /junos/system/linecard/qmon-sw/ /cos/interfaces/interface/queues/queue/ecnMarkedPkts |
| 每个接口、每个队列 缓冲区占用率 |
show interfaces queue buffer-occupancy <接口> | /junos/system/linecard/qmon-sw/ /cos/interfaces/interface/queues/queue/peakBufferOccupancyPercent /cos/interfaces/interface/queues/queue/peakBufferOccupancy |
| 每个接口, 每转发类(队列)尾部丢弃 |
show interfaces queue <interface> forwarding-class <forwarding-class> | 匹配“尾部” | /junos/system/linecard/qmon-sw/ /cos/interfaces/interface/queues/queue/tailDropPkts |
| 每接口 PFC 暂停帧 | show interfaces <interface> extensive | math “优先级:<优先级>” | /interfaces/interface[name=<interface-name>]/ethernet/state/counters/in-pause-pkts /interfaces/interface[name=<interface-name>]/ethernet/state/counters/out-pause-pkts |
| EVPN L3 上下文 | 显示 EVPN L3-context extensive<context-name> <context-name> = VRF 路由实例名称 = 租户名称 |
/junos/evpn/l3-context[context-name=<context-name>]/ <context-name> = VRF 路由实例名称 = 租户名称 /junos/evpn/l3-context[context-name=<context-name>]/advertisement-mode /junos/evpn/l3-context[context-name=<context-name>]/encapsulation /junos/evpn/l3-context[context-name=<context-name>]/ip-prefix-database /junos/evpn/l3-context[context-name=<context-name>]/ip-prefix-database/route-status |
| IPv6 BGP 底层网络 通告的路由 |
显示路由播发路由协议 BGP <邻接方地址> 广泛 <邻接方地址> = 自动发现直接连接的 EBGP 邻接方的链路本地地址 |
/network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/IPv6-单播/neighbors/neighbor/adj-rib-out-pre/routes/ |
| IPv6 BGP 底层网络 接收的路由 | 显示路由接收路由协议 BGP <邻接方地址> 广泛 <邻接方地址> = 自动发现直接连接的 EBGP 邻接方的链路本地地址 |
/network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/IPv6-单播/邻接儿/邻居/adj-rib-in-pre/routes/ /network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/IPv6-单播/邻居/邻居/adj-rib-in-post/routes/ |
| EVPN BGP 每个租户通告的 5 类路由 | 显示路由播发路由协议 BGP <邻接方地址> 广泛 <邻居地址> = 远程VTEP邻接方的 IPv4 或 IPv6 地址 |
/network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/l2vpn-evpn/loc-rib/routes/route-distinguisher[route-distinguisher=<tenant-route-distinguisher>]/type-five-ip-prefix/type-five-route |
| 每个租户收到的 EVPN BGP 5 类路由数 | 显示路由播发路由协议 BGP <邻接方地址>扩展表 <Tenant-name.inet.0> <邻居地址> = 远程VTEP邻接方的 IPv4 或 IPv6 地址 |
/network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/l2vpn-evpn/loc-rib/routes/route-distinguisher[route-distinguisher=<tenant-route-distinguisher>]/type-five-ip-prefix/type-five-route/paths/path/state/source-route-distinguisher |
| EVPN BGP 每个租户每个邻接方收到的 5 类路由 | 显示路由播发路由协议 BGP <邻接方地址>扩展表 <Tenant-name.inet.0> <邻居地址> = 远程VTEP邻接方的 IPv4 或 IPv6 地址 |
/network-instances/network-instance/protocols/protocol/bgp/rib/afi-safis/afi-safi/l2vpn-evpn/loc-rib/routes/route-distinguisher[route-distinguisher=<tenant-route-distinguisher>]/type-five-ip-prefix/type-five-route/paths/path[peer-ip =<neighbor-IPv6-address>/state/source-route-distinguisher |
有关详细信息,请参阅 网络配置示例:AI/ML - 遥测参考指南 。