Hi, I'm trying to make Dlink DES 3550 work with packetfence using Dlink module
After small changes in Mac trap regexp, traps sent by the switch are correctly interpreted by packetfence (up,down, mac notification) But when packetfence is trying to change vlan the following error occurs : INFO: setting VLAN at switch1 ifIndex 12 from 1 to 2 (pf::SNMP::setVlan) May 19 12:53:51 pfsetvlan(7) DEBUG: dot1dBasePort corresponding to ifIndex 12 is 12 (pf::SNMP::getDot1dBasePortForThisIfIndex) May 19 12:53:51 pfsetvlan(7) DEBUG: opening SNMP v2c write connection to switch1 (pf::SNMP::connectWrite) May 19 12:53:52 pfsetvlan(7) ERROR: error setting VLAN: Received wrongValue(10) error-status at error-index 1 (pf::SNMP::Dlink::_setVlan) I've done some tests with snmpget / snmpset : # snmpget -v 2c -c private switch1 1.3.6.1.2.1.17.7.1.4.3.1.4.1 SNMPv2-SMI::mib-2.17.7.1.4.3.1.4.1 = Hex-STRING: FF FF FF FF FF FF C0 # snmpset -v 2c -c private switch1 1.3.6.1.2.1.17.7.1.4.3.1.4.1 x FFFFFFFFFFFFC0 Error in packet. Reason: wrongValue (The set value is illegal or unsupported in some way) Failed object: SNMPv2-SMI::mib-2.17.7.1.4.3.1.4.1 So I imported Q-BRIDGE-MIB in netsnmp (/usr/share/snmp/mibs/) # snmpget -v 2c -c private switch1 Q-BRIDGE-MIB::dot1qVlanStaticEgressPorts.1 Q-BRIDGE-MIB::dot1qVlanStaticEgressPorts.1 = Hex-STRING: FF FF FF FF FF FF C0 # snmpset -v 2c -c private switch1 Q-BRIDGE-MIB::dot1qVlanStaticEgressPorts.1 x FFFFFFFFFFFFC0 Q-BRIDGE-MIB::dot1qVlanStaticEgressPorts.1 = Hex-STRING: FF FF FF FF FF FF C0 snmpset set works ! So snmpset works when using Q-BRIDGE-MIB::dot1qVlanSaticEgressPorts and failed with dotted notation Any idea to make it work in packetfence ? Thanks, Thanks Regards, Olivier ROCH VILATO ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Packetfence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
