Skip to content

nathanscott/traffic_control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ~

About

Airport Extreme snmp details

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages