Files
napalm-ubiquiti/tests/fixtures/controller/u7pg2-4.0.69-stat-device.json
T
Christian Manivong 0d0fa905c6 feat: device record parsers and anonymised fixtures
Facts, ports, management address, LLDP (per-port and top-level shapes),
MAC table and PoE from a UniFi device record, which a controller's
stat/device and the device's own mca-dump share. Fixtures from aiounifi
(MIT) and abates/napalm-unifi (Apache-2.0), anonymised with
tools/sanitize.py.

Refs NetOrk/netork#2787
2026-12-05 14:11:50 +01:00

743 lines
18 KiB
JSON

{
"_id": "5a4c022",
"_uptime": 3971849,
"adoptable_when_upgraded": false,
"adopted": true,
"antenna_table": [
{
"default": true,
"id": 4,
"name": "Combined",
"wifi0_gain": 3,
"wifi1_gain": 3
}
],
"architecture": "mips",
"board_rev": 21,
"bytes": 202573081705,
"bytes-d": 4275308,
"bytes-r": 178137,
"cfgversion": "97f3011a27fcfd5b",
"config_network": {
"ip": "192.168.1.7",
"type": "dhcp"
},
"connect_request_ip": "192.168.0.11",
"connect_request_port": "48591",
"considered_lost_at": 1588175837,
"country_code": 0,
"countrycode_table": [],
"device_id": "235678987654345678",
"downlink_table": [],
"element_peer_mac": "",
"ethernet_table": [
{
"mac": "80:2a:a8:00:01:02",
"name": "eth0",
"num_port": 2
}
],
"fw_caps": 25099583,
"gateway_mac": "192.168.0.1",
"guest-num_sta": 0,
"guest-wlan-num_sta": 0,
"guest_token": "REDACTED",
"has_eth1": false,
"has_fan": false,
"has_speaker": false,
"has_temperature": false,
"hash_id": "REDACTED",
"hide_ch_width": "none",
"hw_caps": 0,
"inform_ip": "192.168.0.5",
"inform_url": "http://192.168.0.6:8080/inform",
"ip": "192.168.0.4",
"isolated": false,
"kernel_version": "4.4.153",
"known_cfgversion": "23434545676787654",
"last_seen": 1588175726,
"last_uplink": {
"uplink_mac": "f0:9f:11:22:33:44",
"uplink_remote_port": 6
},
"led_override": "on",
"license_state": "registered",
"locating": false,
"mac": "80:2a:a8:00:01:02",
"manufacturer_id": 4,
"meshv3_peer_mac": "",
"model": "U7PG2",
"name": "ACCESS POINT AC PRO",
"next_heartbeat_at": 1588175763,
"next_interval": 27,
"num_sta": 12,
"outdoor_mode_override": "default",
"port_table": [
{
"aggregated_by": false,
"attr_no_edit": true,
"autoneg": true,
"bytes-r": 177399,
"enable": true,
"flowctrl_rx": false,
"flowctrl_tx": false,
"full_duplex": true,
"is_uplink": false,
"jumbo": false,
"mac_table": [
{
"age": 1,
"mac": "10:00:00:00:00:01",
"static": false,
"uptime": 3971792,
"vlan": 1
}
],
"masked": false,
"media": "GE",
"name": "Main",
"op_mode": "switch",
"poe_caps": 0,
"port_delta": {
"rx_bytes": 4136705,
"rx_packets": 2930,
"time_delta": 24,
"time_delta_activity": 24,
"tx_bytes": 120873,
"tx_packets": 824
},
"port_idx": 1,
"port_poe": false,
"portconf_id": "5a32aa4",
"rx_broadcast": 2323942,
"rx_bytes": 2275836363755,
"rx_bytes-r": 172362,
"rx_dropped": 0,
"rx_errors": 0,
"rx_multicast": 5051177,
"rx_packets": 1574257888,
"speed": 1000,
"stp_pathcost": 0,
"stp_state": "forwarding",
"tx_broadcast": 218413,
"tx_bytes": 53516753422,
"tx_bytes-r": 5036,
"tx_dropped": 0,
"tx_errors": 0,
"tx_multicast": 2935588,
"tx_packets": 333052121,
"up": true
},
{
"aggregated_by": false,
"autoneg": false,
"bytes-r": 0,
"enable": true,
"flowctrl_rx": false,
"flowctrl_tx": false,
"full_duplex": false,
"is_uplink": false,
"jumbo": false,
"mac_table": [],
"masked": false,
"media": "GE",
"name": "Secondary",
"op_mode": "switch",
"poe_caps": 0,
"port_delta": {
"time_delta": 24,
"time_delta_activity": 1588175726
},
"port_idx": 2,
"port_poe": false,
"portconf_id": "5a32aa4",
"rx_broadcast": 0,
"rx_bytes": 0,
"rx_bytes-r": 0,
"rx_dropped": 0,
"rx_errors": 0,
"rx_multicast": 0,
"rx_packets": 0,
"speed": 0,
"stp_pathcost": 0,
"stp_state": "forwarding",
"tx_broadcast": 0,
"tx_bytes": 0,
"tx_bytes-r": 0,
"tx_dropped": 0,
"tx_errors": 0,
"tx_multicast": 0,
"tx_packets": 0,
"up": false
}
],
"radio_table": [
{
"antenna_gain": 6,
"builtin_ant_gain": 3,
"builtin_antenna": true,
"channel": 1,
"current_antenna_gain": 0,
"ht": "20",
"max_txpower": 22,
"min_rssi_enabled": false,
"min_txpower": 6,
"name": "wifi0",
"nss": 3,
"radio": "ng",
"radio_caps": 16420,
"sens_level_enabled": false,
"tx_power_mode": "low",
"wlangroup_id": "5a32aa4ee4"
},
{
"antenna_gain": 6,
"builtin_ant_gain": 3,
"builtin_antenna": true,
"channel": "auto",
"current_antenna_gain": 0,
"hard_noise_floor_enabled": false,
"has_dfs": true,
"has_fccdfs": true,
"ht": "40",
"is_11ac": true,
"max_txpower": 22,
"min_rssi_enabled": false,
"min_txpower": 6,
"name": "wifi1",
"nss": 3,
"radio": "na",
"radio_caps": 50479140,
"sens_level_enabled": false,
"tx_power_mode": "high",
"wlangroup_id": "5a32aa4ee4"
}
],
"radio_table_stats": [
{
"ast_be_xmit": 239,
"ast_cst": null,
"ast_txto": null,
"channel": 1,
"cu_self_rx": 20,
"cu_self_tx": 0,
"cu_total": 21,
"extchannel": 0,
"gain": 3,
"guest-num_sta": 0,
"name": "wifi0",
"num_sta": 3,
"radio": "ng",
"satisfaction": 99,
"state": "RUN",
"tx_packets": 30,
"tx_power": 6,
"tx_retries": 16,
"user-num_sta": 3
},
{
"ast_be_xmit": 239,
"ast_cst": null,
"ast_txto": null,
"channel": 44,
"cu_self_rx": 1,
"cu_self_tx": 1,
"cu_total": 2,
"extchannel": 1,
"gain": 3,
"guest-num_sta": 0,
"name": "wifi1",
"num_sta": 9,
"radio": "na",
"satisfaction": 97,
"state": "RUN",
"tx_packets": 2902,
"tx_power": 17,
"tx_retries": 121,
"user-num_sta": 9
}
],
"required_version": "3.4.1",
"rx_bytes": 4049050176,
"rx_bytes-d": 126600,
"satisfaction": 97,
"scan_radio_table": [],
"scanning": false,
"serial": "802AA8000102",
"site_id": "5a32aa4ee4b0412345678910",
"spectrum_scanning": false,
"ssh_session_table": [],
"start_connected_millis": 1587859252498,
"start_disconnected_millis": 1587859249141,
"stat": {
"ap": {
"ap": "80:2a:a8:00:01:02",
"bytes": 202573081705.0,
"datetime": "2020-04-26T00:00:00Z",
"duration": 316470000.0,
"guest-mac_filter_rejections": 0.0,
"guest-rx_bytes": 0.0,
"guest-rx_crypts": 0.0,
"guest-rx_dropped": 0.0,
"guest-rx_errors": 0.0,
"guest-rx_frags": 0.0,
"guest-rx_packets": 0.0,
"guest-tx_bytes": 0.0,
"guest-tx_dropped": 0.0,
"guest-tx_errors": 0.0,
"guest-tx_packets": 0.0,
"guest-tx_retries": 0.0,
"guest-wifi_tx_attempts": 0.0,
"guest-wifi_tx_dropped": 0.0,
"mac_filter_rejections": 0.0,
"o": "ap",
"oid": "80:2a:a8:00:01:02",
"port_1-rx_broadcast": 172074.0,
"port_1-rx_bytes": 216612809001.0,
"port_1-rx_multicast": 403649.0,
"port_1-rx_packets": 148071452.0,
"port_1-tx_broadcast": 19948.0,
"port_1-tx_bytes": 3988805922.0,
"port_1-tx_multicast": 258376.0,
"port_1-tx_packets": 26448260.0,
"rx_bytes": 4049050176.0,
"rx_crypts": 20074.0,
"rx_dropped": 41540.0,
"rx_errors": 20385.0,
"rx_frags": 0.0,
"rx_packets": 27062516.0,
"site_id": "5a32aa4ee4b0412345678910",
"time": 1587859200000,
"tx_bytes": 198524031529.0,
"tx_dropped": 0.0,
"tx_errors": 233910.0,
"tx_packets": 148794592.0,
"tx_retries": 5259147.0,
"user-mac_filter_rejections": 0.0,
"user-rx_bytes": 4049050176.0,
"user-rx_crypts": 20074.0,
"user-rx_dropped": 41540.0,
"user-rx_errors": 20385.0,
"user-rx_frags": 0.0,
"user-rx_packets": 27062516.0,
"user-tx_bytes": 198524031529.0,
"user-tx_dropped": 0.0,
"user-tx_errors": 233910.0,
"user-tx_packets": 148794592.0,
"user-tx_retries": 5259147.0,
"user-wifi0-ath0-3453453453453-rx_bytes": 543942635.0,
"user-wifi0-ath0-3453453453453-rx_crypts": 8532.0,
"user-wifi0-ath0-3453453453453-rx_dropped": 17899.0,
"user-wifi0-ath0-3453453453453-rx_errors": 8843.0,
"user-wifi0-ath0-3453453453453-rx_packets": 1286990.0,
"user-wifi0-ath0-3453453453453-tx_bytes": 1631875402.0,
"user-wifi0-ath0-3453453453453-tx_packets": 2143440.0,
"user-wifi0-ath0-3453453453453-tx_retries": 815193.0,
"user-wifi0-ath0-3453453453453-wifi_tx_attempts": 2251168.0,
"user-wifi0-ath0-3453453453453-wifi_tx_dropped": 5689.0,
"user-wifi0-mac_filter_rejections": 0.0,
"user-wifi0-rx_bytes": 543942635.0,
"user-wifi0-rx_crypts": 8532.0,
"user-wifi0-rx_dropped": 17899.0,
"user-wifi0-rx_errors": 8843.0,
"user-wifi0-rx_frags": 0.0,
"user-wifi0-rx_packets": 1286990.0,
"user-wifi0-tx_bytes": 1631875402.0,
"user-wifi0-tx_dropped": 0.0,
"user-wifi0-tx_errors": 0.0,
"user-wifi0-tx_packets": 2143440.0,
"user-wifi0-tx_retries": 815193.0,
"user-wifi0-wifi_tx_attempts": 2251168.0,
"user-wifi0-wifi_tx_dropped": 5689.0,
"user-wifi1-ath1-3453453453453-rx_bytes": 3505107541.0,
"user-wifi1-ath1-3453453453453-rx_crypts": 11542.0,
"user-wifi1-ath1-3453453453453-rx_dropped": 23641.0,
"user-wifi1-ath1-3453453453453-rx_errors": 11542.0,
"user-wifi1-ath1-3453453453453-rx_packets": 25775526.0,
"user-wifi1-ath1-3453453453453-tx_bytes": 196892156127.0,
"user-wifi1-ath1-3453453453453-tx_errors": 233910.0,
"user-wifi1-ath1-3453453453453-tx_packets": 146651152.0,
"user-wifi1-ath1-3453453453453-tx_retries": 4443954.0,
"user-wifi1-ath1-3453453453453-wifi_tx_attempts": 79575052.0,
"user-wifi1-ath1-3453453453453-wifi_tx_dropped": 512.0,
"user-wifi1-mac_filter_rejections": 0.0,
"user-wifi1-rx_bytes": 3505107541.0,
"user-wifi1-rx_crypts": 11542.0,
"user-wifi1-rx_dropped": 23641.0,
"user-wifi1-rx_errors": 11542.0,
"user-wifi1-rx_frags": 0.0,
"user-wifi1-rx_packets": 25775526.0,
"user-wifi1-tx_bytes": 196892156127.0,
"user-wifi1-tx_dropped": 0.0,
"user-wifi1-tx_errors": 233910.0,
"user-wifi1-tx_packets": 146651152.0,
"user-wifi1-tx_retries": 4443954.0,
"user-wifi1-wifi_tx_attempts": 79575052.0,
"user-wifi1-wifi_tx_dropped": 512.0,
"user-wifi_tx_attempts": 81826220.0,
"user-wifi_tx_dropped": 6201.0,
"wifi0-mac_filter_rejections": 0.0,
"wifi0-rx_bytes": 543942635.0,
"wifi0-rx_crypts": 8532.0,
"wifi0-rx_dropped": 17899.0,
"wifi0-rx_errors": 8843.0,
"wifi0-rx_frags": 0.0,
"wifi0-rx_packets": 1286990.0,
"wifi0-tx_bytes": 1631875402.0,
"wifi0-tx_dropped": 0.0,
"wifi0-tx_errors": 0.0,
"wifi0-tx_packets": 2143440.0,
"wifi0-tx_retries": 815193.0,
"wifi0-wifi_tx_attempts": 2251168.0,
"wifi0-wifi_tx_dropped": 5689.0,
"wifi1-mac_filter_rejections": 0.0,
"wifi1-rx_bytes": 3505107541.0,
"wifi1-rx_crypts": 11542.0,
"wifi1-rx_dropped": 23641.0,
"wifi1-rx_errors": 11542.0,
"wifi1-rx_frags": 0.0,
"wifi1-rx_packets": 25775526.0,
"wifi1-tx_bytes": 196892156127.0,
"wifi1-tx_dropped": 0.0,
"wifi1-tx_errors": 233910.0,
"wifi1-tx_packets": 146651152.0,
"wifi1-tx_retries": 4443954.0,
"wifi1-wifi_tx_attempts": 79575052.0,
"wifi1-wifi_tx_dropped": 512.0,
"wifi_tx_attempts": 81826220.0,
"wifi_tx_dropped": 6201.0
}
},
"state": 1,
"switch_caps": {
"feature_caps": 32,
"max_aggregate_sessions": 0,
"max_mirror_sessions": 0
},
"sys_error_caps": 0,
"sys_stats": {
"loadavg_1": "0.15",
"loadavg_15": "0.02",
"loadavg_5": "0.08",
"mem_buffer": 0,
"mem_total": 128622592,
"mem_used": 63606784
},
"syslog_key": "REDACTED",
"system-stats": {
"cpu": "3.1",
"mem": "27.4",
"uptime": "3971849"
},
"two_phase_adopt": false,
"tx_bytes": 198524031529,
"tx_bytes-d": 4148708,
"type": "uap",
"unsupported": false,
"unsupported_reason": 0,
"upgradable": true,
"upgrade_state": 0,
"upgrade_to_firmware": "4.0.80.10875",
"uplink": {
"full_duplex": true,
"ip": "0.0.0.0",
"mac": "80:2a:a8:00:01:02",
"max_speed": 1000,
"max_vlan": 96,
"name": "eth0",
"netmask": "0.0.0.0",
"num_port": 2,
"rx_bytes": 1755202154,
"rx_bytes-r": 171857,
"rx_dropped": 131000,
"rx_errors": 0,
"rx_multicast": 0,
"rx_packets": 1574229881,
"speed": 1000,
"tx_bytes": 537697796,
"tx_bytes-r": 4916,
"tx_dropped": 0,
"tx_errors": 0,
"tx_packets": 333052303,
"type": "wire",
"up": true,
"uplink_mac": "f0:9f:11:22:33:44",
"uplink_remote_port": 6
},
"uplink_table": [],
"uptime": 3971849,
"user-num_sta": 12,
"user-wlan-num_sta": 12,
"vap_table": [
{
"anomalies_bar_chart": {
"high_dns_latency": 0,
"high_tcp_latency": 0,
"high_tcp_packet_loss": 0,
"high_wifi_latency": 0,
"high_wifi_retries": 0,
"low_phy_rate": 0,
"poor_stream_eff": 0,
"sleepy_client": 0,
"sta_arp_timeout": 0,
"sta_dns_timeout": 0,
"sta_ip_timeout": 0,
"weak_signal": 0
},
"anomalies_bar_chart_now": {
"high_dns_latency": 0,
"high_tcp_latency": 0,
"high_tcp_packet_loss": 0,
"high_wifi_latency": 0,
"high_wifi_retries": 0,
"low_phy_rate": 0,
"poor_stream_eff": 0,
"sleepy_client": 0,
"sta_arp_timeout": 0,
"sta_dns_timeout": 0,
"sta_ip_timeout": 0,
"weak_signal": 0
},
"ap_mac": "80:2a:a8:00:01:02",
"avg_client_signal": -75,
"bssid": "80:2a:11:22:33:44",
"ccq": 340,
"channel": 44,
"dns_avg_latency": 6,
"essid": "PhG",
"extchannel": 1,
"id": "3453453453453",
"is_guest": false,
"is_wep": false,
"mac_filter_rejections": 0,
"map_id": null,
"name": "ath1",
"num_satisfaction_sta": 9,
"num_sta": 9,
"radio": "na",
"radio_name": "wifi1",
"reasons_bar_chart": {
"phy_rate": 0,
"signal": 3,
"sleepy_client": 0,
"sta_arp_timeout": 0,
"sta_dns_latency": 0,
"sta_dns_timeout": 0,
"sta_ip_timeout": 0,
"stream_eff": 0,
"tcp_latency": 2,
"tcp_packet_loss": 0,
"wifi_latency": 2,
"wifi_retries": 2
},
"reasons_bar_chart_now": {
"phy_rate": 0,
"signal": 2,
"sleepy_client": 0,
"sta_arp_timeout": 0,
"sta_dns_latency": 2,
"sta_dns_timeout": 0,
"sta_ip_timeout": 0,
"stream_eff": 0,
"tcp_latency": 1,
"tcp_packet_loss": 0,
"wifi_latency": 1,
"wifi_retries": 1
},
"rx_bytes": 2772787976,
"rx_crypts": 193706,
"rx_dropped": 377847,
"rx_errors": 193706,
"rx_frags": 0,
"rx_nwids": 244037,
"rx_packets": 253573604,
"rx_tcp_stats": {
"goodbytes": 16307156809,
"lat_avg": 26,
"lat_max": 180,
"lat_min": 10,
"stalls": 0
},
"satisfaction": 97,
"site_id": "5a32aa4ee4b0412345678910",
"state": "RUN",
"t": "vap",
"tx_bytes": 2122358914,
"tx_combined_retries": 3708330,
"tx_data_mpdu_bytes": 181801507822,
"tx_dropped": 0,
"tx_errors": 1710454,
"tx_packets": 1282805591,
"tx_power": 17,
"tx_retries": 3708330,
"tx_rts_retries": 0,
"tx_success": 64435416,
"tx_tcp_stats": {
"goodbytes": 298206899,
"lat_avg": 21,
"lat_max": 110,
"lat_min": 10,
"stalls": 0
},
"tx_total": 64435427,
"up": true,
"usage": "user",
"wifi_tx_attempts": 68143757,
"wifi_tx_dropped": 11,
"wifi_tx_latency_mov": {
"avg": 968,
"max": 3985,
"min": 97,
"total": 888421,
"total_count": 917
},
"wlanconf_id": "3453453453453"
},
{
"anomalies_bar_chart": {
"high_dns_latency": 0,
"high_tcp_latency": 0,
"high_tcp_packet_loss": 0,
"high_wifi_latency": 0,
"high_wifi_retries": 0,
"low_phy_rate": 0,
"poor_stream_eff": 0,
"sleepy_client": 0,
"sta_arp_timeout": 0,
"sta_dns_timeout": 0,
"sta_ip_timeout": 0,
"weak_signal": 0
},
"anomalies_bar_chart_now": {
"high_dns_latency": 0,
"high_tcp_latency": 0,
"high_tcp_packet_loss": 0,
"high_wifi_latency": 0,
"high_wifi_retries": 0,
"low_phy_rate": 0,
"poor_stream_eff": 0,
"sleepy_client": 0,
"sta_arp_timeout": 0,
"sta_dns_timeout": 0,
"sta_ip_timeout": 0,
"weak_signal": 0
},
"ap_mac": "80:2a:a8:00:01:02",
"avg_client_signal": -70,
"bssid": "80:2a:22:33:44:55:66",
"ccq": 633,
"channel": 1,
"dns_avg_latency": 5,
"essid": "PhG",
"id": "3453453453453",
"is_guest": false,
"is_wep": false,
"mac_filter_rejections": 0,
"map_id": null,
"name": "ath0",
"num_satisfaction_sta": 3,
"num_sta": 3,
"radio": "ng",
"radio_name": "wifi0",
"reasons_bar_chart": {
"phy_rate": 0,
"signal": 0,
"sleepy_client": 0,
"sta_arp_timeout": 0,
"sta_dns_latency": 1,
"sta_dns_timeout": 0,
"sta_ip_timeout": 0,
"stream_eff": 0,
"tcp_latency": 0,
"tcp_packet_loss": 0,
"wifi_latency": 2,
"wifi_retries": 0
},
"reasons_bar_chart_now": {
"phy_rate": 0,
"signal": 0,
"sleepy_client": 0,
"sta_arp_timeout": 0,
"sta_dns_latency": 1,
"sta_dns_timeout": 0,
"sta_ip_timeout": 0,
"stream_eff": 0,
"tcp_latency": 0,
"tcp_packet_loss": 0,
"wifi_latency": 2,
"wifi_retries": 0
},
"rx_bytes": 1680489730,
"rx_crypts": 111491,
"rx_dropped": 140008,
"rx_errors": 112587,
"rx_frags": 0,
"rx_nwids": 3448793,
"rx_packets": 23062297,
"rx_tcp_stats": {
"goodbytes": 22571928,
"lat_avg": 3,
"lat_max": 10,
"lat_min": 10,
"stalls": 0
},
"satisfaction": 99,
"site_id": "5a32aa4ee4b0412345678910",
"state": "RUN",
"t": "vap",
"tx_bytes": 2405174619,
"tx_combined_retries": 198754,
"tx_data_mpdu_bytes": 65829188,
"tx_dropped": 0,
"tx_errors": 0,
"tx_packets": 59362177,
"tx_power": 6,
"tx_retries": 144922,
"tx_rts_retries": 53832,
"tx_success": 411226,
"tx_tcp_stats": {
"goodbytes": 51240971,
"lat_avg": 3,
"lat_max": 10,
"lat_min": 10,
"stalls": 0
},
"tx_total": 411704,
"up": true,
"usage": "user",
"wifi_tx_attempts": 556148,
"wifi_tx_dropped": 478,
"wifi_tx_latency_mov": {
"avg": 516,
"max": 12117,
"min": 0,
"total": 20141,
"total_count": 39
},
"wlanconf_id": "3453453453453"
}
],
"version": "4.0.69.10871",
"vwireEnabled": false,
"vwire_table": [],
"vwire_vap_table": [],
"wifi_caps": 573429,
"wlan_overrides": [
{
"name": "My5GHzSSID1",
"radio": "na",
"radio_name": "wifi1",
"wlan_id": "012345678910111213141516"
}
],
"wlangroup_id_na": "5a32aa4ee4123",
"wlangroup_id_ng": "5a32aa4ee4123",
"x_aes_gcm": "REDACTED",
"x_authkey": "REDACTED",
"x_fingerprint": "REDACTED",
"x_has_ssh_hostkey": "REDACTED",
"x_inform_authkey": "REDACTED",
"x_ssh_hostkey_fingerprint": "REDACTED",
"x_vwirekey": "REDACTED"
}