[Cc:ed to mynms-users - Sam, I suggest you subscribe to this list (visit
mynms.sourceforge.net) and join the thousands of other happy myNMS users
;-)]
----- Original Message -----
From: Sam Smith <s....@re...>
To: <jo...@uk...>
Sent: Friday, August 24, 2001 1:16 PM
Subject: NMS
> Hi John,
>
>
> How does NMS get the mapping of mac address to HP ports out of the HP's?
> I know it does an SNMP walk, and pulls the mac addresses out that way, but
there
> seems to be no obvious mapping to the port names.
>
> As far as I can tell, there is some information encoded in the dot1dbridge
MIB
> which may or may not be useful. Do you know if this is documented anywhere
(either
> in NMS or elsewhere)?
from the dot1dbridge MIB you get the mapping of MAC address to ifIndex, and
somewhere else (I forget just where) there's a mapping of ifIndex to port
names. This works for HP switches but is far from universally implemented,
and needs some sort of empirical heuristic (OK, kludge :) to cope with
different vendors' ways of doing things.
As for documentation the MIBs themselves are self-documenting (at least, the
comments in there are as much as I've ever found) and my code is of course
<ahem> prolifically commented :-)
(Reminds me of a discussion I heard of between a developer and a user where
the developer said "the documentation is in the code" and after the user
complained they could not find anything said that was a typo and they'd
meant to say "the documentation is the code".)
hth,
--
John Stumbles jo...@uk... http://www.stumbles.org/John
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|