Hi,
I am trying to calculate band Width on few interfaces.
Every thing works fine, bandWidth goes up when user loged in it goes down
the moment working hrs are over.
Only problem is once in a while it show negative bandWidth ?
I make that script to send information in-case it negative.
here are few examples
Code:
from IP XX.X.X.X interface X
inCounters new = 1056124169 old = 484753332
outCounters new = 71539457 old = 4205963496
inDelta = 571370837
outDelta = -4134424039
inBandw = 7.61827782666667
outBandw = -55.1256538533333
time delta = 600
Code:
from IP XX.X.X.XX interface XX
inCounters new = 312030197 old = 2835394885
outCounters new = 372140664 old = 222527326
inDelta = -2523364688
outDelta = 149613338
inBandw = -33.6448625066667
outBandw = 1.99484450666667
time delta = 600
That decreased count cause bandwidth to go negative too.
Any one know what is going on?
I took formula to calculate bandwidth from cisco website
http://www.cisco.com/en/US/tech/tk64...8009496e.shtml
Code:
inPut utilization = (change x 8 X 100) / (change in time X connection speed)
but that would not matter because , problem is caused by lowering count on in and out packets.