information about interface (can i use traps?)

Answered Question
Jun 20th, 2007
User Badges:

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

Simone


Correct Answer by David Stanford about 10 years 1 month ago

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

owner davistan


snmp-server host 10.1.1.1 public


More on RMON configs can be found at:



http://www.cisco.com/pcgi-bin/Support/browse/psp_view.pl?p=Technologies:RMON

&s=Implementation_and_Configuration#Samples_and_Tips


How To Configure RMON Alarm and Event Settings Using SNMP Commands:


http://www.cisco.com/warp/public/477/RMON/alarm_event.shtml


Configuring RMON Alarm and Event Settings from the Command Line Interface (CLI):

http://www.cisco.com/warp/public/477/RMON/18.html





2) You could poll for bw utilization:


http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a008009496e.shtml


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
David Stanford Wed, 06/20/2007 - 05:22
User Badges:
  • Cisco Employee,

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

owner davistan


snmp-server host 10.1.1.1 public


More on RMON configs can be found at:



http://www.cisco.com/pcgi-bin/Support/browse/psp_view.pl?p=Technologies:RMON

&s=Implementation_and_Configuration#Samples_and_Tips


How To Configure RMON Alarm and Event Settings Using SNMP Commands:


http://www.cisco.com/warp/public/477/RMON/alarm_event.shtml


Configuring RMON Alarm and Event Settings from the Command Line Interface (CLI):

http://www.cisco.com/warp/public/477/RMON/18.html





2) You could poll for bw utilization:


http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a008009496e.shtml


Actions

This Discussion