nv-l

Re: 8272 Mib

2000-04-10 02:20:20
Subject: Re: 8272 Mib
From: Jane Curry <jane.curry AT skills-1st.co DOT uk>
To: nv-l AT lists.tivoli DOT com
Date: Mon, 10 Apr 2000 07:20:20 +0100
Christo Burger wrote:

> I have downloaded the 8272 mib from the IBM networking site but I am looking
> for the mib entry to query for port details i.e. I want to query the port
> and get a list of Mac addresses attached to that port ( LAN segment ).

Christo,
I cannot tell you what the IBM-specific variable is for your device but you can
get the hub/switch port-to-end device MAC table from mib-2, which is far more
generic.  For hubs, checkout the variable from the repeater table below and for
switches, the bridge table.

MIB-2 has standard subtrees that support repeaters and bridges.

The MIB OID to the appropriate hub table is .1.3.6.1.2.1.22.3.3.1.1 or
 
snmpDot3RptrMgt.rptrAddrTrackPackage.rptrAddrTrackPortInfo.rptrAddrTrackTable.rptrAddrTrackEntry

from mib-2.  This table has 5 entries, of which we are interested in 2:
 .5 rptrAddrTrackNewLastSrcAddress         is a last-seen MAC address
 .2 rptrAddrTrackPortIndex      the port this MAC was seen on


The MIB OID to the appropriate switch table is .1.3.6.1.2.1.17.4.3.1 or
      dot1dBridge.dot1dTp.dot1dTpFdbTable.dot1dTpFdbEntry
from mib-2.  This table has 3 entries, of which we are interested in 2:
 .1 dot1dTpFdbAddress  is a last-seen MAC address
  .2 dot1dTpFdbPort   is the port this MAC was seen on

I use these tables in a script that is run periodically so I can build a picture
of which devices are physically attached to which hubs/switches.  You do get a
few "funnies", but largely it does what's required.  I also add in a
registration file so that you can run these queries from the NetView menus.

Regards,
Jane
--
Tivoli Certified Enterprise Consultant & Instructor
Skills 1st Limited, 2 Cedar Chase, Taplow, Bucks, SL6 0EU, UK
Tel: +44 (0)1628 782565
Copyright (c) 2000 Jane Curry <jane.curry AT skills-1st.co DOT uk>.  All rights
reserved.


<Prev in Thread] Current Thread [Next in Thread>