<div dir="ltr">Hello  Nick,<div><br></div><div>Thank you very much for your support.</div><div><br></div><div>I have done some more checks in the debug mode and  I noticed the results as described below.</div><div><br></div><div>Could you please let me know if I am missing something?</div><div><br></div><div><br></div><div>Results :</div><div><br></div><div>1- When I specify vlan ID so only MAC addresses of that vlan are discovered, it fails and goes for  BRIDGE-MIB instead:</div><div><br></div><div>/usr/local/bin/<a href="http://update-l2database.pl/" target="_blank">update-l2database.pl</a> --vlanid 2 --debug<div><br></div><div><div>DEBUG: xxx: started query process</div><div>DEBUG: xxx: 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)</div><div>DEBUG: xxx: this isn't a Juniper EX</div><div>DEBUG: xxx: this isn't a Juniper running an ELS image</div><div>DEBUG: xxx: attempting to retrieve dot1qVlanFdbId mapping (.1.3.6.1.2.1.17.7.1.4.2.1.3)</div><div>DEBUG: xxx: got mapping index: 3610 maps to 3610</div><div>DEBUG: xxx: attempting Q-BRIDGE-MIB (.1.3.6.1.2.1.17.7.1.2.2.1.2.3610)</div><div>DEBUG: xxx: failed to retrieve Q-BRIDGE-MIB. falling back to BRIDGE-MIB</div><div>DEBUG: xxx: attempting BRIDGE-MIB (.1.3.6.1.2.1.17.4.3.1.2)</div><div>DEBUG: xxx: BRIDGE-MIB query successful</div></div><div><br></div></div><div>2- When I run the script with no vlan id specified it detects around 270 MAC addresses only while the switch has around 2000 MAC:</div><div><br></div><div><div> $l2mapping = {</div><div> 'xxxS6720' => {</div><div>                                       'XGigabitEthernet0/0/18' => [</div><div>                                                                     'xx'</div><div>                                                                   ],</div><div>                                       'XGigabitEthernet0/0/24' => [</div><div>                                                                     'xx'</div><div>                                                                   ],</div><div>                                       'XGigabitEthernet0/0/21' => [</div><div>                                                                     'xx',</div><div>                                                                     'xx'</div><div>                                                                   ],</div><div>                                       'XGigabitEthernet0/0/3' => [</div><div>                                                                    'xx'</div><div>                                                                  ],</div><div>                                       'XGigabitEthernet0/0/28' => [</div><div>                                                                     'xx'</div><div>                                                                   ],</div><div>                                       'Eth-Trunk10' => [</div><div>                                                          'xx',</div><div>                                                          'xx'</div><div>                                                        ],</div><div>                                       'XGigabitEthernet0/0/17' => [</div><div>                                                                     'xx'</div><div>                                                                   ],</div><div>                                       'XGigabitEthernet0/0/25' => [</div><div>                                                                     'xx'</div><div>                                                                   ],</div><div>                                       'XGigabitEthernet0/0/11' => [</div><div>                                                                     'xx',</div><div>                                                                     'xx'</div><div>                                                                   ],</div><div>                                       'Eth-Trunk0' => [</div><div>                                                         'xx',</div><div>                                                         'xx',</div><div>                                                         'xx',</div><div>                                                         250 ---> MAC addresses are detected</div><div>                                                       ],</div><div>                                       'XGigabitEthernet0/0/29' => [</div><div>                                                                     'xx'</div><div>                                                                   ]</div><div>                                     }</div><div>        };</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 31, 2018 at 12:59 PM Nick Hilliard (INEX) <<a href="mailto:nick@inex.ie">nick@inex.ie</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Ahmed,<br>
<br>
Ahmed Al-Saruri wrote on 31/12/2018 05:55:<br>
> Hello Team,<br>
> <br>
> I have an issue detecting all interfaces MAC addresses with the script <br>
> "<a href="http://update-l2database.pl" rel="noreferrer" target="_blank">update-l2database.pl</a>". Only few random interfaces MAC addresses are learned.<br>
> <br>
> The switch has around 2000 MAC address. Only 250 MAC addresses are with <br>
> IX VLAN.<br>
> <br>
> I have successfully managed to poll and detect MAC addresses <br>
> successfully from a similar switch but with less MAC addresses learned.<br>
> <br>
> Therefore, I am wondering if there are any MAC address limitations with <br>
> the script or if you could assist in this matter.<br>
<br>
there are no limits in the script, and it should ignore unknown MAC <br>
addresses. Usually problems like this are caused by not configuring the <br>
interface type correctly in IXP Manager (Switches / Switch Ports).<br>
<br>
You can see what's happening in this script by using the "--debug" CLI <br>
parameter.<br>
<br>
Normally we would recommend having dedicated hardware for an IXP.<br>
<br>
Nick<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p dir="auto" style="margin:0px 0px 16px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;font-size:14px;line-height:20px;padding:0px;border:0px;outline:0px;vertical-align:baseline;background-image:initial;background-position:initial;background-repeat:initial;color:rgb(85,85,85)">Warm Regards,<br>Ahmed Alsaruri</p></div></div></div></div>