New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Parser: airport -I #46
Comments
Hey there - thanks for the request! What program should I install on my Mac to get airport? Is it a brew install? |
I think it's built in to OS X: If you don't have it there, I'll see what package I used to install it. |
Ah yes, I see it there. Cool - looks pretty simple to parse so I'll add it to the next release. |
Now supporting airport -I
airport -s
|
Awesome, thank you!
…Sent from my iPhone
On Mar 11, 2020, at 1:05 AM, Kelly Brazil ***@***.***> wrote:
Now supporting airport -I and airport -s:
airport -I
$ airport -I | jc --airport -p
{
"agrctlrssi": -66,
"agrextrssi": 0,
"agrctlnoise": -90,
"agrextnoise": 0,
"state": "running",
"op_mode": "station",
"lasttxrate": 195,
"maxrate": 867,
"lastassocstatus": 0,
"802_11_auth": "open",
"link_auth": "wpa2-psk",
"bssid": "3c:37:86:15:ad:f9",
"ssid": "SnazzleDazzle",
"mcs": 0,
"channel": "48,80"
}
airport -s
$ airport -s | jc --airport-s -p
[
{
"ssid": "DIRECT-4A-HP OfficeJet 3830",
"bssid": "00:67:eb:2a:a7:3b",
"rssi": -90,
"channel": "6",
"ht": true,
"cc": "--",
"security": [
"WPA2(PSK/AES/AES)"
]
},
{
"ssid": "Latitude38",
"bssid": "c0:ff:d5:d2:7a:f3",
"rssi": -85,
"channel": "11",
"ht": true,
"cc": "US",
"security": [
"WPA2(PSK/AES/AES)"
]
},
{
"ssid": "xfinitywifi",
"bssid": "6e:e3:0e:b8:45:99",
"rssi": -83,
"channel": "11",
"ht": true,
"cc": "US",
"security": [
"NONE"
]
},
...
]
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
You got it! Still working on some other things but this should go out in the 1.9.0 release soon. |
You should be able to do a Happy parsing! |
It would be nice to have a parser for the Mac OSX 'airport' command. Output of 'airport -I' is:
agrCtlRSSI: -73
agrExtRSSI: 0
agrCtlNoise: -92
agrExtNoise: 0
state: running
op mode: station
lastTxRate: 176
maxRate: 867
lastAssocStatus: 0
802.11 auth: open
link auth: wpa2-psk
BSSID: 58:d9:d5:3:40:35
SSID: Tenda_034030_5G
MCS: 2
channel: 36,80
The text was updated successfully, but these errors were encountered: