[Fusioninventory-devel] Cisco and get MAC addresses on ports

David DURIEUX d.durieux at siprossii.com
Thu Dec 5 09:45:39 UTC 2013


Hello, 

This is the new schema to get MAC addresses on each port of switchs:

1/ if switch is a Cisco

2/ get all ports not have LLDP/CDP informations

3/ if have 1 or more ports of 2/

4/ get all vlans associated to these ports

5/ if have 1 or more vlans 

6/ we check on each vlan and add MAC found to the port

NOTE : to check for each vlan, open a secondary SNMP connection based
on vlan:
  * for SNMP v1 and 2: community at vlanid
  * for SNMP v3, add to end : context vlan-1 (the context can be found
    on this oid .1.3.6.1.2.1.47.1.2.1.1.8) 
7/ we be sure have unique mac


For the trunk ports, the point 4 will get 0 vlan for these ports, so we
can exclude them too in point 2/. In most cases, network administrators
use a unique vlan on a server and use vlan routage on the switches
instead use trunk on it. The trunk is used in most cases for link
between switches and so have le LLDP/CDP


David
++



More information about the Fusioninventory-devel mailing list