07-07-2025 05:50 AM
Hi, I'm trying to get statistics for interfaces in ios xr 7.9.21 64 bits (ASR9904) and 6.9.2 32 bits (ASR9001) in l2tranport mode through gnmi but I can't seem to find the right YANG module to query for this statisctics. I tried Cisco-IOS-XR-infra-statsd-oper:Cisco-IOS-XR-infra-statsd-oper:infra-statistics/interfaces/interface (cache, interfaces-mib-counters, generic-counters) but I get results only for routed interfaces/subinterfaces. I also looked at Cisco-IOS-XR-l2vpn-oper in Cisco Future Navigator but I can not find anything related to interaces statistics like send bytes or received bytes.
Is there anyway to acomplish this trough gnmi and yang?
Thanks!
Solved! Go to Solution.
07-07-2025 06:04 AM
Maybe or Cisco-IOS-XR-drivers-media-eth-oper:ethernet-interface/interfaces/interface or Cisco-IOS-XR-pfi-im-cmd-oper:interfaces/interface-xr/interface?
07-07-2025 06:04 AM
Maybe or Cisco-IOS-XR-drivers-media-eth-oper:ethernet-interface/interfaces/interface or Cisco-IOS-XR-pfi-im-cmd-oper:interfaces/interface-xr/interface?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide