Traffic Control
Helps you monitor your Airport Extreme traffic.
Features
Spits out some basic snmp info including:
- Number of wireless clients
- Number of dhcp clients
- Uptime
Get network client information including:
- Mac Address
- IP Address
- Time associated
- Wireless strength
Example
airport = TrafficControl::Airport.new "airport.local", "public"</code>
<code>puts "There are around #{airport.settings["wirelessNumber"]} folk#{"s" unless airport.settings["wirelessNumber"] == 1} on your wifi"
puts airport.clients.inspect</code>
<code>airport.clients.each do |client, attributes|
puts "Details for client with MAC address #{client}:"
attributes.each do |name, details|
puts "#{name}: #{details}"
end
puts "--\n"
end
Requirements
- SNMPwalk
- Possibly the Airport MIB (see below)
Installing the Airport MIB
cd /usr/share/snmp/mibs
sudo curl -L -O http://supportdownload.apple.com/download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/Mac_OS_X/downloads/061-0652.20030619.5ibjt/airport-extreme.mib
cd ~