Download.

{1} andre@dude [~] % airport -h
Program Options:
      -h           print this help
      -d           output in comma delimited format
                   (base station ID lines are designated by '*')
      -v           verbose mode
                   (stacks up to 3 times)
      --encode     Specify plaintext to retrieve the base64 encoding.
                   This should be used to store the SNMP community name near
                   the top of this script.

Output Field Specification
   Each of these letters represents a piece of available information about a
   wireless device associated to the base station. The order in which the tokens
   are specified is used as the output field order. Do not prefix these tokens
   with "-" or "--".
       n       wirelessPhysAddress
       y       wirelessType
       s       wirelessStrength
       r       wirelessRate
       o       wirelessNoise
       t       wirelessNumTX
       e       wirelessNumRX
       T       wirelessNumTXErrors
       E       wirelessNumRXErrors
       a       wirelessTimeAssociated
       i       wirelessLastRefreshTime

Default output is equivalent to "nysroai".

Examples:
Debug mode with default fields:
airport -v

Comma-delimited mode with field specification:
airport -d nsroteTE

Sample run (polling two base stations in a wds configuration):

{19} andre@donk [~] % airport
10.0.1.3 (dreness) WLAN clients: 2  DHCP clients: 0
  Name or Address     Type   Str    Rate   Noise   Connected    Idle
  boop                wds    -66    54     -91     3 23:58:56   0  0:00:00
  dude                sta    -81    5      -94     3 23:34:03   0  0:20:22
10.0.1.1 (Boop) WLAN clients: 7  DHCP clients: 8
  Name or Address     Type   Str    Rate   Noise   Connected    Idle
  peperoni            sta    -85    5      -98     3  5:05:08   0  0:00:00
  dude                sta    -57    54     -93     3  5:04:49   0  0:00:00
  dreness             wds    -56    54     -88     3  5:05:08   0  0:00:00
  hughe               sta    -50    27     -90     3  5:04:21   0  0:00:00
  pandabank           sta    -72    24     -100    3  5:04:15   0  0:00:17
  00 11 24 ED 4A E5   sta    -63    54     -96     3  5:04:21   0  0:00:00 

3 Responses to “Apple airport base station monitor”

Thanks for this, it will be useful.

Just one thing, as I didn’t have the MIB, you proposed me to download it, unfortunately if you type what you recommand, it won’t work as what you’re gonna download is a web page saying the MIB has moved there :

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

Regards,

Right you are, good catch :)

I updated the script to fix the URL, and I also added an –installmib method to ease the process a bit.

Cheers

Thanks

Something to say?

You must be logged in to post a comment.