[ixpmanager] update-l2database.pl and Juniper QFX5100
Leon Meßner
l.messner at physik.tu-berlin.de
Sun Feb 12 02:01:52 GMT 2017
Hi,
On Thu, 02 Feb 2017 12:51:30 +0000
Nick Hilliard <nick at foobar.org> wrote:
> Leon Meßner wrote:
> > has anyone got a working update-l2database.pl for Juniper QFX series
> > switches?
>
> Most vendors implement Q-BRIDGE-MIB by using a vlan index. So in
> theory you should be able to walk through an OID which will give you
> a mapping between the list of vlan numerical IDs and the snmp vlan
> mapping ID, and then use that index to walk through dot1qTpFdbPort to
> retrieve the list of MAC address.
Found something like that. See below.
<snip>
> Could you open a ticket with Juniper and ask them what is their
> recommended way of retrieving MAC addresses from QFX5100 boxes using
> snmp (without referring to the CLI)? Juniper EX boxes refer to
> KB26533, but this method is not going to work on your qfx5100 for the
> reasons above.
I opened a ticket but have not gotten any response until now. I will
report when responded to.
> It might also be worth trawling down through the juniper enterprise
> MIB to see what information can be gleaned about VLAN id mappings.
>
> % snmpwalk -v 2c -c foo switch-1 .1.3.6.1.4.1.2636 > output.txt
I did that and found two interesting oids that should be able to do
what is needed. First jnxL2aldVlanTag
$ snmpwalk -v 2c -c community switch .1.3.6.1.4.1.2636.3.48.1.3.1.1.3
iso.3.6.1.4.1.2636.3.48.1.3.1.1.3.3 = Gauge32: 50
iso.3.6.1.4.1.2636.3.48.1.3.1.1.3.5 = Gauge32: 2000
iso.3.6.1.4.1.2636.3.48.1.3.1.1.3.8 = Gauge32: 1
and second jnxL2aldVlanFdbId
$ snmpwalk -v 2c -c community switch .1.3.6.1.4.1.2636.3.48.1.3.1.1.5
iso.3.6.1.4.1.2636.3.48.1.3.1.1.5.3 = Gauge32: 196608
iso.3.6.1.4.1.2636.3.48.1.3.1.1.5.5 = Gauge32: 327680
iso.3.6.1.4.1.2636.3.48.1.3.1.1.5.8 = Gauge32: 524288 .
In [1] juniper mentions that non-ELS images have jnxExVlanTable and ELS
have this stuff. I wrote a patch which is attached but my perl is very
confined to copy&paste. If its still fine, i could open a pull request
on github.
Regards,
Leon
[1]
https://www.juniper.net/techpubs/en_US/junos/topics/concept/juniper-specific-mibs-junos-nm.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: update-l2database_jnxL2ald.patch
Type: text/x-patch
Size: 2806 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20170212/e672c733/attachment.bin>
More information about the ixpmanager
mailing list