Hello, I'm trying to figure out and test the snmp traps feature on packetfence. All i'm really looking to do is log the switchport and mac address of clients as they connect. I work at a college where we need to shutdown ports because of illegal file sharing. what i'd like to do is be able to instantly search a mac address and get the switchport(s) that mac has conected to in the packetfence GUI.
I've installed packetfence and configured SNMP on a test switch, from there i've issued debug commands, connected new devices, verified the snmp packets were sent from the switch to the packetfence server and then verified in the packetfence log the packet was recieved. See output below of debug output of switch and then snmptrapd.log output. I'm assuming I dont completely understand how things are supposed to work so if anyone could shed some light on this it would be appreciated. Thank you. Outgoing SNMP packet 000724: 01:45:48: v1 packet 000725: 01:45:48: community string: public 000726: 01:45:48: SNMP: V2 Trap, reqid 2, errstat 0, erridx 0 sysUpTime.0 = 634808 snmpTrapOID.0 = cmnMacChangedNotification cmnHistMacChangedMsg.0 = 01 00 0A 00 24 E8 F8 B8 EC 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 000727: 01:45:48: SNMP: Packet sent via UDP to <ip of packetfence server> [root@localhost logs]# less snmptrapd.log 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 END VARIABLEBINDINGS 2012-02-08|21:02:23|UDP: [ip of switch]:58262|0.0.0.0|BEGIN TYPE 0 END TYPE BEGIN SUBTYPE 0 END SUBTYPE BEGIN VARIABLEBINDINGS .1.3.6.1.2.1.1.3.0 = INTEGER: 634808|.1.3.6.1.6.3.1.1.4.1.0 = OID: .1.3.6.1.4.1.9.9.215.2.0.1|.1.3.6.1.4.1.9.9.215.1.1.8.1.2.0 = Hex-STRING: 01 00 0A 00 24 E8 F8 B8 EC 00 10 00 00 00 00 00 ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Packetfence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
