Airport Extreme snmp details
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
.gitignore
Gemfile
README.textile
Rakefile
traffic_control.gemspec

README.textile

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"

puts "There are around #{airport.settings["wirelessNumber"]} folk#{"s" unless airport.settings["wirelessNumber"] == 1} on your wifi"
puts airport.clients.inspect

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 ~