Ethernet Switching
Highlighted
Ethernet Switching

Issues with input bytes from SNMP

‎07-19-2013 06:59 AM

Hi,

 

First of, how do I calculate the input bytes? The surveilence system end up with some weird numbers sometimes, when calculating ae0 interfaces:

 

> show interfaces ae0 snmp-index 503 extensive   

   Input  bytes  :      603725502504755            477557936 bps
   Input  bytes  :      603725562873961            318239920 bps
   Input  bytes  :      894843398312054            554493600 bps
   Input  bytes  :      603738132806350            272981536 bps

 

 

Every 10 min it picks up a new stat from the interface, and sometimes it ends up with 894843398312054, and the avg. goes way off - giving us warnings like:

 

 

The inbound traffic on interface 'ae0' is too high (1794.0 Gbps/8970.22%).

 

Since the snmpwalk shows these numbers, I suspect something is up with the snmp information from ae interfaces:

 

while true; do snmpwalk (community and switch) .1.3.6.1.2.1.31.1.1.1.6.503 2>/dev/null ; sleep 5; done

 


IF-MIB::ifHCInOctets.503 = Counter64: 810930821679490
IF-MIB::ifHCInOctets.503 = Counter64: 833023157268612
IF-MIB::ifHCInOctets.503 = Counter64: 833023753266273
IF-MIB::ifHCInOctets.503 = Counter64: 547985537278632
IF-MIB::ifHCInOctets.503 = Counter64: 547985788718969
IF-MIB::ifHCInOctets.503 = Counter64: 547986037032615
IF-MIB::ifHCInOctets.503 = Counter64: 547986354556462
IF-MIB::ifHCInOctets.503 = Counter64: 547986762837905
IF-MIB::ifHCInOctets.503 = Counter64: 547987263402774
IF-MIB::ifHCInOctets.503 = Counter64: 547987638933144
IF-MIB::ifHCInOctets.503 = Counter64: 547987930320158
IF-MIB::ifHCInOctets.503 = Counter64: 547988188342043
IF-MIB::ifHCInOctets.503 = Counter64: 547988444182350
IF-MIB::ifHCInOctets.503 = Counter64: 547988698829125

 

 

Any tips here?

4 REPLIES 4
Highlighted
Ethernet Switching

Re: Issues with input bytes from SNMP

‎07-22-2013 12:44 AM

This is from a ae0 interface (20Gbit/s).

 

$ while true; do snmpwalk -c <COMMUNITY> <AGENT> .1.3.6.1.2.1.31.1.1.1.6.503 2>/dev/null ; date +"seconds: %s"; echo "" ; sleep 5; done

 

IF-MIB::ifHCInOctets.503 = Counter64: 612834789822625
seconds: 1374477816

 

IF-MIB::ifHCInOctets.503 = Counter64: 612834962524898

seconds: 1374477821

 

IF-MIB::ifHCInOctets.503 = Counter64: 908391837562788
seconds: 1374477826

 

IF-MIB::ifHCInOctets.503 = Counter64: 930113925226189
seconds: 1374477831

 

IF-MIB::ifHCInOctets.503 = Counter64: 612835569098350
seconds: 1374477836

 

IF-MIB::ifHCInOctets.503 = Counter64: 612835770717350
seconds: 1374477841

 

 

 

And if my math is correct:

 

diff /bytes / time = bits per second

(930113925226189 - 612835569098350) / 8 / 5 = 7931958903195.975

 

That equals a speed of 7387.21238746864 gbit/s

 

So my question is either how to calculate or if there might be a bug in the snmp counters?

 

 

System information:

{master:0}

user@switch> show version | match "(boot)|(Model)"
Model: ex4550-32f
JUNOS Base OS boot [12.3R1.7]
Model: ex4550-32f
JUNOS Base OS boot [12.3R1.7]
Model: ex4200-48t
JUNOS Base OS boot [12.3R1.7]
Model: ex4200-48t
JUNOS Base OS boot [12.3R1.7]

 

 

 

Highlighted
Ethernet Switching

Re: Issues with input bytes from SNMP

‎07-22-2013 05:16 AM

It looks like two counters are irregular. I'd recommend to open a JTAC case for this.

 

IF-MIB::ifHCInOctets.503 = Counter64: 612834789822625
IF-MIB::ifHCInOctets.503 = Counter64: 612834962524898

IF-MIB::ifHCInOctets.503 = Counter64: 908391837562788

IF-MIB::ifHCInOctets.503 = Counter64: 930113925226189

IF-MIB::ifHCInOctets.503 = Counter64: 612835569098350

IF-MIB::ifHCInOctets.503 = Counter64: 612835770717350

 

Thanks,

/Charlie

 

Highlighted
Ethernet Switching

Re: Issues with input bytes from SNMP

‎07-22-2013 10:53 PM
Highlighted
Ethernet Switching

Re: Issues with input bytes from SNMP

‎07-02-2014 05:41 AM

Is your issue resolved?

Thank You,
SuSi
Feedback