{"id":2058,"date":"2008-02-27T19:30:36","date_gmt":"2008-02-28T02:30:36","guid":{"rendered":"http:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/"},"modified":"2008-02-27T19:30:36","modified_gmt":"2008-02-28T02:30:36","slug":"airport-command-line-utility","status":"publish","type":"post","link":"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/","title":{"rendered":"airport command line utility"},"content":{"rendered":"<p>At<\/p>\n<p><code><br \/>\n\/System\/Library\/PrivateFrameworks\/Apple80211.framework\/Versions\/Current\/Resources\/airport<br \/>\n<\/code><\/p>\n<p>There is a very neat airport command line program. Starting it with &#8211;help will show you the possible options.<br \/>\nI like specially the -I option to show me the actual strenght of the signal etc in numbers. Not some bars. It also<br \/>\nseems to accurate more precisly what is going on. I wrote a quick perl wrapper to give me the outputs I care about<br \/>\nas a one line:<\/p>\n<p><code><br \/>\n#!\/usr\/bin\/perl<\/p>\n<p>#airport usually is in \/System\/Library\/PrivateFrameworks\/Apple80211.framework\/Versions\/Current\/Resources<br \/>\nuse strict;<br \/>\nmy $sleep = $ARGV[0] || 3;<\/p>\n<p>my %trans = (<br \/>\n        \"commQuality\" , \"cQ\",<br \/>\n        \"rawQuality\" , \"rQ\",<br \/>\n        \"avgSignalLevel\" , \"sL\" ,<br \/>\n        \"avgNoiseLevel\" , \"nL\" ,<br \/>\n        \"lastTxRate\" , \"lR\" ,<br \/>\n        \"maxRate\" , \"mR\" ,<br \/>\n        \"Security\" , \"sec:\"<br \/>\n        );<br \/>\nwhile (1){<br \/>\n        #print \"x\\n\";<br \/>\n        foreach my $o (`airport -I`){<br \/>\n                #print \"y $o\\n\";<br \/>\n                $o =~ \/\\s*([^\\:]+): (.*)\/;<br \/>\n                my $k = $1;<br \/>\n                my $v = $2;<br \/>\n                if ($trans{$k}){<br \/>\n                        print \"$trans{$k} $v \";<br \/>\n                        }<br \/>\n                #print \"$k -> $v\\n\";<br \/>\n                }<br \/>\n        print \"\\n\";<br \/>\n        sleep ($sleep);<br \/>\n        }<br \/>\n<\/code><\/p>\n<p>The other helpful option is the -s one: It scans all base stations it can find and displays them. Much better than the gui menu.<\/p>\n<p>Moving this program in the bin folder would be a nice move by apple. Giving it a man page would even be better. But the way it is is certainly much better than nothing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At \/System\/Library\/PrivateFrameworks\/Apple80211.framework\/Versions\/Current\/Resources\/airport There is a very neat airport command line program. Starting it with &#8211;help will show you the possible options. I like specially the -I option to show me the actual strenght of the signal etc in numbers. Not some bars. It also seems to accurate more precisly what is going on. I wrote [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,29],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>airport command line utility - Andreas Wacker<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"airport command line utility - Andreas Wacker\" \/>\n<meta property=\"og:description\" content=\"At \/System\/Library\/PrivateFrameworks\/Apple80211.framework\/Versions\/Current\/Resources\/airport There is a very neat airport command line program. Starting it with &#8211;help will show you the possible options. I like specially the -I option to show me the actual strenght of the signal etc in numbers. Not some bars. It also seems to accurate more precisly what is going on. I wrote [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/\" \/>\n<meta property=\"og:site_name\" content=\"Andreas Wacker\" \/>\n<meta property=\"article:published_time\" content=\"2008-02-28T02:30:36+00:00\" \/>\n<meta name=\"author\" content=\"1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@_andreaswacker\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"1\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/\"},\"author\":{\"name\":\"1\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/691b5221b886b3b09742e476a16e5631\"},\"headline\":\"airport command line utility\",\"datePublished\":\"2008-02-28T02:30:36+00:00\",\"dateModified\":\"2008-02-28T02:30:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/\"},\"wordCount\":133,\"publisher\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a\"},\"articleSection\":[\"Apple\",\"OSX\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/\",\"url\":\"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/\",\"name\":\"airport command line utility - Andreas Wacker\",\"isPartOf\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#website\"},\"datePublished\":\"2008-02-28T02:30:36+00:00\",\"dateModified\":\"2008-02-28T02:30:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.andreaswacker.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"airport command line utility\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#website\",\"url\":\"https:\/\/www.andreaswacker.com\/blog\/\",\"name\":\"Andreas Wacker\",\"description\":\"weblog\",\"publisher\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.andreaswacker.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a\",\"name\":\"Andreas Wacker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.andreaswacker.com\/blog\/wp-content\/uploads\/2024\/06\/awfavion.png\",\"contentUrl\":\"https:\/\/www.andreaswacker.com\/blog\/wp-content\/uploads\/2024\/06\/awfavion.png\",\"width\":248,\"height\":248,\"caption\":\"Andreas Wacker\"},\"logo\":{\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.andreaswacker.com\",\"https:\/\/www.instagram.com\/_andreaswacker\/\",\"https:\/\/x.com\/_andreaswacker\",\"https:\/\/www.youtube.com\/channel\/UCWwFtVC_HATVr-R5EiNmhHw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/691b5221b886b3b09742e476a16e5631\",\"name\":\"1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"1\"},\"url\":\"https:\/\/www.andreaswacker.com\/blog\/author\/1\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"airport command line utility - Andreas Wacker","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/","og_locale":"en_US","og_type":"article","og_title":"airport command line utility - Andreas Wacker","og_description":"At \/System\/Library\/PrivateFrameworks\/Apple80211.framework\/Versions\/Current\/Resources\/airport There is a very neat airport command line program. Starting it with &#8211;help will show you the possible options. I like specially the -I option to show me the actual strenght of the signal etc in numbers. Not some bars. It also seems to accurate more precisly what is going on. I wrote [&hellip;]","og_url":"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/","og_site_name":"Andreas Wacker","article_published_time":"2008-02-28T02:30:36+00:00","author":"1","twitter_card":"summary_large_image","twitter_site":"@_andreaswacker","twitter_misc":{"Written by":"1","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/#article","isPartOf":{"@id":"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/"},"author":{"name":"1","@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/691b5221b886b3b09742e476a16e5631"},"headline":"airport command line utility","datePublished":"2008-02-28T02:30:36+00:00","dateModified":"2008-02-28T02:30:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/"},"wordCount":133,"publisher":{"@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a"},"articleSection":["Apple","OSX"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/","url":"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/","name":"airport command line utility - Andreas Wacker","isPartOf":{"@id":"https:\/\/www.andreaswacker.com\/blog\/#website"},"datePublished":"2008-02-28T02:30:36+00:00","dateModified":"2008-02-28T02:30:36+00:00","breadcrumb":{"@id":"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.andreaswacker.com\/blog\/2008\/02\/27\/airport-command-line-utility\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.andreaswacker.com\/blog\/"},{"@type":"ListItem","position":2,"name":"airport command line utility"}]},{"@type":"WebSite","@id":"https:\/\/www.andreaswacker.com\/blog\/#website","url":"https:\/\/www.andreaswacker.com\/blog\/","name":"Andreas Wacker","description":"weblog","publisher":{"@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.andreaswacker.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/c1f46a348eafeb52ee54843dce18442a","name":"Andreas Wacker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.andreaswacker.com\/blog\/wp-content\/uploads\/2024\/06\/awfavion.png","contentUrl":"https:\/\/www.andreaswacker.com\/blog\/wp-content\/uploads\/2024\/06\/awfavion.png","width":248,"height":248,"caption":"Andreas Wacker"},"logo":{"@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.andreaswacker.com","https:\/\/www.instagram.com\/_andreaswacker\/","https:\/\/x.com\/_andreaswacker","https:\/\/www.youtube.com\/channel\/UCWwFtVC_HATVr-R5EiNmhHw"]},{"@type":"Person","@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/691b5221b886b3b09742e476a16e5631","name":"1","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.andreaswacker.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"1"},"url":"https:\/\/www.andreaswacker.com\/blog\/author\/1\/"}]}},"_links":{"self":[{"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/posts\/2058"}],"collection":[{"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/comments?post=2058"}],"version-history":[{"count":0,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/posts\/2058\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/media?parent=2058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/categories?post=2058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.andreaswacker.com\/blog\/wp-json\/wp\/v2\/tags?post=2058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}