for several switches getting their port statuses



Hello all,

I'm trying to get statuses for several switches (cisco and hp) over SNMP.
What I'm interested about ports? I need their speed, MAC ports
connected to it, and counters.
I wrote few scripts using perl, but to be honest - I can't do it by myself.

My scritp works like this:
from Bridge-MIB I get TpFdbAddress list (1.3.6.1.2.1.17.4.3.1.1),
and for every record which is 1.3.6.1.2.1.17.4.3.1.1.MAC_ADDRESS
I check TpFdbPort.MAC_ADDRESS and
TpFdbStatus.MAC_ADDRESS.
<My first doubt - will I receive configuration for every port
on this switch?>
After that I'm checking (from mib-2 31, ifMIB) ifInOctets and
outInOctets and ifSpeed for port number received above
(TpFdbPort.MAC_ADDRESS), and I do have what I want.
<My second doubt - will it work for every switch?>

Why is that doubts? First - I'm not sure about first one :-)
Second - I know that this doesn't work for every switch,
I don't know why, becouse it is standard MIB

Could you please help a little?

regards,

Sierp
.



Relevant Pages

  • Re: Measure amount of network usage
    ... netflow is adequate to this task. ... cheap, but should be other free options out there), it will use SNMP ... you to graph each switchport on the switch (you would need to resolve ... connected to - as i use (up to 200 ports per switch). ...
    (comp.dcom.sys.cisco)
  • Re: Measure amount of network usage
    ... netflow is adequate to this task. ... cheap, but should be other free options out there), it will use SNMP ... you to graph each switchport on the switch (you would need to resolve ... connected to - as i use (up to 200 ports per switch). ...
    (comp.dcom.sys.cisco)
  • Re: Measure amount of network usage
    ... cheap, but should be other free options out there), it will use SNMP ... you to graph each switchport on the switch (you would need to resolve ... connected to - as i use (up to 200 ports per switch). ... netflow can provide you with more detailed information as you can get with mrtg and i ...
    (comp.dcom.sys.cisco)
  • Re: Unused switch port report for 1/3 months
    ... If you get it running and have it monitor all of the switch ... ports, not just the ones up at initial running, then you can accumilate data ... MRTG has been around for a while and relies on SNMP for collecting data. ...
    (comp.dcom.sys.cisco)
  • Re: probably an easy routing question, so please help
    ... plugged into the same gigabit switch as Server B in Block 2 and they ... from a 10Mb link to the router and the computers are both hooked into ... router with gig ports, you will potentially have limits for any ...
    (comp.dcom.sys.cisco)