Apple airport base station monitor

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 

About dre

I like all kinds of food.
This entry was posted in OS X, scripts. Bookmark the permalink.

4 Responses to Apple airport base station monitor

  1. Pingback: Macpro – Håll koll på din Airport-station med gratisprogram - bloggen for Macproffs sedan 2004

Leave a Reply