Giter Site home page Giter Site logo

kellyjonbrazil / jc Goto Github PK

View Code? Open in Web Editor NEW
7.6K 26.0 193.0 13.94 MB

CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.

License: MIT License

Shell 1.06% Python 98.94%
parsers json linux command-line serialize convert scripting shell-scripting bash cli

jc's People

Contributors

anekos avatar chriscroome avatar don-rumata avatar duelafn avatar fiskhest avatar georgettica avatar hervisdaubeny avatar hugovk avatar jon-rd avatar jwilk avatar kellyjonbrazil avatar kianmeng avatar lyterk avatar muescha avatar papparapa avatar pbrezina avatar pettai avatar philippeitis avatar pschmitt avatar qwerty258 avatar r-darwish avatar rasheed-rd avatar shaikustin avatar solomonleang avatar sumezulike avatar tzeikob avatar viktory683 avatar villesinisalo avatar vrince avatar wigust avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jc's Issues

ls colors

modern ls colors the output for different types of files and this can produce something like this :

{ "filename": "\u001b[01;34mtemplate\u001b[0m", "flags": "drwxr-xr-x", "links": 10, "owner": "user", "group": "staff", "size": 320, "date": "Jul 29 16:55" },

It would be nice if jc could strip off escape sequences of colors in ls output .

Feature request: iw dev DEVICE scan support

Following up on the reddit discussion:

I recently implemented something similar in shell, specifically for the iw dev DEVICE scan command (where DEVICE is a wireless nic).

iw's output is notoriously painful to parse but that's no surprise since there's a clear warning when running the command that its output shouldn't be "screen scraped".
In reality I haven't seen it change much over the years.

Here's an example of what iw dev DEVICE scan returns:

iw dev wlan0 scan
BSS ac:22:05:db:4d:5b(on wlan0)
	TSF: 212106552475 usec (2d, 10:55:06)
	freq: 2412
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime RadioMeasure (0x1411)
	signal: -57.00 dBm
	last seen: 3520 ms ago
	Information elements from Probe Response frame:
	SSID: Hoeheitsgebiet
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 1
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 1
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	BSS Load:
		 * station count: 1
		 * channel utilisation: 103/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: 327fd200-1dd2-11b2-8601-8e4aa01a9d4a
		 * Manufacturer: Ralink Technology, Corp.
		 * Model: Ralink Wireless Access Point
		 * Model Number: RT2860
		 * Serial Number: 12345678
		 * Primary Device Type: 6-0050f204-1
		 * Device name: RalinkAPS
		 * Config methods:
		 * RF Bands: 0x1
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS 1c:b0:44:75:42:a5(on wlan0)
	TSF: 212108020750 usec (2d, 10:55:08)
	freq: 2457
	beacon interval: 100 TUs
	capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
	signal: -70.00 dBm
	last seen: 2050 ms ago
	Information elements from Probe Response frame:
	SSID: o2-WLAN38
	Supported rates: 9.0 18.0 36.0 54.0 1.0* 2.0 5.5 11.0 
	DS Parameter set: channel 10
	Country: DE	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	Power constraint: 0 dB
	ERP: <no flags>
	HT capabilities:
		Capabilities: 0x2c
			HT20
			SM Power Save disabled
			RX HT20 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 32767 bytes (exponent: 0x002)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	RSN:	 * Version: 1
		 * Group cipher: CCMP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC MFP-capable (0x0080)
		 * 0 PMKIDs
		 * Group mgmt cipher suite: AES-128-CMAC
	Extended supported rates: 6.0 12.0 24.0 48.0 
	HT operation:
		 * primary channel: 10
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Overlapping BSS scan params:
		 * passive dwell: 20 TUs
		 * active dwell: 10 TUs
		 * channel width trigger scan interval: 300 s
		 * scan passive total per channel: 200 TUs
		 * scan active total per channel: 20 TUs
		 * BSS width channel transition delay factor: 5
		 * OBSS Scan Activity Threshold: 100.00 %
	Extended capabilities: HT Information Exchange Supported
	WMM:	 * Parameter version 1
		 * u-APSD
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: b0493afc-202d-11b2-8a5b-1cb0447542a5
		 * Manufacturer: Askey
		 * Model: o2 HomeBox
		 * Model Number: 6741
		 * Serial Number: A804016507-009096
		 * Primary Device Type: 6-0050f204-1
		 * Device name: o2 HomeBox 6741
		 * Config methods: Keypad
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS 34:2c:c4:34:3b:95(on wlan0)
	TSF: 212096913717 usec (2d, 10:54:56)
	freq: 2412
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime RadioMeasure (0x1411)
	signal: -77.00 dBm
	last seen: 13160 ms ago
	Information elements from Probe Response frame:
	SSID: Medusa_13
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 1
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 1
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 0
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	BSS Load:
		 * station count: 0
		 * channel utilisation: 90/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: 314ea500-1dd2-11b2-8601-8e4aa01a9d4a
		 * Manufacturer: Ralink Technology, Corp.
		 * Model: Ralink Wireless Access Point
		 * Model Number: RT2860
		 * Serial Number: 12345678
		 * Primary Device Type: 6-0050f204-1
		 * Device name: RalinkAPS
		 * Config methods:
		 * RF Bands: 0x1
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS ac:22:05:e6:ff:41(on wlan0)
	TSF: 212108270373 usec (2d, 10:55:08)
	freq: 2462
	beacon interval: 100 TUs
	capability: ESS Privacy RadioMeasure (0x1011)
	signal: -41.00 dBm
	last seen: 1750 ms ago
	Information elements from Probe Response frame:
	SSID: UPCCDB29F5
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 11
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 11
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	BSS Load:
		 * station count: 3
		 * channel utilisation: 87/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: 314ea500-1dd2-11b2-8601-8e4aa01a9d4a
		 * Manufacturer: Ralink Technology, Corp.
		 * Model: Ralink Wireless Access Point
		 * Model Number: RT2860
		 * Serial Number: 12345678
		 * Primary Device Type: 6-0050f204-1
		 * Device name: RalinkAPS
		 * Config methods:
		 * RF Bands: 0x1
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS ac:22:05:e6:ff:24(on wlan0) -- associated
	TSF: 212107576616 usec (2d, 10:55:07)
	freq: 5180
	beacon interval: 100 TUs
	capability: ESS Privacy ShortPreamble SpectrumMgmt ShortSlotTime RadioMeasure (0x1531)
	signal: -30.00 dBm
	last seen: 130 ms ago
	Information elements from Probe Response frame:
	SSID: UPCCDB29F5
	Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 
	DS Parameter set: channel 36
	Power constraint: 3 dB
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	HT capabilities:
		Capabilities: 0x6f
			RX LDPC
			HT20/HT40
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-23, 32
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 36
		 * secondary channel offset: above
		 * STA channel width: any
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Extended capabilities: 6
	VHT capabilities:
		VHT Capabilities (0x33827930):
			Max MPDU length: 3895
			Supported Channel Width: neither 160 nor 80+80
			RX LDPC
			short GI (80 MHz)
			SU Beamformer
			SU Beamformee
			RX antenna pattern consistency
			TX antenna pattern consistency
		VHT RX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: not supported
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT RX highest supported: 0 Mbps
		VHT TX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: not supported
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT TX highest supported: 0 Mbps
	VHT operation:
		 * channel width: 1 (80 MHz)
		 * center freq segment 1: 42
		 * center freq segment 2: 0
		 * VHT basic MCS set: 0xffc0
	BSS Load:
		 * station count: 3
		 * channel utilisation: 35/255
		 * available admission capacity: 30000 [*32us]
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP
		 * Authentication suites: PSK
	WMM:	 * Parameter version 1
		 * u-APSD
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: 314ea500-1dd2-11b2-8601-8e4aa01a9d4a
		 * Manufacturer: Marvell
		 * Model: WAP
		 * Model Number: 123
		 * Serial Number: 12345
		 * Primary Device Type: 6-0050f204-1
		 * Device name: 5G wireless AP
		 * Config methods:
		 * RF Bands: 0x2
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS a8:d3:f7:96:10:69(on wlan0)
	TSF: 212107440363 usec (2d, 10:55:07)
	freq: 2442
	beacon interval: 100 TUs
	capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
	signal: -81.00 dBm
	last seen: 2630 ms ago
	Information elements from Probe Response frame:
	SSID: o2-WLAN34
	Supported rates: 9.0 18.0 36.0 54.0 1.0* 2.0 5.5 11.0 
	DS Parameter set: channel 7
	Country: DE	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	Power constraint: 0 dB
	ERP: <no flags>
	HT capabilities:
		Capabilities: 0x2c
			HT20
			SM Power Save disabled
			RX HT20 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 32767 bytes (exponent: 0x002)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	RSN:	 * Version: 1
		 * Group cipher: CCMP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	Extended supported rates: 6.0 12.0 24.0 48.0 
	HT operation:
		 * primary channel: 7
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: nonmember
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Overlapping BSS scan params:
		 * passive dwell: 20 TUs
		 * active dwell: 10 TUs
		 * channel width trigger scan interval: 300 s
		 * scan passive total per channel: 200 TUs
		 * scan active total per channel: 20 TUs
		 * BSS width channel transition delay factor: 5
		 * OBSS Scan Activity Threshold: 100.00 %
	Extended capabilities: HT Information Exchange Supported
	WMM:	 * Parameter version 1
		 * u-APSD
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: 4e9bd57c-8ebe-46d8-aa04-cdd3994f7288
		 * Manufacturer: Arcadyan
		 * Model: o2 HomeBox 6441
		 * Model Number: IAD 6441
		 * Serial Number: D512146595
		 * Primary Device Type: 6-0050f204-1
		 * Device name: D512146595-A8D3F7
		 * Config methods:
		 * RF Bands: 0x3
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS 54:fa:3e:87:1f:93(on wlan0)
	TSF: 212108698335 usec (2d, 10:55:08)
	freq: 2472
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime APSD (0x0c11)
	signal: -72.00 dBm
	last seen: 1310 ms ago
	Information elements from Probe Response frame:
	SSID: moin moin
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 13
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	HT capabilities:
		Capabilities: 0x1ec
			HT20
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: No restriction (0x00)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 13
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	WMM:	 * Parameter version 1
		 * u-APSD
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	BSS Load:
		 * station count: 1
		 * channel utilisation: 26/255
		 * available admission capacity: 31250 [*32us]
	Extended capabilities: HT Information Exchange Supported
	Country: DE	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: bc329e00-1dd8-11b2-8601-54fa3e871f93
		 * Manufacturer: Celeno Communication, Inc.
		 * Model: Celeno Wireless AP 2.4G
		 * Model Number: CL1800
		 * Serial Number: 12345678
		 * Primary Device Type: 6-0050f204-1
		 * Device name: CelenoAP2.4G
		 * Config methods: Display, PBC, Keypad
		 * RF Bands: 0x1
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS ae:22:15:db:4d:5b(on wlan0)
	TSF: 212106562854 usec (2d, 10:55:06)
	freq: 2412
	beacon interval: 100 TUs
	capability: ESS ShortSlotTime RadioMeasure (0x1401)
	signal: -57.00 dBm
	last seen: 3510 ms ago
	Information elements from Probe Response frame:
	SSID: Vodafone Hotspot
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 1
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 1
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	BSS Load:
		 * station count: 1
		 * channel utilisation: 103/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
BSS 90:5c:44:d1:34:2f(on wlan0)
	TSF: 212107263738 usec (2d, 10:55:07)
	freq: 2437
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime RadioMeasure (0x1411)
	signal: -53.00 dBm
	last seen: 2810 ms ago
	SSID: UPC5144FAF
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 6
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 6
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: non-HT mixed
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	BSS Load:
		 * station count: 1
		 * channel utilisation: 109/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: 30b60e80-1dd2-11b2-8601-8e4aa01a9d4a
		 * Manufacturer: Ralink Technology, Corp.
		 * Model: Ralink Wireless Access Point
		 * Model Number: RT2860
		 * Serial Number: 12345678
		 * Primary Device Type: 6-0050f204-1
		 * Device name: RalinkAPS
		 * Config methods:
		 * RF Bands: 0x1
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS 92:5c:14:d1:34:2f(on wlan0)
	TSF: 212107270871 usec (2d, 10:55:07)
	freq: 2437
	beacon interval: 100 TUs
	capability: ESS ShortSlotTime RadioMeasure (0x1401)
	signal: -53.00 dBm
	last seen: 2800 ms ago
	Information elements from Probe Response frame:
	SSID: Vodafone Hotspot
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 6
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 6
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: non-HT mixed
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	BSS Load:
		 * station count: 1
		 * channel utilisation: 109/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
BSS 36:2c:b4:34:3b:95(on wlan0)
	TSF: 212075883822 usec (2d, 10:54:35)
	freq: 2412
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime RadioMeasure (0x1411)
	signal: -77.00 dBm
	last seen: 13150 ms ago
	Information elements from Probe Response frame:
	SSID: Gast_Medusa_13
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 1
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 1
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 0
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	BSS Load:
		 * station count: 0
		 * channel utilisation: 94/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
BSS fe:49:2d:20:d8:21(on wlan0)
	TSF: 212080903764 usec (2d, 10:54:40)
	freq: 2412
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime (0x0411)
	signal: -67.00 dBm
	last seen: 29170 ms ago
	Information elements from Probe Response frame:
	SSID: \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
	Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 
	DS Parameter set: channel 1
	TIM: DTIM Count 1 DTIM Period 2 Bitmap Control 0x0 Bitmap[0] 0x0
	ERP: <no flags>
	RSN:	 * Version: 1
		 * Group cipher: CCMP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)
	HT capabilities:
		Capabilities: 0x1ad
			RX LDPC
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 1
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 1
		 * HT protection: no
		 * non-GF present: 0
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Extended capabilities: Extended Channel Switching
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
		 * Device name: Marion,Laura,Larissas Fire TV...
		 * Primary Device Type: 1-0050f204-9
	WMM:	 * Parameter version 1
		 * u-APSD
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	P2P:	 * Group capa: 0x25, Device capa: 0xab
		 * Unknown TLV (0x03, 6 bytes): 49 2d 20 58 21 dd
BSS 90:5c:44:db:21:48(on wlan0)
	TSF: 212077364612 usec (2d, 10:54:37)
	freq: 2462
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime RadioMeasure (0x1411)
	signal: -76.00 dBm
	last seen: 27640 ms ago
	Information elements from Probe Response frame:
	SSID: UPC614F5E5
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 11
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 11
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	BSS Load:
		 * station count: 1
		 * channel utilisation: 100/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: 314ea500-1dd2-11b2-8601-8e4aa01a9d4a
		 * Manufacturer: Ralink Technology, Corp.
		 * Model: Ralink Wireless Access Point
		 * Model Number: RT2860
		 * Serial Number: 12345678
		 * Primary Device Type: 6-0050f204-1
		 * Device name: RalinkAPS
		 * Config methods:
		 * RF Bands: 0x1
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS ae:22:15:e6:ff:41(on wlan0)
	TSF: 212108278788 usec (2d, 10:55:08)
	freq: 2462
	beacon interval: 100 TUs
	capability: ESS RadioMeasure (0x1001)
	signal: -40.00 dBm
	last seen: 1740 ms ago
	Information elements from Probe Response frame:
	SSID: Vodafone Hotspot
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 11
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 11
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	BSS Load:
		 * station count: 3
		 * channel utilisation: 87/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
BSS 34:31:c4:b8:2e:85(on wlan0)
	TSF: 212081672689 usec (2d, 10:54:41)
	freq: 2437
	beacon interval: 100 TUs
	capability: ESS Privacy ShortPreamble ShortSlotTime RadioMeasure (0x1431)
	signal: -83.00 dBm
	last seen: 28400 ms ago
	Information elements from Probe Response frame:
	SSID: Nexus
	Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0* 9.0 12.0* 18.0 
	DS Parameter set: channel 6
	TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0 (+ 1 octet)
	Country: DE	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	ERP: <no flags>
	Extended supported rates: 24.0* 36.0 48.0 54.0 
	BSS Load:
		 * station count: 13
		 * channel utilisation: 74/255
		 * available admission capacity: 0 [*32us]
	HT capabilities:
		Capabilities: 0x1ad
			RX LDPC
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 8 usec (0x06)
		HT TX/RX MCS rate indexes supported: 0-23
	HT operation:
		 * primary channel: 6
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: nonmember
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Overlapping BSS scan params:
		 * passive dwell: 20 TUs
		 * active dwell: 10 TUs
		 * channel width trigger scan interval: 300 s
		 * scan passive total per channel: 200 TUs
		 * scan active total per channel: 20 TUs
		 * BSS width channel transition delay factor: 5
		 * OBSS Scan Activity Threshold: 0.25 %
	Extended capabilities: HT Information Exchange Supported, Extended Channel Switching, TFS, WNM-Sleep Mode, TIM Broadcast, BSS Transition, 6
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * RF Bands: 0x3
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
	RSN:	 * Version: 1
		 * Group cipher: CCMP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK 00-0f-ac:8
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC MFP-capable (0x0080)
BSS 92:5c:14:db:21:48(on wlan0)
	TSF: 212098644532 usec (2d, 10:54:58)
	freq: 2462
	beacon interval: 100 TUs
	capability: ESS ShortSlotTime RadioMeasure (0x1401)
	signal: -71.00 dBm
	last seen: 11430 ms ago
	Information elements from Probe Response frame:
	SSID: Vodafone Hotspot
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 11
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 11
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	BSS Load:
		 * station count: 1
		 * channel utilisation: 111/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
BSS 9c:80:df:31:03:a4(on wlan0)
	TSF: 212082583134 usec (2d, 10:54:42)
	freq: 2467
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime (0x0411)
	signal: -87.00 dBm
	last seen: 27490 ms ago
	Information elements from Probe Response frame:
	SSID: o2-WLAN84
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 12
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: DE	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
	TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0
	ERP: Barker_Preamble_Mode
	HT capabilities:
		Capabilities: 0x106e
			HT20/HT40
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15, 32
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 12
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: 20 MHz
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Extended capabilities: HT Information Exchange Supported
	Overlapping BSS scan params:
		 * passive dwell: 20 TUs
		 * active dwell: 10 TUs
		 * channel width trigger scan interval: 300 s
		 * scan passive total per channel: 200 TUs
		 * scan active total per channel: 20 TUs
		 * BSS width channel transition delay factor: 5
		 * OBSS Scan Activity Threshold: 0.25 %
	RSN:	 * Version: 1
		 * Group cipher: CCMP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: PreAuth 1-PTKSA-RC 1-GTKSA-RC (0x0001)
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	BSS Load:
		 * station count: 768
		 * channel utilisation: 33/255
		 * available admission capacity: 4730 [*32us]
BSS 36:2c:94:34:3b:95(on wlan0)
	TSF: 212096926483 usec (2d, 10:54:56)
	freq: 2412
	beacon interval: 100 TUs
	capability: ESS ShortSlotTime RadioMeasure (0x1401)
	signal: -84.00 dBm
	last seen: 13150 ms ago
	SSID: Vodafone Hotspot
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 1
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 1
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 0
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	BSS Load:
		 * station count: 0
		 * channel utilisation: 90/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
BSS 38:43:7d:1c:95:e6(on wlan0)
	TSF: 212097695148 usec (2d, 10:54:57)
	freq: 2437
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime RadioMeasure (0x1411)
	signal: -83.00 dBm
	last seen: 12380 ms ago
	Information elements from Probe Response frame:
	SSID: UPCB45EF15
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 6
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * UUID: 30b60e80-1dd2-11b2-8601-8e4aa01a9d4a
		 * RF Bands: 0x1
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
	ERP: Barker_Preamble_Mode
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 6
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	BSS Load:
		 * station count: 1
		 * channel utilisation: 86/255
		 * available admission capacity: 31250 [*32us]
BSS 90:5c:44:db:21:33(on wlan0)
	TSF: 212107555845 usec (2d, 10:55:07)
	freq: 5180
	beacon interval: 100 TUs
	capability: ESS Privacy ShortPreamble SpectrumMgmt ShortSlotTime RadioMeasure (0x1531)
	signal: -88.00 dBm
	last seen: 2510 ms ago
	Information elements from Probe Response frame:
	SSID: UPC614F5E5
	Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 
	DS Parameter set: channel 36
	Power constraint: 3 dB
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	HT capabilities:
		Capabilities: 0x6f
			RX LDPC
			HT20/HT40
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-23, 32
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 36
		 * secondary channel offset: above
		 * STA channel width: any
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Extended capabilities: 6
	VHT capabilities:
		VHT Capabilities (0x33827930):
			Max MPDU length: 3895
			Supported Channel Width: neither 160 nor 80+80
			RX LDPC
			short GI (80 MHz)
			SU Beamformer
			SU Beamformee
			RX antenna pattern consistency
			TX antenna pattern consistency
		VHT RX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: not supported
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT RX highest supported: 0 Mbps
		VHT TX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: not supported
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT TX highest supported: 0 Mbps
	VHT operation:
		 * channel width: 1 (80 MHz)
		 * center freq segment 1: 42
		 * center freq segment 2: 0
		 * VHT basic MCS set: 0xffc0
	BSS Load:
		 * station count: 2
		 * channel utilisation: 54/255
		 * available admission capacity: 30000 [*32us]
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP
		 * Authentication suites: PSK
	WMM:	 * Parameter version 1
		 * u-APSD
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: 314ea500-1dd2-11b2-8601-8e4aa01a9d4a
		 * Manufacturer: Marvell
		 * Model: WAP
		 * Model Number: 123
		 * Serial Number: 12345
		 * Primary Device Type: 6-0050f204-1
		 * Device name: 5G wireless AP
		 * Config methods:
		 * RF Bands: 0x2
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS a8:d3:f7:96:10:6d(on wlan0)
	TSF: 212107799783 usec (2d, 10:55:07)
	freq: 5200
	beacon interval: 100 TUs
	capability: ESS Privacy SpectrumMgmt ShortSlotTime (0x0511)
	signal: -88.00 dBm
	last seen: 2260 ms ago
	Information elements from Probe Response frame:
	SSID: o2-WLAN34
	Supported rates: 6.0* 9.0 12.0* 18.0 24.0 36.0 48.0 54.0 
	DS Parameter set: channel 40
	Country: DE	Environment: Indoor/Outdoor
		Channels [36 - 36] @ 23 dBm
		Channels [40 - 40] @ 23 dBm
		Channels [44 - 44] @ 23 dBm
		Channels [48 - 48] @ 23 dBm
	Power constraint: 0 dB
	HT capabilities:
		Capabilities: 0x86f
			RX LDPC
			HT20/HT40
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 7935 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT TX/RX MCS rate indexes supported: 0-31, 33-76
	HT operation:
		 * primary channel: 40
		 * secondary channel offset: below
		 * STA channel width: any
		 * RIFS: 0
		 * HT protection: nonmember
		 * non-GF present: 1
		 * OBSS non-GF present: 1
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	WMM:	 * Parameter version 1
		 * u-APSD
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	RSN:	 * Version: 1
		 * Group cipher: CCMP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	Extended capabilities: HT Information Exchange Supported, SSID List, 6
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: 4e9bd57c-8ebe-46d8-aa04-cdd3994f7288
		 * Manufacturer: Quantenna
		 * Model: Topaz
		 * Model Number: QV840.432
		 * Serial Number: A8D3F796106D
		 * Primary Device Type: 6-0050f204-1
		 * Device name: Reference Design
		 * Config methods:
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
	VHT capabilities:
		VHT Capabilities (0x3fcb7832):
			Max MPDU length: 11454
			Supported Channel Width: neither 160 nor 80+80
			RX LDPC
			short GI (80 MHz)
			SU Beamformer
			SU Beamformee
			MU Beamformer
			+HTC-VHT
			RX antenna pattern consistency
			TX antenna pattern consistency
		VHT RX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT RX highest supported: 0 Mbps
		VHT TX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT TX highest supported: 0 Mbps
	VHT operation:
		 * channel width: 1 (80 MHz)
		 * center freq segment 1: 42
		 * center freq segment 2: 0
		 * VHT basic MCS set: 0xfffc
BSS 90:5c:44:d1:34:20(on wlan0)
	TSF: 212108016406 usec (2d, 10:55:08)
	freq: 5220
	beacon interval: 100 TUs
	capability: ESS Privacy ShortPreamble SpectrumMgmt ShortSlotTime RadioMeasure (0x1531)
	signal: -46.00 dBm
	last seen: 2060 ms ago
	Information elements from Probe Response frame:
	SSID: UPC5144FAF
	Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 
	DS Parameter set: channel 44
	Power constraint: 3 dB
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	HT capabilities:
		Capabilities: 0x6f
			RX LDPC
			HT20/HT40
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-23, 32
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 44
		 * secondary channel offset: above
		 * STA channel width: any
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Extended capabilities: 6
	VHT capabilities:
		VHT Capabilities (0x33827930):
			Max MPDU length: 3895
			Supported Channel Width: neither 160 nor 80+80
			RX LDPC
			short GI (80 MHz)
			SU Beamformer
			SU Beamformee
			RX antenna pattern consistency
			TX antenna pattern consistency
		VHT RX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: not supported
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT RX highest supported: 0 Mbps
		VHT TX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: not supported
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT TX highest supported: 0 Mbps
	VHT operation:
		 * channel width: 1 (80 MHz)
		 * center freq segment 1: 42
		 * center freq segment 2: 0
		 * VHT basic MCS set: 0xffc0
	BSS Load:
		 * station count: 1
		 * channel utilisation: 33/255
		 * available admission capacity: 30000 [*32us]
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP
		 * Authentication suites: PSK
	WMM:	 * Parameter version 1
		 * u-APSD
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: 30b60e80-1dd2-11b2-8601-8e4aa01a9d4a
		 * Manufacturer: Marvell
		 * Model: WAP
		 * Model Number: 123
		 * Serial Number: 12345
		 * Primary Device Type: 6-0050f204-1
		 * Device name: 5G wireless AP
		 * Config methods:
		 * RF Bands: 0x2
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS ac:22:05:db:4d:22(on wlan0)
	TSF: 212108018921 usec (2d, 10:55:08)
	freq: 5220
	beacon interval: 100 TUs
	capability: ESS Privacy ShortPreamble SpectrumMgmt ShortSlotTime RadioMeasure (0x1531)
	signal: -68.00 dBm
	last seen: 2020 ms ago
	Information elements from Probe Response frame:
	SSID: Hoeheitsgebiet
	Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 
	DS Parameter set: channel 44
	Power constraint: 3 dB
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	HT capabilities:
		Capabilities: 0x6f
			RX LDPC
			HT20/HT40
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-23, 32
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 44
		 * secondary channel offset: above
		 * STA channel width: any
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Extended capabilities: 6
	VHT capabilities:
		VHT Capabilities (0x33827930):
			Max MPDU length: 3895
			Supported Channel Width: neither 160 nor 80+80
			RX LDPC
			short GI (80 MHz)
			SU Beamformer
			SU Beamformee
			RX antenna pattern consistency
			TX antenna pattern consistency
		VHT RX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: not supported
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT RX highest supported: 0 Mbps
		VHT TX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: not supported
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT TX highest supported: 0 Mbps
	VHT operation:
		 * channel width: 1 (80 MHz)
		 * center freq segment 1: 42
		 * center freq segment 2: 0
		 * VHT basic MCS set: 0xffc0
	BSS Load:
		 * station count: 4
		 * channel utilisation: 43/255
		 * available admission capacity: 30000 [*32us]
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP
		 * Authentication suites: PSK
	WMM:	 * Parameter version 1
		 * u-APSD
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: 327fd200-1dd2-11b2-8601-8e4aa01a9d4a
		 * Manufacturer: Marvell
		 * Model: WAP
		 * Model Number: 123
		 * Serial Number: 12345
		 * Primary Device Type: 6-0050f204-1
		 * Device name: 5G wireless AP
		 * Config methods:
		 * RF Bands: 0x2
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS 54:67:51:2c:3d:0a(on wlan0)
	TSF: 212108254184 usec (2d, 10:55:08)
	freq: 2462
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime RadioMeasure (0x1411)
	signal: -80.00 dBm
	last seen: 1820 ms ago
	Information elements from Probe Response frame:
	SSID: UPC956E146
	Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 
	DS Parameter set: channel 11
	ERP: Barker_Preamble_Mode
	Extended supported rates: 6.0 12.0 24.0 48.0 
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 20 dBm
	HT capabilities:
		Capabilities: 0x1ac
			HT20
			SM Power Save disabled
			RX HT20 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 11
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 0
		 * HT protection: no
		 * non-GF present: 0
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	WPA:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
	RSN:	 * Version: 1
		 * Group cipher: TKIP
		 * Pairwise ciphers: TKIP CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	Extended capabilities: HT Information Exchange Supported, BSS Transition
	BSS Load:
		 * station count: 0
		 * channel utilisation: 93/255
		 * available admission capacity: 31250 [*32us]
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	Country: EU	Environment: Indoor/Outdoor
		Channels [1 - 13] @ 16 dBm
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: 314ea500-1dd2-11b2-8601-8e4aa01a9d4a
		 * Manufacturer: Ralink Technology, Corp.
		 * Model: Ralink Wireless Access Point
		 * Model Number: RT2860
		 * Serial Number: 12345678
		 * Primary Device Type: 6-0050f204-1
		 * Device name: RalinkAPS
		 * Config methods:
		 * RF Bands: 0x1
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS 74:31:70:75:f1:e2(on wlan0)
	TSF: 212098649788 usec (2d, 10:54:58)
	freq: 2462
	beacon interval: 100 TUs
	capability: ESS Privacy ShortSlotTime (0x0411)
	signal: -80.00 dBm
	last seen: 11420 ms ago
	Information elements from Probe Response frame:
	SSID: WLAN-75F122
	Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 
	DS Parameter set: channel 11
	ERP: <no flags>
	ERP D4.0: <no flags>
	RSN:	 * Version: 1
		 * Group cipher: CCMP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
	Extended supported rates: 6.0 9.0 12.0 48.0 
	HT capabilities:
		Capabilities: 0x186c
			HT20
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 7935 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT RX MCS rate indexes supported: 0-15
		HT TX MCS rate indexes are undefined
	HT operation:
		 * primary channel: 11
		 * secondary channel offset: no secondary
		 * STA channel width: 20 MHz
		 * RIFS: 1
		 * HT protection: no
		 * non-GF present: 1
		 * OBSS non-GF present: 0
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	Overlapping BSS scan params:
		 * passive dwell: 20 TUs
		 * active dwell: 10 TUs
		 * channel width trigger scan interval: 300 s
		 * scan passive total per channel: 200 TUs
		 * scan active total per channel: 20 TUs
		 * BSS width channel transition delay factor: 5
		 * OBSS Scan Activity Threshold: 0.25 %
	Extended capabilities: HT Information Exchange Supported
	WMM:	 * Parameter version 1
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Selected Registrar: 0x0
		 * Response Type: 3 (AP)
		 * UUID: 00000000-0000-0003-0000-74317075f1e2
		 * Manufacturer: Corporation
		 * Model: VGV8539JW
		 * Model Number: 1.47.000
		 * Serial Number: J144024542
		 * Primary Device Type: 6-0050f204-1
		 * Device name: Wireless Router(WFA)
		 * Config methods: Label, PBC
		 * RF Bands: 0x3
BSS 1c:b0:44:75:42:a8(on wlan0)
	TSF: 212108018214 usec (2d, 10:55:08)
	freq: 5220
	beacon interval: 100 TUs
	capability: ESS Privacy SpectrumMgmt ShortSlotTime (0x0511)
	signal: -89.00 dBm
	last seen: 2060 ms ago
	SSID: o2-WLAN38
	Supported rates: 6.0* 9.0 12.0* 18.0 24.0 36.0 48.0 54.0 
	DS Parameter set: channel 44
	BSS Load:
		 * station count: 5
		 * channel utilisation: 55/255
		 * available admission capacity: 65535 [*32us]
	Country: DE	Environment: Indoor/Outdoor
		Channels [36 - 36] @ 23 dBm
		Channels [40 - 40] @ 23 dBm
		Channels [44 - 44] @ 23 dBm
		Channels [48 - 48] @ 23 dBm
	Power constraint: 0 dB
	HT capabilities:
		Capabilities: 0x86f
			RX LDPC
			HT20/HT40
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 7935 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 4 usec (0x05)
		HT TX/RX MCS rate indexes supported: 0-31, 33-76
	HT operation:
		 * primary channel: 44
		 * secondary channel offset: above
		 * STA channel width: any
		 * RIFS: 0
		 * HT protection: nonmember
		 * non-GF present: 1
		 * OBSS non-GF present: 1
		 * dual beacon: 0
		 * dual CTS protection: 0
		 * STBC beacon: 0
		 * L-SIG TXOP Prot: 0
		 * PCO active: 0
		 * PCO phase: 0
	WMM:	 * Parameter version 1
		 * u-APSD
		 * BE: CW 15-1023, AIFSN 3
		 * BK: CW 15-1023, AIFSN 7
		 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
		 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
	RSN:	 * Version: 1
		 * Group cipher: CCMP
		 * Pairwise ciphers: CCMP
		 * Authentication suites: PSK
		 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC MFP-capable (0x0080)
		 * 0 PMKIDs
		 * Group mgmt cipher suite: AES-128-CMAC
	Extended capabilities: HT Information Exchange Supported, BSS Transition, SSID List, 6
	WPS:	 * Version: 1.0
		 * Wi-Fi Protected Setup State: 2 (Configured)
		 * Response Type: 3 (AP)
		 * UUID: b0493afc-202d-11b2-8a5b-1cb0447542a5
		 * Manufacturer: Askey
		 * Model: o2 HomeBox
		 * Model Number: 6741
		 * Serial Number: 1CB0447542A8
		 * Primary Device Type: 6-0050f204-1
		 * Device name: o2 HomeBox 6741
		 * Config methods: Display
		 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
	VHT capabilities:
		VHT Capabilities (0x3fcb7832):
			Max MPDU length: 11454
			Supported Channel Width: neither 160 nor 80+80
			RX LDPC
			short GI (80 MHz)
			SU Beamformer
			SU Beamformee
			MU Beamformer
			+HTC-VHT
			RX antenna pattern consistency
			TX antenna pattern consistency
		VHT RX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT RX highest supported: 0 Mbps
		VHT TX MCS set:
			1 streams: MCS 0-9
			2 streams: MCS 0-9
			3 streams: MCS 0-9
			4 streams: MCS 0-9
			5 streams: not supported
			6 streams: not supported
			7 streams: not supported
			8 streams: not supported
		VHT TX highest supported: 0 Mbps
	VHT operation:
		 * channel width: 1 (80 MHz)
		 * center freq segment 1: 42
		 * center freq segment 2: 0
		 * VHT basic MCS set: 0xfffc

tests is installing in global site-packages

Unit tests are being installed as tests in the global site-packages which can conflict with another tool called tests. Need to either exclude the test package altogether or move tests under the jc package directory.

Parsing numbers

I'm considering using jc in NGS - ngs-lang/ngs#316

I have seen in the readme that numbers are returned as strings. From my perspective this semantically incorrect and precludes usage of jc in NGS.

Is this by design or is it considered a bug in jc?

make the dependencies optionnal (yaml, xml and syntax highlighting)

Hello,

When I discovered jc I thought "Wow so many "command to json" parsers ready to use that I don't have time to make by my own".

For me, the main interest of jc is to be able to process text from command line output and get the result on json.
You have dependencies on syntax highlighting, yaml and xml.

In my case, jc for now is only available for debian in testing or unstable branches and comes with theses mandatory depedencies.
I hope to be able to get jc without dependencies (except python it self, of course).
I can try to contact the debian's jc maitainer to change from mandatory to optional dependencies,
but jc it self should be able to deals with missing dependencies.

I search where dependencies are required.
if I'm not wrong:

  • yaml is only used for jc --yaml
  • xml is only used for jc --xml
  • pygments is use at the cli.py

Do you think is it possible to make them optionnal ?

  • in cli.py Trying to import pygments if it's fail/not available, just disable the color/highlighting stuff ?
  • for yaml and xml, try to import, if it's fail then raise an error message ?

jc is a beautifull util to parse text from command line to json.
There a plenty other utils to convert yaml to json or xml to json.

I hope to be able to drop the yaml/xml/color stuff to get back to the main power of jc : parsing text.

I hope you will understand my point of view.
Best Regards,

more modular parsers ?

Hello it's me again! :-)

I'm using jc 1.14.3 provided by debian (10) stable.

  • I took the rpm_qi.py file, injected it into my /usr/lib/python3/dist-packages/jc/parsers/.
  • jc --rpm_qi < sample didn't recognize the parser
  • I edited the /usr/lib/python3/dist-packages/jc/cli.py, added the 'rpm_qi' value in the list.
  • jc --rpm_qi < sample recognize the parser but fail due to missing jc.utils.timestamp
  • I comment the if block that manage the build_epoc* fields.
  • I run perfectly (but without build_epoc stuff)

I launch a think about how hard is it to make jc more modular.
In the futur...

  • should we think about auto-discovery instead of static list in cli.py ?
  • from one directory ?
  • from more than one directories ? support a custom user directory for additionnal parsers ?

I don't know if the jc's core features are changed frequently.

About my use case...

I'm working on huge different version of OS (Win, Linux, OSX but also AIX, HP-UX, Solaris and more... all of them in almost all OS versions that never existed...)
My case of use is more "using jc on my linux, with data remotely get over ssh",
I will probably only use the jc --parsername ... and almost never jc commandname ....
For now,
I don't massively try jc with my old exotic OS.
I only made a simple test with dh -k on AIX what needs minor workaround to be parsed by jc.
For now this test, I fix it on the fly on the data itself.
Another solution should be to try to make my own parser, and/or a patch for an existing one.
For now it seems not so hard to add a parser, but harder than just puting the file in the good directory.

What is your opinion ?

feature request: jc --version

There is no jc --version
but jc -a provide lot of informations, one of them is the version.

I suggest to have a jc --version answering in human text, something like

$ jc --version
jc version 1.14.3
Copyright (C) 2019-2021 by Kelly Brazil
Website: https://github.com/kellyjonbrazil/jc

I did it with jq

$ jc -a | jq -r ' "\(.name) version \(.version)","Copyright (C) 2019-2021 by \(.author)","Website: https://github.com/kellyjonbrazil/jc" '
jc version 1.14.3
Copyright (C) 2019-2021 by Kelly Brazil
Website: https://github.com/kellyjonbrazil/jc

With this try I see there is missing informations about Copyright and website.

It should be good to add them in jc -a.

Regards,

colored output

Hi,
I was wondering if there is any plan to add support for color customization/themes ? The default colors can be pretty unreadable on a dark background. For ex. the keys in blue
image
Thanks,
Amanjit

jc: Error - date parser could not parse the input data.

$ date
Mon 04 Jan 2021 10:43:06 PM CET

$ pip3 show jc
Name: jc
Version: 1.14.0
Summary: Converts the output of popular command-line tools and file-types to JSON.
Home-page: https://github.com/kellyjonbrazil/jc
Author: Kelly Brazil
Author-email: [email protected]
License: MIT
Location: /home/paxsali/.local/lib/python3.8/site-packages
Requires: xmltodict, Pygments, ruamel.yaml
Required-by:

$ jc date

jc:  Error - date parser could not parse the input data. Did you use the correct parser?
             For details use the -d or -dd option.

I don't see what seems to be the problem.

Runnning Ubuntu 20.04 LTS.

Any suggestions what's wrong?

lsblk major/minor

Readme says lsblk output is parsed into "maj_min": "8:0".

Why not into two separate numbers?

parsers if ... elif ... elif

To consider: replace this chunk of if ... elif ... elif with something more elegant. Maybe dict from command name to parser.

make jc switch locale automatically

Some parsers presuppose English locale.
Currently I have to call e.g. LANG=en jc df.
Can jc or the parsers be modified to use the required language automatically?

[DIG] Zone transfers output empty list

Host: Kali (latest)
Python: 3.7.6
JC Version: 1.9.2
Command: dig @<ns_ip> -t axfr example.domain +nocookie | jc --dig -p
Result: []

But when running other commands associated with dig, the output is as expected. The results of the command are the same for both magic parser and pipe. Attempted -d to get more debug information for the issue, but no extra output was given (just an empty list).

dig flags should be an array?

In readme, I've seen that for dig, jc returns "flags": "qr rd ra",.

I think it would be more semantically correct to return an array - ["qr", "rd", "ra"]

What do you think?

Feature request - /usr/bin/time

A parser for /usr/bin/time would be great - we use it a lot during tests/builds

/usr/bin/time --verbose free -m
total used free shared buff/cache available
Mem: 15923 3532 163 372 12227 11791
Swap: 510 510 0
Command being timed: "free -m"
User time (seconds): 0.00
System time (seconds): 0.00
Percent of CPU this job got: 100%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.00
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 3996
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 203
Voluntary context switches: 1
Involuntary context switches: 4
Swaps: 0
File system inputs: 0
File system outputs: 0
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0

Footers not skipped in systemctl list-sockets parser

Footer lines are not being skipped.

โ€ฆ
 {
    "listen": "kobject-uevent",
    "unit": "1",
    "activates": "systemd-udevd-kernel.socket"
  },
  {
    "listen": "12",
    "unit": "sockets",
    "activates": "listed."
  },
  {
    "listen": "Pass",
    "unit": "--all",
    "activates": "to"
  }
]

bash: jc: command not found

I am having CentOS 7.7 and have installed JC using pip3 install --upgrade jc
But I am not able to use the jc command, when i use uname -a | jc --uname -p it gives bash: jc: command not found

What should I do? Set Path?
@kellyjonbrazil

Homebrew support

Great tool!

It would be easier to install if we could do something like

brew install jc

ps - consider tty "?" to return null

$ ps -ef | jc --ps -p
[
  ...
  {
    "uid": "root",
    "pid": "545",
    "ppid": "1",
    "c": "0",
    "stime": "Oct21",
    "tty": "?",
    "time": "00:00:03",
    "cmd": "/usr/lib/systemd/systemd-journald"
  },

I think ? is semantically none or unknown and closest to that in JSON would be null

JC doesnt include output table from iptables

JC doesnt include output table from iptables

it creates a JSON with INPUT and FORWARD no OUTPUT even though there are rules under OUTPUT

ive tried all variants of commands from JC to try and populate OUTPUT rules but it doesnt work

ls problem

As far as I can see everything works fine, but --ls causes troubles:

ls -l /usr/bin | jc --ls
The whole data is in "filename":

  {
    "filename": "lrwxrwxrwx 1 root   root            8 Jan 25  2020 zsh -> /bin/zsh"
  }

OS: Debian 10
Version: 1.13.4 (binary and pip3)

Ive tried debian 9+10 containers, both worked well, maybe an environment or language problem?

ping parser not working with 100% packet loss

First of all, thank you for doing this. I'm doing a little project where your tool is just perfect.

With that being said, the ping parser has a problem when;

  1. There is a 100% packet loss.
  2. The last packet times out

With 5 packets, the three in the middle times out (i have a device in my lab i disconnected shortly) it all looks good:

pi@raspberrypi:~ $ ping -D -O -c 5 192.168.120.164 | jc --ping | jq .
{
"destination_ip": "192.168.120.164",
"data_bytes": 56,
"pattern": null,
"destination": "192.168.120.164",
"packets_transmitted": 5,
"packets_received": 2,
"packet_loss_percent": 60,
"duplicates": 0,
"time_ms": 149,
"round_trip_ms_min": 1.033,
"round_trip_ms_avg": 1.083,
"round_trip_ms_max": 1.133,
"round_trip_ms_stddev": 0.05,
"responses": [
{
"type": "reply",
"timestamp": 1596534506.558155,
"bytes": 64,
"response_ip": "192.168.120.164",
"icmp_seq": 1,
"ttl": 64,
"time_ms": 1.13,
"duplicate": false
},
{
"type": "timeout",
"timestamp": 1596534508.622236,
"icmp_seq": 2
},
{
"type": "timeout",
"timestamp": 1596534509.662235,
"icmp_seq": 3
},
{
"type": "timeout",
"timestamp": 1596534510.702215,
"icmp_seq": 4
},
{
"type": "reply",
"timestamp": 1596534510.703367,
"bytes": 64,
"response_ip": "192.168.120.164",
"icmp_seq": 5,
"ttl": 64,
"time_ms": 1.03,
"duplicate": false
}
]
}

with 5 packets, all of them times out - only 4 is parsed.

ping -D -O -c 5 192.168.120.164 | jc --ping | jq .
{
"destination_ip": "192.168.120.164",
"data_bytes": 56,
"pattern": null,
"destination": "192.168.120.164",
"packets_transmitted": 5,
"packets_received": 0,
"packet_loss_percent": 100,
"duplicates": 0,
"time_ms": 177,
"responses": [
{
"type": "timeout",
"timestamp": 1596534621.582227,
"icmp_seq": 1
},
{
"type": "timeout",
"timestamp": 1596534622.622236,
"icmp_seq": 2
},
{
"type": "timeout",
"timestamp": 1596534623.662213,
"icmp_seq": 3
},
{
"type": "timeout",
"timestamp": 1596534624.702212,
"icmp_seq": 4
}
]
}

With 1 packet, it fails completely

ping -D -O -c 1 192.168.120.164 | jc --ping | jq .
jc: Error - ping parser could not parse the input data. Did you use the correct parser?
For details use the -d or -dd option.

I think it fails to parse the last entry if it's a timeout...

Is this something you could look into? :)

Feature request - tree

I love using jc and I noticed that tree support isn't included. I see that "tree -J" will output json output and my first thought was that this would be awesome with JC.

If this isn't the right place for this request please let me know. Thanks for an awesome tool!

New Parser: file command

This one seems easy enough except for filenames with newline characters. The documentation claims that non-printables are escaped except with -r but every implementation I've seen so far still prints the newline with or without -r.

New Parser: timedatectl command

timedatectl and timedatectl status look to be the same. Looks pretty easy - just need to figure out the DST Change fields.

$ timedatectl 
      Local time: Sat 2020-03-07 01:05:51 PST
  Universal time: Sat 2020-03-07 09:05:51 UTC
        RTC time: Sat 2020-03-07 18:12:41
       Time zone: America/Los_Angeles (PST, -0800)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2019-11-03 01:59:59 PDT
                  Sun 2019-11-03 01:00:00 PST
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2020-03-08 01:59:59 PST
                  Sun 2020-03-08 03:00:00 PDT

Feature request - ACPI parser

A Parser for the acpi command would be very useful (to me ๐Ÿ˜€)

~# acpi -V
Battery 0: Charging, 71%, 00:29:20 until charged
Battery 0: design capacity 2110 mAh, last full capacity 2271 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 46.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 127.0 degrees C
Thermal 0: trip point 1 switches to mode hot at temperature 127.0 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: Processor 0 of 10
Cooling 2: x86_pkg_temp no state information available
Cooling 3: Processor 0 of 10
Cooling 4: intel_powerclamp no state information available
Cooling 5: Processor 0 of 10

[Enhancement] Parser for hciconfig

Any chance of a parser for hciconfig command - I want to monitor Up/Down status :)

Most of it is fairly well formatted in K/V pairs (separated by a colon), except for the bit I really want ๐Ÿ˜†

$ hciconfig -a
hci0:   Type: Primary  Bus: USB
        BD Address: 00:1A:7D:DA:71:13  ACL MTU: 310:10  SCO MTU: 64:8
        UP RUNNING
        RX bytes:13905869 acl:0 sco:0 events:393300 errors:0
        TX bytes:62629 acl:0 sco:0 commands:3893 errors:0
        Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'CSR8510 A10'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Version: 4.0 (0x6)  Revision: 0x22bb
        LMP Version: 4.0 (0x6)  Subversion: 0x22bb
        Manufacturer: Cambridge Silicon Radio (10)

hci1:   Type: Primary  Bus: USB
        BD Address: 00:1A:7D:DA:71:13  ACL MTU: 310:10  SCO MTU: 64:8
        DOWN
        RX bytes:4388363 acl:0 sco:0 events:122021 errors:0
        TX bytes:52350 acl:0 sco:0 commands:3480 errors:2
        Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT

Feature request: docker cli

mostly docker ps, docker ps -a and docker images, but others may be useful also such as network, volumes, etc.

[Feature] Allow use of jc as a prefix to commands

A few comments on reddit mention a feature like this.

One of them:
Posted by /u/Tordek:

why not prefix "jc" to your commands and have the tool do magic.

i.e., you type "jc ls foo" and it internally sees its first parameter is "ls" so it runs "ls foo | jc --ls" internally

I feel like this is a nice feature to have.

a compact json output ?

jc -p is the pretty print output, ok no problem.

jc -r is the raw json, but it is not the compact one.
There are still space between key and value, between each array items.

Is there a reason to not using the most compact output ?

multi-platform readiness

Even if multi-platform is not implemented at the moment, I recommend to think how the code should be structured to support that feature. If you do it later, you might need to change a lot of code.

ls -lR sometimes fails on OSX

Need to investigate further.

Suspect it may be due to total xx line missing in empty folders:

./tmp:
total 0
drwxr-xr-x  2 kbrazil  staff   64 Mar  7 16:34 empty-folder
drwxr-xr-x  9 kbrazil  staff  288 Feb 27 10:19 lstest

./tmp/empty-folder:

./tmp/lstest:
total 0
-rw-r--r--  1 kbrazil  staff  0 Feb 27 10:19 ????this file starts with four newlines
-rw-r--r--  1 kbrazil  staff  0 Feb 27 10:19 ??this file has?a combination???of everything????
-rw-r--r--  1 kbrazil  staff  0 Feb 27 10:19 ?this file starts with one newline
-rw-r--r--  1 kbrazil  staff  0 Feb 27 10:19 a regular filename
-rw-r--r--  1 kbrazil  staff  0 Feb 27 10:19 this file?has?six??newlines??within
-rw-r--r--  1 kbrazil  staff  0 Feb 27 10:19 this file has????four contiguous newlines inside
-rw-r--r--  1 kbrazil  staff  0 Feb 27 10:19 this file has?a newline inside

dig TXT with spaces not working

Parsing of dig output for TXT record that contains spaces does not work.
Cmd:
dig TXT x.y.z.w.bl.spamcop.net
dig answer section:
x.y.z.w.bl.spamcop.net. 2100 IN TXT "Blocked - see https://www.spamcop.net/bl.shtml?w.z.y.x"
jc response.data:
"\"Blocked"

`ls -R <dir> | jc --ls` leaving off directory

I have a directory that looks like this:

$ ls -R public/comic
public/comic:
00/  01/

public/comic/00:
000.png  002.png  004.png  006.png           007.png           008.png  010.png  012.png           013.png  015.png  017.png  019.png  021.png  023.png  025.png  027.png  029.png
001.png  003.png  005.png  006_zbonus_0.png  007_zbonus_0.png  009.png  011.png  012_zbonus_0.png  014.png  016.png  018.png  020.png  022.png  024.png  026.png  028.png  030.png

public/comic/01:
031_bonus_0.png  031.png  032.png  033.png

When I use ls -R /public/comic | jc --ls to generate json, it leaves off the 00 directory, but not its contents. It does get the 01 directory. Right now, I'm using ls -lR /public/comic | jc --ls as a workaround, which is fine, but I thought it would be good to report this anyways.

New Parser: airport -I

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

Add a brew install

Installing it with pip is great, but it would be fantastic to add it to brew as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.