fclooki.blogg.se

Mactrack plugin cacti
Mactrack plugin cacti








mactrack plugin cacti
  1. #Mactrack plugin cacti how to#
  2. #Mactrack plugin cacti code#

the issue with this (and the reason why you probably think you need to get data back from the remote endpoint to have the switch learn the MAC) is that your switch might be forgetting the MAC address before your client does. About Press Copyright Contact us Creators Advertise Developers Terms Privacy Policy & Safety How YouTube works Test new features Press Copyright Contact us Creators. No actual data packets need to be transmitted for this to happen. either will cause the IP address to be ARPed and that is what causes the switch to add the MAC to it's address table. There's no reason why you'd want to send TCP SYN packets in addition to the UDP packets. IPep = new IPEndPoint(IPAddress.Parse(subnet + x.ToString()), 23) ĭid you ever try using PacketX to generate ARP requests like I suggested in your last thread? IPep = new IPEndPoint(IPAddress.Parse(subnet + x.ToString()), 80) Sock.SendTo(data, data.Length, SocketFlags.None, IPep) IPep = new IPEndPoint(IPAddress.Parse(subnet + x.ToString()), 139) Along with being able to maintain Graphs, Data Sources, and Round Robin Archives in a database, cacti handles the data gathering. Send a single UDP packet to ports 23, 80, and 139 for all 250+ possible IP addresses in the subnet. Cacti is a complete frontend to RRDtool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database. Create a 32 byte UDP packet to send to different devices.īyte data = ("This is a string of 32 bytes!!!!") Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp) I just want the "quiet" devices to "wake-up" so that the switch can observe these devices and repopulate its MAC address table.)

#Mactrack plugin cacti code#

(for those reading my code, yes, my code is not listening for replies.

#Mactrack plugin cacti how to#

I've already figured out how to do this with UDP packets, but don't know how to do it with SYN packets. In order to figure out what "quiet" devices are on the network, I figured that I would send out a sweep of UDP and SYN packets to 3 major ports on every device on the subnet (23, 80, and 139) So the reality is that I will actually be shortening the age time to 60 seconds or so. I could extend this time, but the scenario also requires that the switch not report devices that aren't there. I have this scenario where the MAC address table in my switch ages out MAC addresses of devices that it hasn't heard from after 5 minutes.










Mactrack plugin cacti