show network-agent statistics
Syntax
show network-agent statistics <brief | detail> <juniper> <gnmi> <all> <subscription-id identifier>
Description
Display details of all or specific sensor subscriptions configured for Junos telemetry interface (JTI). Subscriptions can be made using wither a Juniper API or a gRPC Network Management Interface (gNMI) API.
Options
| brief | detail |
(Optional) Display brief or detail level of output. |
| juniper |
(Optional) Displays subscriptions using the Juniper API. |
| gnmi |
(Optional) Displays subscriptions using the gRPC Network Management Interface (gNMI) API. |
| all |
(Optional) Display both Juniper and gNMI-based subscription statistics. |
| subscription-id identifier |
(Optional) Display subscription statistics specific to a subscription. Configure an identifier in the range from 0 through 4294967295. By default, information is displayed for all subscriptions. |
It is recommended to use the show network-agent statistics brief/detail
command to obtain a more accurate output.
Required Privilege Level
view
Output Fields
Table 1 lists the output fields for the show network-agent statistics command. Output fields are listed in the approximate order in which
they appear.
Field Name |
Field Description |
|---|---|
|
Numerical identifier of the sensor. |
|
Type of API used for the subscription.
Values are |
|
IP address of the client that is collecting sensor data. |
|
Time of subscription, which helps to correlate statistics information from the provisioning logs that are taken over a period of multiple subscriptions. |
|
Resource path configured for the
subscription; for example, |
|
Interval at which statistics are streamed for a subscription. |
|
Component for which statistics are provided. |
|
Average latency values per sensor, which helps to check the latency of any given sensor on the device. |
|
Approximate circular buffer usage per sensor, which provides an early alert if drops are likely for any specific sensor. |
|
Number of bytes transiting for this sensor. |
|
Number of packets transiting for this sensor. |
|
Number of drops for this sensor. |
|
Number of bytes sent for the subscription’s initial synchronization. |
|
Number of packets sent during the subscription’s initial synchronization. |
|
Number of drops during subscription’s initial synchronization. |
Sample Output
- show network-agent statistics (detailed output, no subscription present)
- show network-agent statistics (detailed output, subscription creation in progress)
- show network-agent statistics (detailed output, subscription created, system operating in a steady state)
- show network-agent statistics brief gnmi (shows subscription path)
- show network-agent statistics brief gnmi (shows subscription path)
- show network-agent statistics brief gnmi (shows subscription details)
- show network-agent statistics (detailed output, subscription deletion in progress)
show network-agent statistics (detailed output, no subscription present)
user@host> show network-agent statistics detail No sensors subscribed/available
show network-agent statistics (detailed output, subscription creation in progress)
user@host> show network-agent statistics detail Subscription not created completely, so not available for queries right now
show network-agent statistics (detailed output, subscription created, system operating in a steady state)
user@host> show network-agent statistics detail
Subscription Details :
Subscription ID : 1
Type : juniper
Client IP : ipv6:::ffff:10.209.0.224:45888
Subscription Time : 2020-02-24 04:08:11 UTC
Sensor Statistics :
Sensor Path : /components/
Reporting Interval : 2
Component(s) : jkdsd,chassisd
Average Latency : 5
Circular Buffer used : 12
Bytes Sent : 176530
Packets Sent : 21
Drops : 0
Child Sensor Statistics :
Path : /components/
Component : chassisd
Bytes Sent : 172773
Packets Sent : 14
Drops : 0
Child Sensor Statistics :
Path : /components/
Component : jkdsd
Bytes Sent : 3757
Packets Sent : 7
Drops : 0
show network-agent statistics brief gnmi (shows subscription path)
user@host> show network-agent statistics brief gnmi
Subscription Details :
Subscription ID : 1
Type : gnmi
Client IP : ipv4:::ffff:10.53.113.65:37934
GNMI mode : STREAM
Subscription Time (UTC) : Mon May 13 06:38:39 2024
Sensor Statistics :
Sensor Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Reporting Interval : 10
Node name(s) : r0_re0,r0_re0,tt-ygadiraju-15341379-vm,tt-ygadiraju-15341379-vm
Component(s) : PFE,na-grpcd,rpd,mib2d,xmlproxyd_TM_Thread_1
GNMI Sub Mode : SAMPLE
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : r0_re0
Component : na-grpcd
GNMI-SubMode : SAMPLE
Child Sensor Statistics :
Path : /junos/system/linecard/interface/logical/usage/
Node-name : r0_re0
Component : PFE
Component-ID : 0
GNMI-SubMode : SAMPLE
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
Component : mib2d
GNMI-SubMode : SAMPLE
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
Component : rpd
GNMI-SubMode : SAMPLE
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
Component : xmlproxyd_TM_Thread_1
GNMI-SubMode : SAMPLE
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
show network-agent statistics brief gnmi (shows subscription path)
user@host> show network-agent statistics brief gnmi
Subscription Details :
Subscription ID : 1
Type : gnmi
Client IP : ipv4:::ffff:10.53.113.65:37934
GNMI mode : STREAM
Subscription Time (UTC) : Mon May 13 06:38:39 2024
Sensor Statistics :
Sensor Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Reporting Interval : 10
Node name(s) : r0_re0,r0_re0,tt-ygadiraju-15341379-vm,tt-ygadiraju-15341379-vm
Component(s) : PFE,na-grpcd,rpd,mib2d,xmlproxyd_TM_Thread_1
GNMI Sub Mode : SAMPLE
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : r0_re0
Component : na-grpcd
GNMI-SubMode : SAMPLE
Child Sensor Statistics :
Path : /junos/system/linecard/interface/logical/usage/
Node-name : r0_re0
Component : PFE
Component-ID : 0
GNMI-SubMode : SAMPLE
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
Component : mib2d
GNMI-SubMode : SAMPLE
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
Component : rpd
GNMI-SubMode : SAMPLE
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
Component : xmlproxyd_TM_Thread_1
GNMI-SubMode : SAMPLE
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
show network-agent statistics brief gnmi (shows subscription details)
user@host> show network-agent statistics detail gnmi
Subscription Details :
Subscription ID : 1
Type : gnmi
Client IP : ipv4:::ffff:10.53.113.65:57596
GNMI mode : STREAM
Subscription Time (UTC) : Mon May 13 08:37:21 2024
Sensor Statistics :
Sensor Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Reporting Interval : 10
Node-name : r0_re0,r0_re0,tt-ygadiraju-15341379-vm,tt-ygadiraju-15341379-vm
Component(s) : PFE,na-grpcd,mib2d,rpd,xmlproxyd_TM_Thread_1
GNMI Sub Mode : SAMPLE
Bytes Sent : 3219
Packets Sent : 7
Drops : 0
Average iLatency (ms) : 3
Average Circular Buffer Used (%) : 0
Initial Sync Bytes Sent : 5642
Initial Sync Packets Sent : 5
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 3
Initial Sync Average Circular Buffer Used (%) : 0
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : r0_re0
Component : na-grpcd
GNMI-SubMode : SAMPLE
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Average iLatency (ms) : 0
Initial Sync Bytes Sent : 1598
Initial Sync Packets Sent : 1
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 2
Child Sensor Statistics :
Path : /junos/system/linecard/interface/logical/usage/
Node-name : r0_re0
Component : PFE
Component-ID : 0
GNMI-SubMode : SAMPLE
Bytes Sent : 0
Packets Sent : 1
Drops : 0
Average iLatency (ms) : 3
Initial Sync Bytes Sent : 1598
Initial Sync Packets Sent : 1
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 2
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
Component : mib2d
GNMI-SubMode : SAMPLE
Bytes Sent : 2727
Packets Sent : 4
Drops : 0
Average iLatency (ms) : 2
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
Component : rpd
GNMI-SubMode : SAMPLE
Bytes Sent : 237
Packets Sent : 1
Drops : 0
Average iLatency (ms) : 7
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
Component : xmlproxyd_TM_Thread_1
GNMI-SubMode : SAMPLE
Bytes Sent : 255
Packets Sent : 1
Packets Sent : 4
Drops : 0
Average iLatency (ms) : 2
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
Component : rpd
GNMI-SubMode : SAMPLE
Bytes Sent : 237
Packets Sent : 1
Drops : 0
Average iLatency (ms) : 7
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
Component : xmlproxyd_TM_Thread_1
GNMI-SubMode : SAMPLE
Bytes Sent : 255
Packets Sent : 1
Drops : 0
Average iLatency (ms) : 0
Initial Sync Bytes Sent : 0
Initial Sync Packets Sent : 0
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 0
Child Sensor Statistics :
Path : /interfaces/interface[name='ge-0/0/2']/subinterfaces/subinterface/
Node-name : tt-ygadiraju-15341379-vm
Component : mib2d
GNMI-SubMode : SAMPLE
Bytes Sent : 0
Packets Sent : 0
Drops : 0
Average iLatency (ms) : 0
Initial Sync Bytes Sent : 2446
Initial Sync Packets Sent : 3
Initial Sync Drops : 0
Initial Sync Average iLatency (ms) : 4
show network-agent statistics (detailed output, subscription deletion in progress)
user@host> show network-agent statistics detail Unable to receive the subscription details
Release Information
Command introduced in Junos OS Release 19.2R1.