In order to know how much bandwidth is used on a particular interface (copper or optical) i'd like to know if i can use snmp traps (something like snmp-server enable traps interface fastethernet X/Y but i didn't found it) and if yes wich command to use. If not which other way could i try to periodically get info about the interface?
Thanks a lot
There is no specific trap defined for bandwidth using snmp-server enable traps command. However, there are a couple of options:
1) For devices supporting RMON you could configure them for bandwidth thresholds and then trigger a trap based on this.
It could be something like this:
rmon event 1 log trap public description ifInOctets owner davistan
rmon alarm 1 ifEntry.10.1 8 delta rising-threshold 100000 1 falling-threshold 50000 1
snmp-server host 10.1.1.1 public
More on RMON configs can be found at:
How To Configure RMON Alarm and Event Settings Using SNMP Commands:
Configuring RMON Alarm and Event Settings from the Command Line Interface (CLI):
2) You could poll for bw utilization: