[ixpmanager] Issue in MAC address discovery with the script for Arista Switch

Ahmed Al-Saruri ahmed.alsaruri at x3me.net
Fri Apr 9 12:10:59 IST 2021


Hello Nick,

Yes, I am sure that the MAC address  is consistently present on the switch
when the device is polled.

Attached are the logs from update-l2database.pl when I run it manually.

Also here is the information from the interface with no flaps or mac
changes during this time period.

columba.del#sh mac address-table int eth3
          Mac Address Table
------------------------------------------------------------------

Vlan    Mac Address       Type        Ports      Moves   Last Move
----    -----------       ----        -----      -----   ---------
3210    f4b7.8ddd.02e6    DYNAMIC     Et3        1       2 days, 22:18:46
ago
Total Mac Addresses for this criterion: 1


Do you have any suggestions on how to investigate this further?


On Thu, Apr 8, 2021 at 4:03 PM Nick Hilliard <nick at foobar.org> wrote:

> Hi Ahmed,
>
> mac address expiry is unrelated to the switch type.
>
> Are you sure the mac address is consistently present on that switch when
> the device is polled?
>
> update-l2database.pl starts out by deleting all MAC addresses on the
> specified vlan, and then repopulating it from what it learns from the
> switch.  So if the mac address is temporarily not visible on the switch,
> then it won't re-learn it.
>
> Nick
>
> Ahmed Al-Saruri wrote on 07/04/2021 15:06:
> > Hello Team,
> >
> > We have one Arista switch DCS-7280SR-48C6-M-F and when the script
> > "update-l2database.pl <http://update-l2database.pl/>"  is run manually
> > we are learning the MAC address of the member connected on it. However,
> > after 1 hour this MAC address is no longer visible in the Discovered MAC
> > Address table and we need to run the script again to learn it.
> >
> > We are using IXP Manager V5.5.0
> >
> > Also we have many other switches from Huawei and this problem is not
> > observed at all.
> >
> > Could you please assist or suggest how we can troubleshoot this and why
> > this is happening?
> >
> > --
> >
> > Warm Regards,
> > Ahmed Alsaruri
> >
> >
> >
> > _______________________________________________
> > INEX IXP Manager mailing list
> > ixpmanager at inex.ie
> > Unsubscribe or change options here:
> https://www.inex.ie/mailman/listinfo/ixpmanager
> >
>


-- 

Warm Regards,
Ahmed Alsaruri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20210409/f92272aa/attachment.htm>
-------------- next part --------------
DEBUG: columba.del: started query process
DEBUG: columba.del: pre-emptively trying Juniper jnxExVlanTag to see if we're on a J-EX box (.1.3.6.1.4.1.2636.3.40.1.5.1.5.1.5)
DEBUG: columba.del: this isn't a Juniper EX
DEBUG: columba.del: this isn't a Juniper running an ELS image
DEBUG: columba.del: attempting to retrieve dot1qVlanFdbId mapping (.1.3.6.1.2.1.17.7.1.4.2.1.3)
DEBUG: columba.del: got mapping index: 3210 maps to 3210
DEBUG: columba.del: attempting Q-BRIDGE-MIB (.1.3.6.1.2.1.17.7.1.2.2.1.2.3210)
DEBUG: columba.del: Q-BRIDGE-MIB query successful

$l2mapping = {
          'columba.del' => {
                             'Ethernet3' => [
                                              'f4b78ddd02e6'
                                            ],
                             'Port-Channel1' => [
                                                  '28993a61dd9d',
                                                  '80acac8fc7f2',
                                                  'cc2de00b41a9',
                                                  '14579fb3aa9e',
                                                  'cc2de052deb5',
                                                  '845b126f6e4b',
                                                  '085531591969'
                                                ]
                           },


$ports = {
          'columba.del' => {
                             'Ethernet3' => {
                                              'switchportid' => '3779',
                                              'infrastructure' => '1',
                                              'switchhostname' => 'columba.del',
                                              'status' => '1',
                                              'switchport' => 'Ethernet3',
                                              'spifname' => 'Ethernet3',
                                              'switch' => 'columba.del',
                                              'id' => '59',
                                              'virtualinterfacename' => undef
                                            }
                           },

						   
INSERT: f4b78ddd02e6 -> columba.del:Ethernet3


More information about the ixpmanager mailing list