Changes to the LIVEcommunity experience are coming soon... Here's what you need to know.
Hi,
How can I get the current bitrate of a logical interface at the time its queried via the API or CLI?
I've tried 'show interface tunnel.x' but that shows be the overall counters for that interface.
I know it can be done as Pan(w)achrome displays that information. When I click on the birate speed in Pan(w)achrome it shows me 'tunnel.x.ibytes.rate', I just don't know where it's getting that from.
Will someone be able to help me.
Thanks,
Eugene
Hi eugenep
Pan(w)achrome seems to be polling this <show><counter><interface>all</interface></counter></show>. I tried the above in REST API Browser and it showed me ibytes for the logical interface as well:
<entry>
<icmp_frag>0</icmp_frag>
<ifwderrors>0</ifwderrors>
<ierrors>0</ierrors>
<macspoof>0</macspoof>
<pod>0</pod>
<flowstate>0</flowstate>
<ipspoof>0</ipspoof>
<teardrop>0</teardrop>
<ibytes>1384740</ibytes>>>>>>>>>>>>>>
<noarp>0</noarp>
<noroute>0</noroute>
<noneigh>0</noneigh>
<nomac>0</nomac>
<l2_encap>0</l2_encap>
<zonechange>0</zonechange>
<obytes>699216</obytes>
<land>0</land>
<name>ethernet1/11.1</name>
<neighpend>0</neighpend>
<ipackets>14130</ipackets>
<opackets>7228</opackets>
<l2_decap>0</l2_decap>
<idrops>0</idrops>
</entry>
Let me know if this is what you are looking for.
Thanks csharma. That still seems to be a count of the overall bytes in not the active/current rate.
When I look at that value it just keeps rising and I doubt I can have an active bitrate of <ibytes>17992771529714</ibytes>.
Thanks anyways.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!