@@ -594,6 +594,89 @@ gnmic -a 192.0.2.214:6030 -u cvpadmin -p arista --insecure --gzip get --path \
594
594
</p >
595
595
</details >
596
596
597
+ #### Get the information about connected gNMI clients
598
+
599
+ ``` shell
600
+ gnmic -a 192.0.2.214:6030 -u cvpadmin -p arista --insecure --gzip get --path \
601
+ ' /telemetry-system/subscriptions'
602
+ ```
603
+
604
+ <details ><summary > Reveal output</summary >
605
+ <p >
606
+
607
+ ``` javascript
608
+ [
609
+ {
610
+ " source" : " 192.0.2.214:6030" ,
611
+ " timestamp" : 1723202310565051604 ,
612
+ " time" : " 2024-08-09T16:48:30.565051604+05:30" ,
613
+ " updates" : [
614
+ {
615
+ " Path" : " telemetry-system/subscriptions" ,
616
+ " values" : {
617
+ " telemetry-system/subscriptions" : {
618
+ " openconfig-telemetry:dynamic-subscriptions" : {
619
+ " dynamic-subscription" : [
620
+ {
621
+ " id" : " 2" ,
622
+ " sensor-paths" : {
623
+ " sensor-path" : [
624
+ {
625
+ " path" : " /components/component/state/memory" ,
626
+ " state" : {
627
+ " path" : " /components/component/state/memory"
628
+ }
629
+ },
630
+ {
631
+ " path" : " /Kernel/proc/cpu/utilization/total" ,
632
+ " state" : {
633
+ " path" : " /Kernel/proc/cpu/utilization/total"
634
+ }
635
+ }
636
+ ]
637
+ },
638
+ " state" : {
639
+ " destination-address" : " 192.0.2.139" ,
640
+ " destination-port" : 51478 ,
641
+ " encoding" : " openconfig-telemetry-types:ENC_PROTO3" ,
642
+ " id" : " 2" ,
643
+ " protocol" : " openconfig-telemetry-types:STREAM_GRPC"
644
+ }
645
+ },
646
+ {
647
+ " id" : " 3" ,
648
+ " sensor-paths" : {
649
+ " sensor-path" : [
650
+ {
651
+ " path" : " /components/component/transceiver/physical-channels/channel/state" ,
652
+ " state" : {
653
+ " path" : " /components/component/transceiver/physical-channels/channel/state"
654
+ }
655
+ }
656
+ ]
657
+ },
658
+ " state" : {
659
+ " destination-address" : " 192.168.3.2" ,
660
+ " destination-port" : 57928 ,
661
+ " encoding" : " openconfig-telemetry-types:ENC_PROTO3" ,
662
+ " id" : " 3" ,
663
+ " protocol" : " openconfig-telemetry-types:STREAM_GRPC"
664
+ }
665
+ }
666
+ ]
667
+ }
668
+ }
669
+ }
670
+ }
671
+ ]
672
+ }
673
+ ]
674
+
675
+ ```
676
+
677
+ </p >
678
+ </details >
679
+
597
680
## gNMI SUBSCRIBE RPC Examples
598
681
599
682
### OpenConfig paths
0 commit comments