![]() The first script I wrote automatically named the “flags” based on the name shown in the arp command. I put together two different phython scripts. Finally, we’ll use Hazel to monitor the “flags” and take whatever appropriate action we deem necessary. We’re then going to use a Python script that runs that arp command, processes the output, and “flags” our visible devices. We’re going to use what we learned about the Address Resolution Protocol above to see the devices join and leave our network. We want an automatic solution that identifies if a MAC address is currently visible on our network. Now that you know what you have to work with, let’s determine our desired outcome. Interface (en0): The physical network interface that the MAC was last seen on.MAC Address (e8:6:88:8b:bd:bf): The hexadecimal Ethernet hardware address of the Device. ![]() IP Address (192.168.1.97): The IP address that belongs to the MAC address.Name (my-ipad): Based on reverse DNS, you’ll see a human-readable name here, if not, you’ll just see a ?.Those entries are broken into 4 pieces of information that you may want to capture: The Address Resolution Protocol (ARP) is built into every operating system and allows you to map Ethernet MAC addresses into Internet Protocol (IP) addresses and even into human readable names (if you have reverse Domain Name Service (DNS) defined for those IP addresses). So, I turned to the built-in support that I knew would be present: arp. The main reason I gave up on that solution (which would have been perfect) is that Apple, in their infinite post-Jobs wisdom) has removed support for SNMP configurations from AirPort Utility 6.0 and has eliminated SNMP from their newer AirPort models. ![]() I started down the path of using SNMP to query the Apple AirPort Extreme he owns, but quickly gave that up. His idea was to have an application that would interrogate his wireless network to see if a specific client was associated with his Access Point. He wanted to know when his kids got home (and when they left). A friend of mine (he has a blog over here) gave me an idea for a program.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |