11-16-2017 05:08 AM - edited 03-01-2019 06:15 PM
hi is there an application so i can poll my interface bandwidth every 0.5 seconds for a limited time like 5 -10
mins
?
11-16-2017 06:25 AM
Hi @n.bokhar1
Probably any NMS on market will allow you that much. For performance reason and network bandwidth conservation usually they setup larger interval.
I think you can accomplish this using a Python script for example. Just try to figure out for your device which SNMP OID gets this information.
-If I helped you somehow, please, rate it as useful.-
11-16-2017 06:46 AM
As Flavio said, you can probably script this but 0.5 seconds for most devices is probably about as fast as the device will update its own stats.
You might want to see what you get with snmpwalk. Here's some script body parts you can start with. Just add the correct version parameters. And again, as Flavio said, make sure you use the smallest MIB and OID:
# snmpwalk -m MIB -O OUT q: quick print for easier parsing NE=${NE-$1} OID=${OID-"dod"} snmpwalk -Cp -Ct -O q -t 30 $NE $OID
11-16-2017 10:13 PM
to poll for Interface utilization you need to read byte counters first time at moment "t" and then second time at "t+n" and then calculate difference and divide it by "n".. this will give you throughput in "Bytes per second".. then you take interface Bandwidth and divide by throughput to get Utilization IN %..
To know if with n= 0.5 you can get any reasonable data need to know how often IOS updates internal counters.. it may be > 0.5
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