for several switches getting their port statuses
- From: "Sierp" <sierpNO@³spamsierp.net>
- Date: Sun, 13 Nov 2005 22:59:41 +0100
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
.
- Follow-Ups:
- Re: for several switches getting their port statuses
- From: Dougie!
- Re: for several switches getting their port statuses
- Prev by Date: Re: SNMP Newbee
- Next by Date: Snmptrap invocation (newbie)
- Previous by thread: Is there a standard way to control STP version
- Next by thread: Re: for several switches getting their port statuses
- Index(es):
Relevant Pages
|