Le 05/12/2013 10:45, David DURIEUX a écrit :
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@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
Done, in the following commits: https://github.com/fusinv/fusioninventory-agent/commit/d3dd10ed0359e85aa60ee9f099085e00b9348eb6 https://github.com/fusinv/fusioninventory-agent/commit/93f77c3c82cc00519af7fba405d7d0dcb6c99b30 https://github.com/fusinv/fusioninventory-agent/commit/802e64fc5d2f89e98b17402d9225eb256cb9f851
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
I didn't checked this point. -- Guillaume _______________________________________________ Fusioninventory-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel
