From: Andrea <ar...@co...> - 2011-10-12 12:12:12
|
Il 12/10/2011 11:43, Ingen Schenau, Jeroen van (ICTS) ha scritto: > Hi Andrea, > > If I understand correctly, there are two issues: > > 1) In the Device View, you only see one port for each switch, while you > should see 24 ports. > > 2) You don't see any nodes recorded in Netdisco, even though your print > statement in the Macsuck routine shows that the switch has learned a lot > of MAC addresses at different bp_index values. > > If these two conditions are true, I expect that all interfaces on the > switch have the same name, ie all are called "Ethernet Interface" > without any addition such as a port number. > > Netdisco expects interfaces to have a unique name on a device. We should > probably add a workaround to the Layer2::Allied class to fix this, or > even to the SNMP::Info base class to fix this for all possible devices. > > Could you do an snmpwalk for IF-MIB::ifDescr and IF-MIB::ifName to check > the interface names on one of your switches? > Hi Ingen ! first of all thanks a lot for your quick response ! As reguards your "point 1" ... you're right. For the second one, i'd like to clarify that if a try this sql-query ( directly on the DB ) : select * from node where switch::INET = 'IPADDR of an ATSWITCH already discovered BY NETDISCO'; I get nothing ( zero data ) ... In effect yuo are right when you suppose that ( in case of tha AT-8000 switch family ) all the interfaces have the same name ( as the IF::MIB::ifDescr ): ###### snmpwalk -v2c -c "COMMUNITY" IPADDR IF::MIB::ifDescr RFC1213-MIB::ifDescr.1 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.2 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.3 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.4 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.5 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.6 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.7 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.8 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.9 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.10 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.11 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.12 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.13 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.14 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.15 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.16 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.17 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.18 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.19 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.20 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.21 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.22 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.23 = STRING: "Ethernet Interface" RFC1213-MIB::ifDescr.24 = STRING: "Ethernet Interface" ...... ###### Instead, a walk of the IF::MIB::ifName gives: ###### IF-MIB::ifName.1 = STRING: e1 IF-MIB::ifName.2 = STRING: e2 IF-MIB::ifName.3 = STRING: e3 IF-MIB::ifName.4 = STRING: e4 IF-MIB::ifName.5 = STRING: e5 IF-MIB::ifName.6 = STRING: e6 IF-MIB::ifName.7 = STRING: e7 IF-MIB::ifName.8 = STRING: e8 IF-MIB::ifName.9 = STRING: e9 IF-MIB::ifName.10 = STRING: e10 IF-MIB::ifName.11 = STRING: e11 IF-MIB::ifName.12 = STRING: e12 IF-MIB::ifName.13 = STRING: e13 IF-MIB::ifName.14 = STRING: e14 IF-MIB::ifName.15 = STRING: e15 IF-MIB::ifName.16 = STRING: e16 IF-MIB::ifName.17 = STRING: e17 IF-MIB::ifName.18 = STRING: e18 IF-MIB::ifName.19 = STRING: e19 IF-MIB::ifName.20 = STRING: e20 IF-MIB::ifName.21 = STRING: e21 IF-MIB::ifName.22 = STRING: e22 IF-MIB::ifName.23 = STRING: e23 IF-MIB::ifName.24 = STRING: e24 ###### Do you think is really possible to have a workaround on this ?? --Andrea |