add examples
This commit is contained in:
		
							parent
							
								
									46683f841d
								
							
						
					
					
						commit
						3fc017f1b5
					
				|  | @ -0,0 +1,20 @@ | |||
| #!/bin/bash | ||||
| # Usage: | ||||
| # ./convert.sh <file> [prefix] | ||||
| # <file> should contain a go struct, like uap_type.go | ||||
| # It converts the go struct to an influx thing, like you see in uap_influx.go. | ||||
| # [prefix] is optional. I used it to do all the stat_ uap metrics. | ||||
| # Very crude, just helps skip a lot of copy/paste. | ||||
| path=$1 | ||||
| pre=$2 | ||||
| while IFS='' read -r line; do | ||||
|   name=$(echo "${line}" | awk '{print $1}') | ||||
|   type=$(echo "${line}" | awk '{print $2}') | ||||
|   json=$(echo "${line}" | awk '{print $3}') | ||||
|   json=$(echo "${json}" | cut -d\" -f2) | ||||
| 
 | ||||
|   if [ "$json" != "" ] && [ "$name" != "" ]; then | ||||
|     [[ "$type" = Flex* ]] && suf=.Val | ||||
|     echo "\"${pre}${json}\": u.Stat.${name}${suf}," | ||||
|   fi | ||||
| done < ${path} | ||||
|  | @ -0,0 +1,738 @@ | |||
| { | ||||
|   "_id": "574e8bde4566ffb914a26853", | ||||
|   "adopted": true, | ||||
|   "antenna_table": [ | ||||
|     { | ||||
|       "default": true, | ||||
|       "id": 4, | ||||
|       "name": "Combined", | ||||
|       "wifi0_gain": 3, | ||||
|       "wifi1_gain": 3 | ||||
|     } | ||||
|   ], | ||||
|   "bandsteering_mode": "prefer_5g", | ||||
|   "board_rev": 18, | ||||
|   "cfgversion": "08cd8d6b71ebe82f", | ||||
|   "config_network": { | ||||
|     "type": "dhcp", | ||||
|     "ip": "10.1.10.67" | ||||
|   }, | ||||
|   "countrycode_table": [ | ||||
|     840, | ||||
|     124, | ||||
|     630 | ||||
|   ], | ||||
|   "ethernet_table": [ | ||||
|     { | ||||
|       "mac": "80:22:a8:22:ae:22", | ||||
|       "num_port": 2, | ||||
|       "name": "eth0" | ||||
|     } | ||||
|   ], | ||||
|   "fw_caps": 4128063, | ||||
|   "has_eth1": false, | ||||
|   "has_speaker": false, | ||||
|   "inform_ip": "192.168.3.1", | ||||
|   "inform_url": "http://unifi:8080/inform", | ||||
|   "ip": "192.168.1.8", | ||||
|   "led_override": "default", | ||||
|   "mac": "80:22:22:22:22:22", | ||||
|   "mesh_sta_vap_enabled": true, | ||||
|   "model": "U7PG2", | ||||
|   "name": "wap-lower", | ||||
|   "outdoor_mode_override": "default", | ||||
|   "port_table": [ | ||||
|     { | ||||
|       "port_idx": 1, | ||||
|       "op_mode": "switch", | ||||
|       "portconf_id": "574e869d4566ffb914a26845", | ||||
|       "attr_no_edit": true, | ||||
|       "media": "GE", | ||||
|       "name": "Main", | ||||
|       "poe_caps": 0, | ||||
|       "port_poe": false, | ||||
|       "tx_bytes-r": 0, | ||||
|       "rx_bytes-r": 0, | ||||
|       "bytes-r": 0, | ||||
|       "port_delta": { | ||||
|         "time_delta": 21 | ||||
|       }, | ||||
|       "enable": true, | ||||
|       "masked": false, | ||||
|       "aggregated_by": false | ||||
|     }, | ||||
|     { | ||||
|       "port_idx": 2, | ||||
|       "op_mode": "switch", | ||||
|       "portconf_id": "574e869d4566ffb914a26845", | ||||
|       "media": "GE", | ||||
|       "name": "Secondary", | ||||
|       "poe_caps": 0, | ||||
|       "port_poe": false, | ||||
|       "tx_bytes-r": 0, | ||||
|       "rx_bytes-r": 0, | ||||
|       "bytes-r": 0, | ||||
|       "port_delta": { | ||||
|         "time_delta": 21 | ||||
|       }, | ||||
|       "enable": true, | ||||
|       "masked": false, | ||||
|       "aggregated_by": false | ||||
|     } | ||||
|   ], | ||||
|   "radio_table": [ | ||||
|     { | ||||
|       "radio": "ng", | ||||
|       "name": "wifi0", | ||||
|       "channel": "auto", | ||||
|       "ht": "40", | ||||
|       "tx_power_mode": "auto", | ||||
|       "tx_power": "0", | ||||
|       "max_txpower": 22, | ||||
|       "min_txpower": 6, | ||||
|       "nss": 3, | ||||
|       "min_rssi_enabled": false, | ||||
|       "builtin_antenna": true, | ||||
|       "builtin_ant_gain": 3, | ||||
|       "current_antenna_gain": 0, | ||||
|       "radio_caps": 16420, | ||||
|       "wlangroup_id": "574e869d4566ffb914a26843" | ||||
|     }, | ||||
|     { | ||||
|       "radio": "na", | ||||
|       "name": "wifi1", | ||||
|       "channel": "auto", | ||||
|       "ht": "80", | ||||
|       "tx_power_mode": "high", | ||||
|       "tx_power": "0", | ||||
|       "max_txpower": 22, | ||||
|       "min_txpower": 6, | ||||
|       "nss": 3, | ||||
|       "min_rssi_enabled": false, | ||||
|       "is_11ac": true, | ||||
|       "has_dfs": true, | ||||
|       "has_fccdfs": true, | ||||
|       "builtin_antenna": true, | ||||
|       "builtin_ant_gain": 3, | ||||
|       "current_antenna_gain": 0, | ||||
|       "radio_caps": 50479140, | ||||
|       "wlangroup_id": "574e869d4566ffb914a26843" | ||||
|     } | ||||
|   ], | ||||
|   "scan_radio_table": [], | ||||
|   "serial": "xxxyyyzzz", | ||||
|   "site_id": "574e86994566ffb914a2683c", | ||||
|   "type": "uap", | ||||
|   "version": "4.0.42.10433", | ||||
|   "vwire_table": [], | ||||
|   "wifi_caps": 49141, | ||||
|   "wlangroup_id_na": "574e869d4566ffb914a26843", | ||||
|   "wlangroup_id_ng": "574e869d4566ffb914a26843", | ||||
|   "required_version": "3.4.1", | ||||
|   "hw_caps": 0, | ||||
|   "unsupported": false, | ||||
|   "unsupported_reason": 0, | ||||
|   "sys_error_caps": 0, | ||||
|   "has_fan": false, | ||||
|   "has_temperature": false, | ||||
|   "device_id": "574e8bde4566ffb914a26853", | ||||
|   "state": 1, | ||||
|   "last_seen": 1562225381, | ||||
|   "upgradable": false, | ||||
|   "adoptable_when_upgraded": false, | ||||
|   "rollupgrade": false, | ||||
|   "known_cfgversion": "08cd8d6b71ebe82f", | ||||
|   "uptime": 3105845, | ||||
|   "_uptime": 3105845, | ||||
|   "locating": false, | ||||
|   "connect_request_ip": "192.168.1.8", | ||||
|   "connect_request_port": "43913", | ||||
|   "sys_stats": { | ||||
|     "loadavg_1": "0.04", | ||||
|     "loadavg_15": "0.14", | ||||
|     "loadavg_5": "0.10", | ||||
|     "mem_buffer": 0, | ||||
|     "mem_total": 128622592, | ||||
|     "mem_used": 67178496 | ||||
|   }, | ||||
|   "system-stats": { | ||||
|     "cpu": "24.7", | ||||
|     "mem": "52.2", | ||||
|     "uptime": "3105845" | ||||
|   }, | ||||
|   "ssh_session_table": [], | ||||
|   "scanning": false, | ||||
|   "spectrum_scanning": false, | ||||
|   "guest_token": "4D630D2A1AF84771FCBB8EEB4C47E030", | ||||
|   "meshv3_peer_mac": "", | ||||
|   "satisfaction": 95, | ||||
|   "isolated": false, | ||||
|   "radio_table_stats": [ | ||||
|     { | ||||
|       "name": "wifi0", | ||||
|       "channel": 6, | ||||
|       "radio": "ng", | ||||
|       "ast_txto": null, | ||||
|       "ast_cst": null, | ||||
|       "ast_be_xmit": 398, | ||||
|       "cu_total": 20, | ||||
|       "cu_self_rx": 14, | ||||
|       "cu_self_tx": 4, | ||||
|       "gain": 3, | ||||
|       "state": "RUN", | ||||
|       "extchannel": 1, | ||||
|       "tx_power": 22, | ||||
|       "tx_packets": 183, | ||||
|       "tx_retries": 108, | ||||
|       "num_sta": 2, | ||||
|       "guest-num_sta": 0, | ||||
|       "user-num_sta": 2 | ||||
|     }, | ||||
|     { | ||||
|       "name": "wifi1", | ||||
|       "channel": 36, | ||||
|       "radio": "na", | ||||
|       "ast_txto": null, | ||||
|       "ast_cst": null, | ||||
|       "ast_be_xmit": 398, | ||||
|       "cu_total": 12, | ||||
|       "cu_self_rx": 10, | ||||
|       "cu_self_tx": 2, | ||||
|       "gain": 3, | ||||
|       "state": "RUN", | ||||
|       "extchannel": 1, | ||||
|       "tx_power": 22, | ||||
|       "tx_packets": 22466, | ||||
|       "tx_retries": 858, | ||||
|       "num_sta": 4, | ||||
|       "guest-num_sta": 0, | ||||
|       "user-num_sta": 4 | ||||
|     } | ||||
|   ], | ||||
|   "uplink": { | ||||
|     "full_duplex": true, | ||||
|     "ip": "0.0.0.0", | ||||
|     "mac": "80:22:22:22:22:22", | ||||
|     "max_vlan": 96, | ||||
|     "name": "eth0", | ||||
|     "netmask": "0.0.0.0", | ||||
|     "num_port": 2, | ||||
|     "rx_bytes": 3752803309, | ||||
|     "rx_dropped": 102338, | ||||
|     "rx_errors": 0, | ||||
|     "rx_multicast": 0, | ||||
|     "rx_packets": 245302304, | ||||
|     "speed": 1000, | ||||
|     "tx_bytes": 1604707458, | ||||
|     "tx_dropped": 341, | ||||
|     "tx_errors": 0, | ||||
|     "tx_packets": 194278357, | ||||
|     "up": true, | ||||
|     "max_speed": 1000, | ||||
|     "type": "wire", | ||||
|     "tx_bytes-r": 9693222, | ||||
|     "rx_bytes-r": 92418, | ||||
|     "uplink_mac": "f0:22:22:22:22:22", | ||||
|     "uplink_remote_port": 15 | ||||
|   }, | ||||
|   "vap_table": [ | ||||
|     { | ||||
|       "avg_client_signal": 0, | ||||
|       "bssid": "82:22:22:22:22:22", | ||||
|       "ccq": 0, | ||||
|       "channel": 36, | ||||
|       "essid": "Extra Free", | ||||
|       "extchannel": 1, | ||||
|       "id": "574e96834566ffb914a26875", | ||||
|       "mac_filter_rejections": 0, | ||||
|       "name": "ath3", | ||||
|       "num_satisfaction_sta": 0, | ||||
|       "num_sta": 0, | ||||
|       "radio": "na", | ||||
|       "radio_name": "wifi1", | ||||
|       "rx_bytes": 61253, | ||||
|       "rx_crypts": 0, | ||||
|       "rx_dropped": 0, | ||||
|       "rx_errors": 0, | ||||
|       "rx_frags": 0, | ||||
|       "rx_nwids": 47658, | ||||
|       "rx_packets": 576, | ||||
|       "rx_tcp_stats": { | ||||
|         "goodbytes": 0, | ||||
|         "lat_avg": 0, | ||||
|         "lat_max": 0, | ||||
|         "lat_min": 4294967295, | ||||
|         "stalls": 0 | ||||
|       }, | ||||
|       "satisfaction": -1, | ||||
|       "satisfaction_now": -1, | ||||
|       "state": "RUN", | ||||
|       "tx_bytes": 922841, | ||||
|       "tx_combined_retries": 0, | ||||
|       "tx_data_mpdu_bytes": 0, | ||||
|       "tx_dropped": 18128, | ||||
|       "tx_errors": 7, | ||||
|       "tx_packets": 736, | ||||
|       "tx_power": 22, | ||||
|       "tx_retries": 0, | ||||
|       "tx_rts_retries": 0, | ||||
|       "tx_success": 0, | ||||
|       "tx_tcp_stats": { | ||||
|         "goodbytes": 0, | ||||
|         "lat_avg": 0, | ||||
|         "lat_max": 0, | ||||
|         "lat_min": 4294967295, | ||||
|         "stalls": 0 | ||||
|       }, | ||||
|       "tx_total": 0, | ||||
|       "up": true, | ||||
|       "usage": "guest", | ||||
|       "wifi_tx_attempts": 0, | ||||
|       "wifi_tx_dropped": 0, | ||||
|       "wifi_tx_latency_mov": { | ||||
|         "avg": 0, | ||||
|         "max": 0, | ||||
|         "min": 4294967295, | ||||
|         "total": 0, | ||||
|         "total_count": 0 | ||||
|       }, | ||||
|       "t": "vap", | ||||
|       "wlanconf_id": "574e96834566ffb914a26875", | ||||
|       "is_guest": true, | ||||
|       "is_wep": false, | ||||
|       "ap_mac": "80:22:a8:22:22:22", | ||||
|       "map_id": null, | ||||
|       "site_id": "574e86994566ffb914a2683c" | ||||
|     }, | ||||
|     { | ||||
|       "avg_client_signal": -65, | ||||
|       "bssid": "80:22:a8:22:22:22", | ||||
|       "ccq": 333, | ||||
|       "channel": 36, | ||||
|       "essid": "Extra Fast", | ||||
|       "extchannel": 1, | ||||
|       "id": "574e96614566ffb914a26874", | ||||
|       "mac_filter_rejections": 0, | ||||
|       "name": "ath2", | ||||
|       "num_satisfaction_sta": 4, | ||||
|       "num_sta": 4, | ||||
|       "radio": "na", | ||||
|       "radio_name": "wifi1", | ||||
|       "rx_bytes": 3358763522, | ||||
|       "rx_crypts": 161639, | ||||
|       "rx_dropped": 161639, | ||||
|       "rx_errors": 161639, | ||||
|       "rx_frags": 0, | ||||
|       "rx_nwids": 37605, | ||||
|       "rx_packets": 99128603, | ||||
|       "rx_tcp_stats": { | ||||
|         "goodbytes": 16243150352, | ||||
|         "lat_avg": 7, | ||||
|         "lat_max": 100, | ||||
|         "lat_min": 10, | ||||
|         "stalls": 0 | ||||
|       }, | ||||
|       "satisfaction": 96, | ||||
|       "satisfaction_now": 97, | ||||
|       "state": "RUN", | ||||
|       "tx_bytes": 834859686, | ||||
|       "tx_combined_retries": 9067488, | ||||
|       "tx_data_mpdu_bytes": 48117828355, | ||||
|       "tx_dropped": 109, | ||||
|       "tx_errors": 4076905, | ||||
|       "tx_packets": 111980588, | ||||
|       "tx_power": 22, | ||||
|       "tx_retries": 9067488, | ||||
|       "tx_rts_retries": 0, | ||||
|       "tx_success": 62855481, | ||||
|       "tx_tcp_stats": { | ||||
|         "goodbytes": 2154118473, | ||||
|         "lat_avg": 18, | ||||
|         "lat_max": 120, | ||||
|         "lat_min": 10, | ||||
|         "stalls": 0 | ||||
|       }, | ||||
|       "tx_total": 62855552, | ||||
|       "up": true, | ||||
|       "usage": "user", | ||||
|       "wifi_tx_attempts": 71923040, | ||||
|       "wifi_tx_dropped": 71, | ||||
|       "wifi_tx_latency_mov": { | ||||
|         "avg": 565, | ||||
|         "max": 31757, | ||||
|         "min": 98, | ||||
|         "total": 10183098, | ||||
|         "total_count": 18019 | ||||
|       }, | ||||
|       "t": "vap", | ||||
|       "wlanconf_id": "574e96614566ffb914a26874", | ||||
|       "is_guest": false, | ||||
|       "is_wep": false, | ||||
|       "ap_mac": "80:22:22:22:22:22", | ||||
|       "map_id": null, | ||||
|       "site_id": "574e86994566ffb914a2683c" | ||||
|     }, | ||||
|     { | ||||
|       "avg_client_signal": 0, | ||||
|       "bssid": "82:22:a8:22:22:22", | ||||
|       "ccq": 0, | ||||
|       "channel": 6, | ||||
|       "essid": "Extra Free", | ||||
|       "extchannel": 1, | ||||
|       "id": "574e96834566ffb914a26875", | ||||
|       "mac_filter_rejections": 0, | ||||
|       "name": "ath1", | ||||
|       "num_satisfaction_sta": 0, | ||||
|       "num_sta": 0, | ||||
|       "radio": "ng", | ||||
|       "radio_name": "wifi0", | ||||
|       "reasons_bar_chart": { | ||||
|         "phy_rate": 0, | ||||
|         "signal": 0, | ||||
|         "sleepy_client": 0, | ||||
|         "sta_arp_timeout": 0, | ||||
|         "sta_dns_timeout": 0, | ||||
|         "sta_ip_timeout": 0, | ||||
|         "stream_eff": 0, | ||||
|         "tcp_latency": 0, | ||||
|         "tcp_packet_loss": 0, | ||||
|         "wifi_latency": 0, | ||||
|         "wifi_retries": 0 | ||||
|       }, | ||||
|       "reasons_bar_chart_now": { | ||||
|         "phy_rate": 0, | ||||
|         "signal": 0, | ||||
|         "sleepy_client": 0, | ||||
|         "sta_arp_timeout": 0, | ||||
|         "sta_dns_timeout": 0, | ||||
|         "sta_ip_timeout": 0, | ||||
|         "stream_eff": 0, | ||||
|         "tcp_latency": 0, | ||||
|         "tcp_packet_loss": 0, | ||||
|         "wifi_latency": 0, | ||||
|         "wifi_retries": 0 | ||||
|       }, | ||||
|       "rx_bytes": 0, | ||||
|       "rx_crypts": 0, | ||||
|       "rx_dropped": 0, | ||||
|       "rx_errors": 0, | ||||
|       "rx_frags": 0, | ||||
|       "rx_nwids": 120385, | ||||
|       "rx_packets": 0, | ||||
|       "rx_tcp_stats": { | ||||
|         "goodbytes": 0, | ||||
|         "lat_avg": 0, | ||||
|         "lat_max": 0, | ||||
|         "lat_min": 4294967295, | ||||
|         "stalls": 0 | ||||
|       }, | ||||
|       "satisfaction": -1, | ||||
|       "satisfaction_now": -1, | ||||
|       "state": "RUN", | ||||
|       "tx_bytes": 0, | ||||
|       "tx_combined_retries": 0, | ||||
|       "tx_data_mpdu_bytes": 0, | ||||
|       "tx_dropped": 20262, | ||||
|       "tx_errors": 0, | ||||
|       "tx_packets": 0, | ||||
|       "tx_power": 22, | ||||
|       "tx_retries": 0, | ||||
|       "tx_rts_retries": 0, | ||||
|       "tx_success": 0, | ||||
|       "tx_tcp_stats": { | ||||
|         "goodbytes": 0, | ||||
|         "lat_avg": 0, | ||||
|         "lat_max": 0, | ||||
|         "lat_min": 4294967295, | ||||
|         "stalls": 0 | ||||
|       }, | ||||
|       "tx_total": 0, | ||||
|       "up": true, | ||||
|       "usage": "guest", | ||||
|       "wifi_tx_attempts": 0, | ||||
|       "wifi_tx_dropped": 0, | ||||
|       "wifi_tx_latency_mov": { | ||||
|         "avg": 0, | ||||
|         "max": 0, | ||||
|         "min": 4294967295, | ||||
|         "total": 0, | ||||
|         "total_count": 0 | ||||
|       }, | ||||
|       "t": "vap", | ||||
|       "wlanconf_id": "574e96834566ffb914a26875", | ||||
|       "is_guest": true, | ||||
|       "is_wep": false, | ||||
|       "ap_mac": "80:22:a8:22:22:22", | ||||
|       "map_id": null, | ||||
|       "site_id": "574e86994566ffb914a2683c" | ||||
|     }, | ||||
|     { | ||||
|       "avg_client_signal": -68, | ||||
|       "bssid": "80:22:22:22:22:22", | ||||
|       "ccq": 966, | ||||
|       "channel": 6, | ||||
|       "essid": "Extra Fast", | ||||
|       "extchannel": 1, | ||||
|       "id": "574e96614566ffb914a26874", | ||||
|       "mac_filter_rejections": 0, | ||||
|       "name": "ath0", | ||||
|       "num_satisfaction_sta": 2, | ||||
|       "num_sta": 2, | ||||
|       "radio": "ng", | ||||
|       "radio_name": "wifi0", | ||||
|       "reasons_bar_chart": { | ||||
|         "phy_rate": 0, | ||||
|         "signal": 0, | ||||
|         "sleepy_client": 0, | ||||
|         "sta_arp_timeout": 0, | ||||
|         "sta_dns_timeout": 0, | ||||
|         "sta_ip_timeout": 0, | ||||
|         "stream_eff": 0, | ||||
|         "tcp_latency": 0, | ||||
|         "tcp_packet_loss": 0, | ||||
|         "wifi_latency": 0, | ||||
|         "wifi_retries": 1 | ||||
|       }, | ||||
|       "reasons_bar_chart_now": { | ||||
|         "phy_rate": 0, | ||||
|         "signal": 0, | ||||
|         "sleepy_client": 0, | ||||
|         "sta_arp_timeout": 0, | ||||
|         "sta_dns_timeout": 0, | ||||
|         "sta_ip_timeout": 0, | ||||
|         "stream_eff": 0, | ||||
|         "tcp_latency": 0, | ||||
|         "tcp_packet_loss": 0, | ||||
|         "wifi_latency": 0, | ||||
|         "wifi_retries": 1 | ||||
|       }, | ||||
|       "rx_bytes": 1017366419, | ||||
|       "rx_crypts": 11013, | ||||
|       "rx_dropped": 12764, | ||||
|       "rx_errors": 12764, | ||||
|       "rx_frags": 0, | ||||
|       "rx_nwids": 177145, | ||||
|       "rx_packets": 22542668, | ||||
|       "rx_tcp_stats": { | ||||
|         "goodbytes": 114220296, | ||||
|         "lat_avg": 5, | ||||
|         "lat_max": 10, | ||||
|         "lat_min": 10, | ||||
|         "stalls": 0 | ||||
|       }, | ||||
|       "satisfaction": 93, | ||||
|       "satisfaction_now": 94, | ||||
|       "state": "RUN", | ||||
|       "tx_bytes": 965488630, | ||||
|       "tx_combined_retries": 8202639, | ||||
|       "tx_data_mpdu_bytes": 1145631754, | ||||
|       "tx_dropped": 43, | ||||
|       "tx_errors": 0, | ||||
|       "tx_packets": 22623798, | ||||
|       "tx_power": 22, | ||||
|       "tx_retries": 7194267, | ||||
|       "tx_rts_retries": 1008372, | ||||
|       "tx_success": 9545999, | ||||
|       "tx_tcp_stats": { | ||||
|         "goodbytes": 182912739, | ||||
|         "lat_avg": 5, | ||||
|         "lat_max": 10, | ||||
|         "lat_min": 10, | ||||
|         "stalls": 0 | ||||
|       }, | ||||
|       "tx_total": 9547096, | ||||
|       "up": true, | ||||
|       "usage": "user", | ||||
|       "wifi_tx_attempts": 16740276, | ||||
|       "wifi_tx_dropped": 1095, | ||||
|       "wifi_tx_latency_mov": { | ||||
|         "avg": 673, | ||||
|         "max": 13612, | ||||
|         "min": 0, | ||||
|         "total": 263176, | ||||
|         "total_count": 391 | ||||
|       }, | ||||
|       "t": "vap", | ||||
|       "wlanconf_id": "574e96614566ffb914a26874", | ||||
|       "is_guest": false, | ||||
|       "is_wep": false, | ||||
|       "ap_mac": "80:22:22:22:22:22", | ||||
|       "map_id": null, | ||||
|       "site_id": "574e86994566ffb914a2683c" | ||||
|     } | ||||
|   ], | ||||
|   "downlink_table": [], | ||||
|   "vwire_vap_table": [], | ||||
|   "bytes-d": 204913232, | ||||
|   "tx_bytes-d": 1921569, | ||||
|   "rx_bytes-d": 202991663, | ||||
|   "bytes-r": 9757772, | ||||
|   "last_uplink": { | ||||
|     "uplink_mac": "f0:22:22:22:22:22", | ||||
|     "uplink_remote_port": 15 | ||||
|   }, | ||||
|   "stat": { | ||||
|     "site_id": "574e86994566ffb914a2683c", | ||||
|     "o": "ap", | ||||
|     "oid": "80:22:a8:22:22:22", | ||||
|     "ap": "80:22:a8:22:22:22", | ||||
|     "time": 1562207100000, | ||||
|     "datetime": "2019-07-04T02:25:00Z", | ||||
|     "guest-wifi0-rx_packets": 0, | ||||
|     "guest-wifi1-rx_packets": 0, | ||||
|     "user-wifi1-rx_packets": 31373230, | ||||
|     "user-wifi0-rx_packets": 169790, | ||||
|     "user-rx_packets": 31543020, | ||||
|     "guest-rx_packets": 0, | ||||
|     "wifi0-rx_packets": 169790, | ||||
|     "wifi1-rx_packets": 31373230, | ||||
|     "rx_packets": 31543020, | ||||
|     "guest-wifi0-rx_bytes": 0, | ||||
|     "guest-wifi1-rx_bytes": 0, | ||||
|     "user-wifi1-rx_bytes": 42049645434, | ||||
|     "user-wifi0-rx_bytes": 16755639, | ||||
|     "user-rx_bytes": 42066401073, | ||||
|     "guest-rx_bytes": 0, | ||||
|     "wifi0-rx_bytes": 16755639, | ||||
|     "wifi1-rx_bytes": 42049645434, | ||||
|     "rx_bytes": 42066401073, | ||||
|     "guest-wifi0-rx_errors": 0, | ||||
|     "guest-wifi1-rx_errors": 0, | ||||
|     "user-wifi1-rx_errors": 150651, | ||||
|     "user-wifi0-rx_errors": 0, | ||||
|     "user-rx_errors": 150651, | ||||
|     "guest-rx_errors": 0, | ||||
|     "wifi0-rx_errors": 0, | ||||
|     "wifi1-rx_errors": 150651, | ||||
|     "rx_errors": 150651, | ||||
|     "guest-wifi0-rx_dropped": 0, | ||||
|     "guest-wifi1-rx_dropped": 0, | ||||
|     "user-wifi1-rx_dropped": 150651, | ||||
|     "user-wifi0-rx_dropped": 0, | ||||
|     "user-rx_dropped": 150651, | ||||
|     "guest-rx_dropped": 0, | ||||
|     "wifi0-rx_dropped": 0, | ||||
|     "wifi1-rx_dropped": 150651, | ||||
|     "rx_dropped": 150651, | ||||
|     "guest-wifi0-rx_crypts": 0, | ||||
|     "guest-wifi1-rx_crypts": 0, | ||||
|     "user-wifi1-rx_crypts": 150651, | ||||
|     "user-wifi0-rx_crypts": 0, | ||||
|     "user-rx_crypts": 150651, | ||||
|     "guest-rx_crypts": 0, | ||||
|     "wifi0-rx_crypts": 0, | ||||
|     "wifi1-rx_crypts": 150651, | ||||
|     "rx_crypts": 150651, | ||||
|     "guest-wifi0-rx_frags": 0, | ||||
|     "guest-wifi1-rx_frags": 0, | ||||
|     "user-wifi1-rx_frags": 0, | ||||
|     "user-wifi0-rx_frags": 0, | ||||
|     "user-rx_frags": 0, | ||||
|     "guest-rx_frags": 0, | ||||
|     "wifi0-rx_frags": 0, | ||||
|     "wifi1-rx_frags": 0, | ||||
|     "rx_frags": 0, | ||||
|     "guest-wifi0-tx_packets": 0, | ||||
|     "guest-wifi1-tx_packets": 0, | ||||
|     "user-wifi1-tx_packets": 7125589, | ||||
|     "user-wifi0-tx_packets": 210389, | ||||
|     "user-tx_packets": 7335978, | ||||
|     "guest-tx_packets": 0, | ||||
|     "wifi0-tx_packets": 210389, | ||||
|     "wifi1-tx_packets": 7125589, | ||||
|     "tx_packets": 7335978, | ||||
|     "guest-wifi0-tx_bytes": 0, | ||||
|     "guest-wifi1-tx_bytes": 0, | ||||
|     "user-wifi1-tx_bytes": 3011293823, | ||||
|     "user-wifi0-tx_bytes": 25966558, | ||||
|     "user-tx_bytes": 3037260381, | ||||
|     "guest-tx_bytes": 0, | ||||
|     "wifi0-tx_bytes": 25966558, | ||||
|     "wifi1-tx_bytes": 3011293823, | ||||
|     "tx_bytes": 3037260381, | ||||
|     "guest-wifi0-tx_errors": 0, | ||||
|     "guest-wifi1-tx_errors": 0, | ||||
|     "user-wifi1-tx_errors": 102193, | ||||
|     "user-wifi0-tx_errors": 0, | ||||
|     "user-tx_errors": 102193, | ||||
|     "guest-tx_errors": 0, | ||||
|     "wifi0-tx_errors": 0, | ||||
|     "wifi1-tx_errors": 102193, | ||||
|     "tx_errors": 102193, | ||||
|     "guest-wifi0-tx_dropped": 296, | ||||
|     "guest-wifi1-tx_dropped": 296, | ||||
|     "user-wifi1-tx_dropped": 0, | ||||
|     "user-wifi0-tx_dropped": 0, | ||||
|     "user-tx_dropped": 0, | ||||
|     "guest-tx_dropped": 592, | ||||
|     "wifi0-tx_dropped": 296, | ||||
|     "wifi1-tx_dropped": 296, | ||||
|     "tx_dropped": 592, | ||||
|     "guest-wifi0-tx_retries": 0, | ||||
|     "guest-wifi1-tx_retries": 0, | ||||
|     "user-wifi1-tx_retries": 519734, | ||||
|     "user-wifi0-tx_retries": 90225, | ||||
|     "user-tx_retries": 609959, | ||||
|     "guest-tx_retries": 0, | ||||
|     "wifi0-tx_retries": 90225, | ||||
|     "wifi1-tx_retries": 519734, | ||||
|     "tx_retries": 609959, | ||||
|     "guest-wifi0-mac_filter_rejections": 0, | ||||
|     "guest-wifi1-mac_filter_rejections": 0, | ||||
|     "user-wifi1-mac_filter_rejections": 0, | ||||
|     "user-wifi0-mac_filter_rejections": 0, | ||||
|     "user-mac_filter_rejections": 0, | ||||
|     "guest-mac_filter_rejections": 0, | ||||
|     "wifi0-mac_filter_rejections": 0, | ||||
|     "wifi1-mac_filter_rejections": 0, | ||||
|     "mac_filter_rejections": 0, | ||||
|     "guest-wifi0-wifi_tx_attempts": 0, | ||||
|     "guest-wifi1-wifi_tx_attempts": 0, | ||||
|     "user-wifi1-wifi_tx_attempts": 4419026, | ||||
|     "user-wifi0-wifi_tx_attempts": 255999, | ||||
|     "user-wifi_tx_attempts": 4675025, | ||||
|     "guest-wifi_tx_attempts": 0, | ||||
|     "wifi0-wifi_tx_attempts": 255999, | ||||
|     "wifi1-wifi_tx_attempts": 4419026, | ||||
|     "wifi_tx_attempts": 4675025, | ||||
|     "guest-wifi0-wifi_tx_dropped": 0, | ||||
|     "guest-wifi1-wifi_tx_dropped": 0, | ||||
|     "user-wifi1-wifi_tx_dropped": 25, | ||||
|     "user-wifi0-wifi_tx_dropped": 2, | ||||
|     "user-wifi_tx_dropped": 27, | ||||
|     "guest-wifi_tx_dropped": 0, | ||||
|     "wifi0-wifi_tx_dropped": 2, | ||||
|     "wifi1-wifi_tx_dropped": 25, | ||||
|     "wifi_tx_dropped": 27, | ||||
|     "bytes": 45103661454, | ||||
|     "duration": 17988000, | ||||
|     "user-wifi1-ath2-574e96614566ffb914a26874-rx_packets": 31373230, | ||||
|     "user-wifi1-ath2-574e96614566ffb914a26874-rx_bytes": 42049645434, | ||||
|     "user-wifi1-ath2-574e96614566ffb914a26874-tx_packets": 7125589, | ||||
|     "user-wifi1-ath2-574e96614566ffb914a26874-tx_bytes": 3011293823, | ||||
|     "user-wifi1-ath2-574e96614566ffb914a26874-tx_errors": 102193, | ||||
|     "user-wifi1-ath2-574e96614566ffb914a26874-tx_retries": 519734, | ||||
|     "user-wifi1-ath2-574e96614566ffb914a26874-wifi_tx_attempts": 4419026, | ||||
|     "user-wifi0-ath0-574e96614566ffb914a26874-rx_packets": 169790, | ||||
|     "user-wifi0-ath0-574e96614566ffb914a26874-rx_bytes": 16755639, | ||||
|     "user-wifi0-ath0-574e96614566ffb914a26874-tx_packets": 210389, | ||||
|     "user-wifi0-ath0-574e96614566ffb914a26874-tx_bytes": 25966558, | ||||
|     "user-wifi0-ath0-574e96614566ffb914a26874-tx_retries": 90225, | ||||
|     "user-wifi0-ath0-574e96614566ffb914a26874-wifi_tx_attempts": 255999, | ||||
|     "guest-wifi1-ath3-574e96834566ffb914a26875-tx_dropped": 296, | ||||
|     "guest-wifi0-ath1-574e96834566ffb914a26875-tx_dropped": 296, | ||||
|     "user-wifi1-ath2-574e96614566ffb914a26874-rx_errors": 150651, | ||||
|     "user-wifi1-ath2-574e96614566ffb914a26874-rx_dropped": 150651, | ||||
|     "user-wifi1-ath2-574e96614566ffb914a26874-rx_crypts": 150651, | ||||
|     "user-wifi0-ath0-574e96614566ffb914a26874-wifi_tx_dropped": 2, | ||||
|     "user-wifi1-ath2-574e96614566ffb914a26874-wifi_tx_dropped": 25 | ||||
|   }, | ||||
|   "tx_bytes": 3037260381, | ||||
|   "rx_bytes": 42066401073, | ||||
|   "bytes": 45103661454, | ||||
|   "vwireEnabled": false, | ||||
|   "uplink_table": [], | ||||
|   "num_sta": 6, | ||||
|   "user-num_sta": 6, | ||||
|   "guest-num_sta": 0 | ||||
| } | ||||
|  | @ -0,0 +1,371 @@ | |||
| { | ||||
|   "_id": "59a35da745663e6cc82600f6", | ||||
|   "adopted": true, | ||||
|   "cfgversion": "bf9f0335063fe6ea", | ||||
|   "config_network": { | ||||
|     "type": "dhcp", | ||||
|     "ip": "192.168.2.0" | ||||
|   }, | ||||
|   "ethernet_table": [ | ||||
|     { | ||||
|       "mac": "22:22:00:22:22:00", | ||||
|       "num_port": 1, | ||||
|       "name": "eth0" | ||||
|     }, | ||||
|     { | ||||
|       "mac": "22:22:00:22:22:00", | ||||
|       "num_port": 1, | ||||
|       "name": "eth1" | ||||
|     }, | ||||
|     { | ||||
|       "mac": "22:22:00:22:22:00", | ||||
|       "num_port": 1, | ||||
|       "name": "eth2" | ||||
|     } | ||||
|   ], | ||||
|   "fw_caps": 184323, | ||||
|   "inform_ip": "192.168.3.1", | ||||
|   "inform_url": "http://security:8080/inform", | ||||
|   "ip": "3.1.33.7", | ||||
|   "led_override": "default", | ||||
|   "license_state": "registered", | ||||
|   "mac": "22:22:00:22:22:00", | ||||
|   "model": "UGW3", | ||||
|   "name": "gateway", | ||||
|   "outdoor_mode_override": "default", | ||||
|   "serial": "xxxyyyzzz", | ||||
|   "site_id": "574e86994566ffb914a2683c", | ||||
|   "type": "ugw", | ||||
|   "usg_caps": 786431, | ||||
|   "version": "4.4.41.5193700", | ||||
|   "required_version": "4.0.0", | ||||
|   "ethernet_overrides": [ | ||||
|     { | ||||
|       "ifname": "eth1", | ||||
|       "networkgroup": "LAN" | ||||
|     }, | ||||
|     { | ||||
|       "ifname": "eth0", | ||||
|       "networkgroup": "WAN" | ||||
|     } | ||||
|   ], | ||||
|   "hw_caps": 0, | ||||
|   "board_rev": 16, | ||||
|   "unsupported": false, | ||||
|   "unsupported_reason": 0, | ||||
|   "device_id": "59a35da745663e6cc82600f6", | ||||
|   "state": 1, | ||||
|   "last_seen": 1562311857, | ||||
|   "upgradable": false, | ||||
|   "adoptable_when_upgraded": false, | ||||
|   "rollupgrade": false, | ||||
|   "known_cfgversion": "bf9f0335063fe6ea", | ||||
|   "uptime": 3191626, | ||||
|   "_uptime": 3191626, | ||||
|   "locating": false, | ||||
|   "connect_request_ip": "192.168.2.1", | ||||
|   "connect_request_port": "35615", | ||||
|   "sys_stats": { | ||||
|     "loadavg_1": "0.01", | ||||
|     "loadavg_15": "0.12", | ||||
|     "loadavg_5": "0.06", | ||||
|     "mem_buffer": 62406656, | ||||
|     "mem_total": 507412480, | ||||
|     "mem_used": 397500416 | ||||
|   }, | ||||
|   "system-stats": { | ||||
|     "cpu": "14", | ||||
|     "mem": "30", | ||||
|     "uptime": "3191066" | ||||
|   }, | ||||
|   "guest_token": "83342830AE9C0641DC39DD2759C122A1", | ||||
|   "speedtest-status": { | ||||
|     "latency": 14, | ||||
|     "rundate": 1562310531, | ||||
|     "runtime": 172, | ||||
|     "status_download": 2, | ||||
|     "status_ping": 2, | ||||
|     "status_summary": 2, | ||||
|     "status_upload": 2, | ||||
|     "xput_download": 157.36776733398438, | ||||
|     "xput_upload": 37.90521240234375 | ||||
|   }, | ||||
|   "speedtest-status-saved": true, | ||||
|   "wan1": { | ||||
|     "tx_bytes-r": 2852355, | ||||
|     "rx_bytes-r": 1224743, | ||||
|     "bytes-r": 4077098, | ||||
|     "max_speed": 1000, | ||||
|     "type": "wire", | ||||
|     "name": "wan", | ||||
|     "ifname": "eth0", | ||||
|     "ip": "3.1.33.7", | ||||
|     "netmask": "255.255.254.0", | ||||
|     "mac": "22:22:00:22:22:00", | ||||
|     "up": true, | ||||
|     "speed": 1000, | ||||
|     "full_duplex": true, | ||||
|     "rx_bytes": 2648236513108, | ||||
|     "rx_dropped": 34030, | ||||
|     "rx_errors": 0, | ||||
|     "rx_packets": 3068347172, | ||||
|     "tx_bytes": 3009601283006, | ||||
|     "tx_dropped": 0, | ||||
|     "tx_errors": 0, | ||||
|     "tx_packets": 2859713220, | ||||
|     "rx_multicast": 939111, | ||||
|     "enable": true, | ||||
|     "dns": [ | ||||
|       "1.1.1.1", | ||||
|       "8.8.8.8" | ||||
|     ], | ||||
|     "gateway": "3.1.33.8" | ||||
|   }, | ||||
|   "port_table": [ | ||||
|     { | ||||
|       "name": "wan", | ||||
|       "ifname": "eth0", | ||||
|       "ip": "3.1.33.7", | ||||
|       "netmask": "255.255.254.0", | ||||
|       "mac": "22:22:00:22:22:00", | ||||
|       "up": true, | ||||
|       "speed": 1000, | ||||
|       "full_duplex": true, | ||||
|       "rx_bytes": 2648236513108, | ||||
|       "rx_dropped": 34030, | ||||
|       "rx_errors": 0, | ||||
|       "rx_packets": 3068347172, | ||||
|       "tx_bytes": 3009601283006, | ||||
|       "tx_dropped": 0, | ||||
|       "tx_errors": 0, | ||||
|       "tx_packets": 2859713220, | ||||
|       "rx_multicast": 939111, | ||||
|       "enable": true, | ||||
|       "dns": [ | ||||
|         "216.146.35.35", | ||||
|         "216.146.36.36" | ||||
|       ], | ||||
|       "gateway": "3.1.33.8" | ||||
|     }, | ||||
|     { | ||||
|       "name": "lan", | ||||
|       "ifname": "eth1", | ||||
|       "ip": "192.168.2.1", | ||||
|       "netmask": "255.255.252.0", | ||||
|       "mac": "22:22:00:22:22:00", | ||||
|       "up": true, | ||||
|       "speed": 1000, | ||||
|       "full_duplex": true, | ||||
|       "rx_bytes": 2911311797255, | ||||
|       "rx_dropped": 3438, | ||||
|       "rx_errors": 0, | ||||
|       "rx_packets": 2659342049, | ||||
|       "tx_bytes": 2140222188895, | ||||
|       "tx_dropped": 0, | ||||
|       "tx_errors": 0, | ||||
|       "tx_packets": 2734245088, | ||||
|       "rx_multicast": 11929365, | ||||
|       "enable": true | ||||
|     }, | ||||
|     { | ||||
|       "name": "lan2", | ||||
|       "ifname": "eth2", | ||||
|       "ip": "0.0.0.0", | ||||
|       "netmask": "0.0.0.0", | ||||
|       "mac": "22:22:00:22:22:00", | ||||
|       "up": false, | ||||
|       "speed": 0, | ||||
|       "full_duplex": false, | ||||
|       "rx_bytes": 0, | ||||
|       "rx_dropped": 0, | ||||
|       "rx_errors": 0, | ||||
|       "rx_packets": 0, | ||||
|       "tx_bytes": 0, | ||||
|       "tx_dropped": 0, | ||||
|       "tx_errors": 0, | ||||
|       "tx_packets": 0, | ||||
|       "rx_multicast": 0, | ||||
|       "enable": false | ||||
|     } | ||||
|   ], | ||||
|   "network_table": [ | ||||
|     { | ||||
|       "_id": "574e8de34566ffb914a26862", | ||||
|       "is_nat": true, | ||||
|       "dhcpd_dns_enabled": false, | ||||
|       "purpose": "guest", | ||||
|       "dhcpd_leasetime": "86400", | ||||
|       "igmp_snooping": true, | ||||
|       "dhcpguard_enabled": false, | ||||
|       "dhcpd_start": "192.168.5.1", | ||||
|       "enabled": true, | ||||
|       "dhcpd_stop": "192.168.5.254", | ||||
|       "dhcpd_wins_enabled": false, | ||||
|       "domain_name": "guest.lan", | ||||
|       "dhcpd_enabled": true, | ||||
|       "ip_subnet": "192.168.5.0/23", | ||||
|       "vlan": "5", | ||||
|       "networkgroup": "LAN", | ||||
|       "name": "Public Wireless", | ||||
|       "site_id": "574e86994566ffb914a2683c", | ||||
|       "dhcpd_ip_1": "", | ||||
|       "vlan_enabled": true, | ||||
|       "dhcpd_gateway_enabled": false, | ||||
|       "dhcpd_time_offset_enabled": false, | ||||
|       "ipv6_interface_type": "none", | ||||
|       "dhcp_relay_enabled": false, | ||||
|       "mac": "22:22:00:22:22:00", | ||||
|       "is_guest": true, | ||||
|       "ip": "192.168.5.0", | ||||
|       "up": "true", | ||||
|       "num_sta": 1, | ||||
|       "rx_bytes": 578602537, | ||||
|       "rx_packets": 471151, | ||||
|       "tx_bytes": 182318948, | ||||
|       "tx_packets": 239651 | ||||
|     }, | ||||
|     { | ||||
|       "_id": "59a362f645663e6cc8260133", | ||||
|       "is_nat": true, | ||||
|       "dhcpd_dns_enabled": false, | ||||
|       "purpose": "corporate", | ||||
|       "dhcpd_leasetime": 86400, | ||||
|       "dhcpd_start": "192.168.68.2", | ||||
|       "dhcpd_stop": "192.168.68.250", | ||||
|       "enabled": true, | ||||
|       "domain_name": "secure.lan", | ||||
|       "dhcpd_enabled": true, | ||||
|       "vlan": "69", | ||||
|       "ip_subnet": "192.168.69.1/23", | ||||
|       "networkgroup": "LAN", | ||||
|       "name": "Security Network", | ||||
|       "site_id": "574e86994566ffb914a2683c", | ||||
|       "vlan_enabled": true, | ||||
|       "dhcpd_ntp_1": "192.168.69.1", | ||||
|       "dhcpd_gateway_enabled": false, | ||||
|       "dhcpd_time_offset_enabled": false, | ||||
|       "dhcp_relay_enabled": false, | ||||
|       "dhcpd_ntp_enabled": true, | ||||
|       "ipv6_interface_type": "none", | ||||
|       "dhcpd_unifi_controller": "192.168.3.1", | ||||
|       "igmp_snooping": true, | ||||
|       "mac": "22:22:00:22:22:00", | ||||
|       "is_guest": false, | ||||
|       "ip": "192.168.69.1", | ||||
|       "up": "true", | ||||
|       "num_sta": 11, | ||||
|       "rx_bytes": 5221725, | ||||
|       "rx_packets": 70663, | ||||
|       "tx_bytes": 0, | ||||
|       "tx_packets": 0 | ||||
|     }, | ||||
|     { | ||||
|       "_id": "574e869d4566ffb914a26841", | ||||
|       "purpose": "corporate", | ||||
|       "dhcpd_leasetime": "86400", | ||||
|       "igmp_snooping": false, | ||||
|       "dhcpd_ntp_1": "192.168.2.1", | ||||
|       "dhcpguard_enabled": false, | ||||
|       "dhcpd_gateway_enabled": false, | ||||
|       "dhcpd_time_offset_enabled": false, | ||||
|       "dhcpd_start": "192.168.1.1", | ||||
|       "dhcpd_unifi_controller": "192.168.3.1", | ||||
|       "dhcpd_stop": "192.168.1.254", | ||||
|       "enabled": true, | ||||
|       "domain_name": "home.lan", | ||||
|       "dhcpd_enabled": true, | ||||
|       "ip_subnet": "192.168.2.1/22", | ||||
|       "networkgroup": "LAN", | ||||
|       "dhcpd_ip_1": "", | ||||
|       "vlan_enabled": false, | ||||
|       "is_nat": true, | ||||
|       "dhcpd_dns_enabled": false, | ||||
|       "dhcp_relay_enabled": false, | ||||
|       "dhcpd_wins_enabled": false, | ||||
|       "upnp_lan_enabled": true, | ||||
|       "dhcpd_ntp_enabled": true, | ||||
|       "name": "Home Network", | ||||
|       "site_id": "574e86994566ffb914a2683c", | ||||
|       "attr_no_delete": true, | ||||
|       "attr_hidden_id": "LAN", | ||||
|       "ipv6_interface_type": "none", | ||||
|       "mac": "22:22:00:22:22:00", | ||||
|       "is_guest": false, | ||||
|       "ip": "192.168.2.1", | ||||
|       "up": "true", | ||||
|       "num_sta": 30, | ||||
|       "rx_bytes": 2099754971983, | ||||
|       "rx_packets": 2689749160, | ||||
|       "tx_bytes": 2877873632166, | ||||
|       "tx_packets": 2579198457 | ||||
|     } | ||||
|   ], | ||||
|   "uplink": { | ||||
|     "drops": 40, | ||||
|     "enable": true, | ||||
|     "full_duplex": true, | ||||
|     "gateways": [ | ||||
|       "3.1.33.8" | ||||
|     ], | ||||
|     "ip": "3.1.33.7", | ||||
|     "latency": 103, | ||||
|     "mac": "22:22:00:22:22:00", | ||||
|     "name": "eth0", | ||||
|     "nameservers": [ | ||||
|       "1.1.1.1", | ||||
|       "8.8.8.8" | ||||
|     ], | ||||
|     "netmask": "255.255.254.0", | ||||
|     "num_port": 1, | ||||
|     "rx_bytes": 2648236513108, | ||||
|     "rx_dropped": 34030, | ||||
|     "rx_errors": 0, | ||||
|     "rx_multicast": 939111, | ||||
|     "rx_packets": 3068347172, | ||||
|     "speed": 1000, | ||||
|     "speedtest_lastrun": 1562310531, | ||||
|     "speedtest_ping": 14, | ||||
|     "speedtest_status": "Success", | ||||
|     "tx_bytes": 3009601283006, | ||||
|     "tx_dropped": 0, | ||||
|     "tx_errors": 0, | ||||
|     "tx_packets": 2859713220, | ||||
|     "up": true, | ||||
|     "uptime": 559088, | ||||
|     "xput_down": 157.368, | ||||
|     "xput_up": 37.905, | ||||
|     "tx_bytes-r": 2852355, | ||||
|     "rx_bytes-r": 1224743, | ||||
|     "bytes-r": 4077098, | ||||
|     "max_speed": 1000, | ||||
|     "type": "wire" | ||||
|   }, | ||||
|   "stat": { | ||||
|     "site_id": "574e86994566ffb914a2683c", | ||||
|     "o": "gw", | ||||
|     "oid": "22:22:00:22:22:00", | ||||
|     "gw": "22:22:00:22:22:00", | ||||
|     "time": 1562207100000, | ||||
|     "datetime": "2019-07-04T02:25:00Z", | ||||
|     "duration": 104466000, | ||||
|     "wan-rx_packets": 151387924, | ||||
|     "wan-rx_bytes": 111251311739, | ||||
|     "wan-tx_packets": 182985900, | ||||
|     "wan-tx_bytes": 230372237709, | ||||
|     "lan-rx_packets": 173953163, | ||||
|     "lan-rx_bytes": 226862410885, | ||||
|     "lan-tx_packets": 137029474, | ||||
|     "lan-tx_bytes": 89478206254, | ||||
|     "wan-rx_dropped": 561, | ||||
|     "lan-rx_dropped": 29 | ||||
|   }, | ||||
|   "tx_bytes": 2648236513108, | ||||
|   "rx_bytes": 3009601283006, | ||||
|   "bytes": 5657837796114, | ||||
|   "num_sta": 41, | ||||
|   "user-num_sta": 41, | ||||
|   "guest-num_sta": 0, | ||||
|   "num_desktop": 7, | ||||
|   "num_mobile": 2, | ||||
|   "num_handheld": 8 | ||||
| } | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
		Reference in New Issue