From 3fc017f1b55f314ee4217e7642a02a9008ab58a9 Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Fri, 5 Jul 2019 02:13:28 -0700 Subject: [PATCH] add examples --- core/unifi/examples/convert.sh | 20 + core/unifi/examples/uap.json | 738 ++++++++++++++ core/unifi/examples/ugw.json | 371 +++++++ core/unifi/examples/usw.json | 1720 ++++++++++++++++++++++++++++++++ 4 files changed, 2849 insertions(+) create mode 100755 core/unifi/examples/convert.sh create mode 100644 core/unifi/examples/uap.json create mode 100644 core/unifi/examples/ugw.json create mode 100644 core/unifi/examples/usw.json diff --git a/core/unifi/examples/convert.sh b/core/unifi/examples/convert.sh new file mode 100755 index 00000000..91de843d --- /dev/null +++ b/core/unifi/examples/convert.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Usage: +# ./convert.sh [prefix] +# 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} diff --git a/core/unifi/examples/uap.json b/core/unifi/examples/uap.json new file mode 100644 index 00000000..dbc6c4ae --- /dev/null +++ b/core/unifi/examples/uap.json @@ -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 +} diff --git a/core/unifi/examples/ugw.json b/core/unifi/examples/ugw.json new file mode 100644 index 00000000..117b14f7 --- /dev/null +++ b/core/unifi/examples/ugw.json @@ -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 +} diff --git a/core/unifi/examples/usw.json b/core/unifi/examples/usw.json new file mode 100644 index 00000000..d70d6ab3 --- /dev/null +++ b/core/unifi/examples/usw.json @@ -0,0 +1,1720 @@ +{ + "_id": "59a35cee45663e6cc82600f0", + "adopted": true, + "board_rev": 7, + "cfgversion": "669564dd04994088", + "config_network": { + "type": "dhcp", + "ip": "192.168.1.6" + }, + "dot1x_portctrl_enabled": false, + "ethernet_table": [ + { + "mac": "22:22:00:22:22:00", + "num_port": 26, + "name": "eth0" + }, + { + "mac": "22:22:00:22:22:00", + "name": "srv0" + } + ], + "flowctrl_enabled": false, + "fw_caps": 712229, + "has_fan": true, + "has_temperature": true, + "inform_ip": "192.168.3.1", + "inform_url": "http://security:8080/inform", + "ip": "192.168.1.7", + "jumboframe_enabled": false, + "led_override": "default", + "license_state": "registered", + "mac": "22:22:00:22:22:00", + "model": "US24P250", + "name": "switch", + "outdoor_mode_override": "default", + "port_overrides": [ + { + "name": "APC UPS", + "poe_mode": "off", + "port_idx": 1, + "portconf_id": "59a362f645663e6cc8260134" + }, + { + "poe_mode": "auto", + "port_idx": 2, + "portconf_id": "574e869d4566ffb914a26847" + }, + { + "name": "Camera: Gate", + "poe_mode": "auto", + "port_idx": 3, + "portconf_id": "59a362f645663e6cc8260134" + }, + { + "name": "Bubba's Desktop", + "poe_mode": "auto", + "port_idx": 4, + "portconf_id": "574e869d4566ffb914a26845" + }, + { + "name": "Lexi's Desktop", + "poe_mode": "off", + "port_idx": 5, + "portconf_id": "574e869d4566ffb914a26845" + }, + { + "name": "Camera: Car", + "poe_mode": "auto", + "port_idx": 6, + "portconf_id": "59a362f645663e6cc8260134" + }, + { + "name": "Camera: Garage", + "poe_mode": "auto", + "port_idx": 7, + "portconf_id": "59a362f645663e6cc8260134" + }, + { + "name": "Office Tertiary Desk PD14", + "poe_mode": "off", + "port_idx": 8, + "portconf_id": "574e869d4566ffb914a26847" + }, + { + "name": "Camera: Pool", + "poe_mode": "auto", + "port_idx": 9, + "portconf_id": "59a362f645663e6cc8260134" + }, + { + "name": "Security: Home Port", + "poe_mode": "off", + "port_idx": 10, + "portconf_id": "574e869d4566ffb914a26847" + }, + { + "name": "8ch Relay Board", + "poe_mode": "auto", + "port_idx": 11, + "portconf_id": "59a362f645663e6cc8260134" + }, + { + "name": "Security: Secure Port", + "poe_mode": "off", + "port_idx": 12, + "portconf_id": "59a362f645663e6cc8260134" + }, + { + "name": "Upstairs WAP", + "poe_mode": "auto", + "port_idx": 13, + "portconf_id": "574e869d4566ffb914a26845" + }, + { + "name": "Downstairs WAP", + "poe_mode": "auto", + "port_idx": 15, + "portconf_id": "574e869d4566ffb914a26845" + }, + { + "name": "David's Desk", + "poe_mode": "off", + "port_idx": 16, + "portconf_id": "574e869d4566ffb914a26845" + }, + { + "name": "Camera: Door", + "poe_mode": "auto", + "port_idx": 17, + "portconf_id": "59a362f645663e6cc8260134" + }, + { + "name": "Camera: Porch", + "poe_mode": "auto", + "port_idx": 19, + "portconf_id": "59a362f645663e6cc8260134" + }, + { + "name": "Camera: Road", + "port_idx": 21, + "portconf_id": "59a362f645663e6cc8260134" + }, + { + "name": "Livingroom Stereo", + "poe_mode": "off", + "port_idx": 22, + "portconf_id": "574e869d4566ffb914a26845" + }, + { + "name": "Homerun Prime", + "poe_mode": "off", + "port_idx": 23, + "portconf_id": "574e869d4566ffb914a26845" + }, + { + "name": "gateway", + "poe_mode": "off", + "port_idx": 24, + "portconf_id": "574e869d4566ffb914a26845" + } + ], + "port_table": [ + { + "port_idx": 1, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "59a362f645663e6cc8260134", + "poe_mode": "off", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 1202, + "rx_bytes": 227167212, + "rx_dropped": 0, + "rx_errors": 12, + "rx_multicast": 28260, + "rx_packets": 1153365, + "satisfaction": 85, + "speed": 100, + "stp_pathcost": 200000, + "stp_state": "forwarding", + "tx_broadcast": 417327, + "tx_bytes": 507571083, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 2284158, + "tx_packets": 4465717, + "up": true, + "tx_bytes-r": 45, + "rx_bytes-r": 5, + "bytes-r": 50, + "name": "APC UPS", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 2, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26847", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": false, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 1175, + "rx_bytes": 1068032535, + "rx_dropped": 150, + "rx_errors": 0, + "rx_multicast": 3489, + "rx_packets": 11624994, + "satisfaction": 90, + "speed": 0, + "stp_pathcost": 0, + "stp_state": "disabled", + "tx_broadcast": 62176, + "tx_bytes": 41832520833, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 302928, + "tx_packets": 28160117, + "up": false, + "tx_bytes-r": 0, + "rx_bytes-r": 0, + "bytes-r": 0, + "name": "Port 2", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 3, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "59a362f645663e6cc8260134", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Class 0", + "poe_current": "91.55", + "poe_enable": true, + "poe_good": true, + "poe_power": "4.84", + "poe_voltage": "52.88", + "rx_broadcast": 65216, + "rx_bytes": 3456851429405, + "rx_dropped": 157638, + "rx_errors": 0, + "rx_multicast": 164814, + "rx_packets": 2410688372, + "satisfaction": 90, + "speed": 100, + "stp_pathcost": 200000, + "stp_state": "forwarding", + "tx_broadcast": 353417, + "tx_bytes": 40005007443, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 2419630, + "tx_packets": 564763412, + "up": true, + "tx_bytes-r": 12085, + "rx_bytes-r": 888603, + "bytes-r": 900689, + "name": "Camera: Gate", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 4, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": false, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 646153, + "rx_bytes": 4581272050, + "rx_dropped": 15683, + "rx_errors": 0, + "rx_multicast": 36698, + "rx_packets": 53602118, + "satisfaction": 90, + "speed": 0, + "stp_pathcost": 0, + "stp_state": "disabled", + "tx_broadcast": 452081, + "tx_bytes": 166341729228, + "tx_dropped": 10704730, + "tx_errors": 0, + "tx_multicast": 3414231, + "tx_packets": 122098881, + "up": false, + "tx_bytes-r": 0, + "rx_bytes-r": 0, + "bytes-r": 0, + "name": "Bubba's Desktop", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 5, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "poe_mode": "off", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": false, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 1186, + "rx_bytes": 913565372, + "rx_dropped": 2079, + "rx_errors": 0, + "rx_multicast": 9915, + "rx_packets": 8040327, + "satisfaction": 90, + "speed": 0, + "stp_pathcost": 0, + "stp_state": "disabled", + "tx_broadcast": 99303, + "tx_bytes": 13691997722, + "tx_dropped": 126800, + "tx_errors": 0, + "tx_multicast": 619240, + "tx_packets": 11897488, + "up": false, + "tx_bytes-r": 0, + "rx_bytes-r": 0, + "bytes-r": 0, + "name": "Lexi's Desktop", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 6, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "59a362f645663e6cc8260134", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Class 2", + "poe_current": "75.07", + "poe_enable": true, + "poe_good": true, + "poe_power": "3.95", + "poe_voltage": "52.63", + "rx_broadcast": 15135, + "rx_bytes": 1683544880532, + "rx_dropped": 105097, + "rx_errors": 0, + "rx_multicast": 140206, + "rx_packets": 1145100603, + "satisfaction": 90, + "speed": 100, + "stp_pathcost": 200000, + "stp_state": "forwarding", + "tx_broadcast": 403490, + "tx_bytes": 25109031755, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 2363833, + "tx_packets": 356126846, + "up": true, + "tx_bytes-r": 7672, + "rx_bytes-r": 504473, + "bytes-r": 512145, + "name": "Camera: Car", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 7, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "59a362f645663e6cc8260134", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Class 0", + "poe_current": "92.28", + "poe_enable": true, + "poe_good": true, + "poe_power": "4.85", + "poe_voltage": "52.56", + "rx_broadcast": 65316, + "rx_bytes": 2610602428826, + "rx_dropped": 157634, + "rx_errors": 0, + "rx_multicast": 164757, + "rx_packets": 1825440143, + "satisfaction": 90, + "speed": 100, + "stp_pathcost": 200000, + "stp_state": "forwarding", + "tx_broadcast": 353314, + "tx_bytes": 30130225938, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 2419669, + "tx_packets": 424070512, + "up": true, + "tx_bytes-r": 9976, + "rx_bytes-r": 786139, + "bytes-r": 796116, + "name": "Camera: Garage", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 8, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26847", + "poe_mode": "off", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": false, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 1970, + "rx_bytes": 57788865632, + "rx_dropped": 49, + "rx_errors": 1, + "rx_multicast": 5397, + "rx_packets": 81214364, + "satisfaction": 75, + "speed": 0, + "stp_pathcost": 0, + "stp_state": "disabled", + "tx_broadcast": 243126, + "tx_bytes": 106910126818, + "tx_dropped": 343060, + "tx_errors": 0, + "tx_multicast": 1620633, + "tx_packets": 96321547, + "up": false, + "tx_bytes-r": 0, + "rx_bytes-r": 0, + "bytes-r": 0, + "name": "Office Tertiary Desk PD14", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 9, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "59a362f645663e6cc8260134", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Class 4", + "poe_current": "185.42", + "poe_enable": true, + "poe_good": true, + "poe_power": "9.81", + "poe_voltage": "52.88", + "rx_broadcast": 63647, + "rx_bytes": 2607385367644, + "rx_dropped": 157620, + "rx_errors": 0, + "rx_multicast": 164740, + "rx_packets": 1811240949, + "satisfaction": 90, + "speed": 100, + "stp_pathcost": 200000, + "stp_state": "forwarding", + "tx_broadcast": 354985, + "tx_bytes": 29502203517, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 2419671, + "tx_packets": 414986830, + "up": true, + "tx_bytes-r": 9281, + "rx_bytes-r": 781308, + "bytes-r": 790589, + "name": "Camera: Pool", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 10, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26847", + "poe_mode": "off", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 133159, + "rx_bytes": 2980426813696, + "rx_dropped": 86, + "rx_errors": 0, + "rx_multicast": 1194903, + "rx_packets": 2315914383, + "satisfaction": 90, + "speed": 1000, + "stp_pathcost": 20000, + "stp_state": "forwarding", + "tx_broadcast": 2154128, + "tx_bytes": 1464180769133, + "tx_dropped": 250473, + "tx_errors": 0, + "tx_multicast": 13471964, + "tx_packets": 2230137488, + "up": true, + "tx_bytes-r": 1250938, + "rx_bytes-r": 2919503, + "bytes-r": 4170441, + "name": "Security: Home Port", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 11, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "59a362f645663e6cc8260134", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Class 0", + "poe_current": "12.93", + "poe_enable": true, + "poe_good": true, + "poe_power": "0.69", + "poe_voltage": "53.01", + "rx_broadcast": 10728, + "rx_bytes": 252244504, + "rx_dropped": 0, + "rx_errors": 2, + "rx_multicast": 0, + "rx_packets": 2540659, + "satisfaction": 85, + "speed": 100, + "stp_pathcost": 200000, + "stp_state": "forwarding", + "tx_broadcast": 407892, + "tx_bytes": 496402591, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 2312237, + "tx_packets": 6542398, + "up": true, + "tx_bytes-r": 120, + "rx_bytes-r": 79, + "bytes-r": 199, + "name": "8ch Relay Board", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 12, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "59a362f645663e6cc8260134", + "poe_mode": "off", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 19342, + "rx_bytes": 190236042211, + "rx_dropped": 174281, + "rx_errors": 0, + "rx_multicast": 649832, + "rx_packets": 2704715442, + "satisfaction": 90, + "speed": 1000, + "stp_pathcost": 20000, + "stp_state": "forwarding", + "tx_broadcast": 395664, + "tx_bytes": 18974306738758, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 1886642, + "tx_packets": 13093826470, + "up": true, + "tx_bytes-r": 5653872, + "rx_bytes-r": 67700, + "bytes-r": 5721573, + "name": "Security: Secure Port", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 13, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Class 0", + "poe_current": "88.13", + "poe_enable": true, + "poe_good": true, + "poe_power": "4.65", + "poe_voltage": "52.76", + "rx_broadcast": 383577, + "rx_bytes": 550646722109, + "rx_dropped": 116302, + "rx_errors": 0, + "rx_multicast": 2950663, + "rx_packets": 892359442, + "satisfaction": 90, + "speed": 1000, + "stp_pathcost": 20000, + "stp_state": "forwarding", + "tx_broadcast": 2351476, + "tx_bytes": 1374251273399, + "tx_dropped": 614, + "tx_errors": 0, + "tx_multicast": 12430218, + "tx_packets": 1140545051, + "up": true, + "tx_bytes-r": 1098062, + "rx_bytes-r": 81853, + "bytes-r": 1179915, + "name": "Upstairs WAP", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 14, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": false, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 0, + "rx_bytes": 0, + "rx_dropped": 0, + "rx_errors": 0, + "rx_multicast": 0, + "rx_packets": 0, + "satisfaction": 100, + "speed": 0, + "stp_pathcost": 0, + "stp_state": "disabled", + "tx_broadcast": 0, + "tx_bytes": 0, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 0, + "tx_packets": 0, + "up": false, + "tx_bytes-r": 0, + "rx_bytes-r": 0, + "bytes-r": 0, + "name": "Port 14", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 15, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Class 0", + "poe_current": "71.65", + "poe_enable": true, + "poe_good": true, + "poe_power": "3.77", + "poe_voltage": "52.63", + "rx_broadcast": 196313, + "rx_bytes": 155746936125, + "rx_dropped": 19700, + "rx_errors": 0, + "rx_multicast": 2064123, + "rx_packets": 254212324, + "satisfaction": 90, + "speed": 1000, + "stp_pathcost": 20000, + "stp_state": "forwarding", + "tx_broadcast": 2538787, + "tx_bytes": 229690921008, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 13311081, + "tx_packets": 260289095, + "up": true, + "tx_bytes-r": 20824, + "rx_bytes-r": 4227, + "bytes-r": 25051, + "name": "Downstairs WAP", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 16, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "poe_mode": "off", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 11925, + "rx_bytes": 300038087723, + "rx_dropped": 6, + "rx_errors": 0, + "rx_multicast": 105090, + "rx_packets": 487779140, + "satisfaction": 90, + "speed": 1000, + "stp_pathcost": 20000, + "stp_state": "forwarding", + "tx_broadcast": 2698267, + "tx_bytes": 1161896194876, + "tx_dropped": 2542, + "tx_errors": 0, + "tx_multicast": 15097190, + "tx_packets": 936474098, + "up": true, + "tx_bytes-r": 792886, + "rx_bytes-r": 1134268, + "bytes-r": 1927154, + "name": "David's Desk", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 17, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "59a362f645663e6cc8260134", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Class 0", + "poe_current": "52.24", + "poe_enable": true, + "poe_good": true, + "poe_power": "2.75", + "poe_voltage": "52.69", + "rx_broadcast": 57982, + "rx_bytes": 3736764408104, + "rx_dropped": 157644, + "rx_errors": 1, + "rx_multicast": 157809, + "rx_packets": 2553432414, + "satisfaction": 75, + "speed": 100, + "stp_pathcost": 200000, + "stp_state": "forwarding", + "tx_broadcast": 360666, + "tx_bytes": 37300635720, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 2433676, + "tx_packets": 525589037, + "up": true, + "tx_bytes-r": 11826, + "rx_bytes-r": 1204374, + "bytes-r": 1216200, + "name": "Camera: Door", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 18, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 106288, + "rx_bytes": 2133344721406, + "rx_dropped": 25, + "rx_errors": 12, + "rx_multicast": 311666, + "rx_packets": 2159594753, + "satisfaction": 75, + "speed": 1000, + "stp_pathcost": 20000, + "stp_state": "forwarding", + "tx_broadcast": 2629049, + "tx_bytes": 1194122124612, + "tx_dropped": 7147, + "tx_errors": 0, + "tx_multicast": 15063781, + "tx_packets": 1677508931, + "up": true, + "tx_bytes-r": 37435, + "rx_bytes-r": 1009309, + "bytes-r": 1046744, + "name": "Port 18", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 19, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "59a362f645663e6cc8260134", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Class 0", + "poe_current": "84.22", + "poe_enable": true, + "poe_good": true, + "poe_power": "4.43", + "poe_voltage": "52.56", + "rx_broadcast": 59295, + "rx_bytes": 1565104688294, + "rx_dropped": 157648, + "rx_errors": 0, + "rx_multicast": 157775, + "rx_packets": 1148468555, + "satisfaction": 90, + "speed": 100, + "stp_pathcost": 200000, + "stp_state": "forwarding", + "tx_broadcast": 359378, + "tx_bytes": 1645861732, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 2433784, + "tx_packets": 21052239, + "up": true, + "tx_bytes-r": 8133, + "rx_bytes-r": 483735, + "bytes-r": 491868, + "name": "Camera: Porch", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 20, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": false, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 0, + "rx_bytes": 0, + "rx_dropped": 0, + "rx_errors": 0, + "rx_multicast": 0, + "rx_packets": 0, + "satisfaction": 100, + "speed": 0, + "stp_pathcost": 0, + "stp_state": "disabled", + "tx_broadcast": 0, + "tx_bytes": 0, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 0, + "tx_packets": 0, + "up": false, + "tx_bytes-r": 0, + "rx_bytes-r": 0, + "bytes-r": 0, + "name": "Port 20", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 21, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "59a362f645663e6cc8260134", + "poe_mode": "auto", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Class 0", + "poe_current": "123.90", + "poe_enable": true, + "poe_good": true, + "poe_power": "6.56", + "poe_voltage": "52.95", + "rx_broadcast": 61014, + "rx_bytes": 3317256188719, + "rx_dropped": 157642, + "rx_errors": 0, + "rx_multicast": 157803, + "rx_packets": 2220162515, + "satisfaction": 90, + "speed": 100, + "stp_pathcost": 200000, + "stp_state": "forwarding", + "tx_broadcast": 357637, + "tx_bytes": 30626674529, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 2433710, + "tx_packets": 428205094, + "up": true, + "tx_bytes-r": 9771, + "rx_bytes-r": 1006105, + "bytes-r": 1015877, + "name": "Camera: Road", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 22, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "poe_mode": "off", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 14465, + "rx_bytes": 794839703, + "rx_dropped": 3, + "rx_errors": 0, + "rx_multicast": 1080600, + "rx_packets": 5377988, + "satisfaction": 90, + "speed": 100, + "stp_pathcost": 200000, + "stp_state": "forwarding", + "tx_broadcast": 2720299, + "tx_bytes": 9381221794, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 14294088, + "tx_packets": 37961870, + "up": true, + "tx_bytes-r": 4900, + "rx_bytes-r": 536, + "bytes-r": 5436, + "name": "Livingroom Stereo", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 23, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "poe_mode": "off", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 532640, + "rx_bytes": 331010131889, + "rx_dropped": 35400, + "rx_errors": 0, + "rx_multicast": 576408, + "rx_packets": 261698587, + "satisfaction": 90, + "speed": 1000, + "stp_pathcost": 20000, + "stp_state": "forwarding", + "tx_broadcast": 2202860, + "tx_bytes": 15811798849, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 14799244, + "tx_packets": 184788576, + "up": true, + "tx_bytes-r": 1611, + "rx_bytes-r": 3806, + "bytes-r": 5418, + "name": "Homerun Prime", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 24, + "media": "GE", + "port_poe": true, + "poe_caps": 7, + "speed_caps": 1048623, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "poe_mode": "off", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": true, + "is_uplink": true, + "jumbo": false, + "lldp_table": [ + { + "lldp_chassis_id": "22:22:00:22:22:00", + "lldp_port_id": "eth1", + "lldp_system_name": "gateway" + } + ], + "poe_class": "Unknown", + "poe_current": "0.00", + "poe_enable": false, + "poe_good": false, + "poe_power": "0.00", + "poe_voltage": "0.00", + "rx_broadcast": 186134, + "rx_bytes": 2149399426518, + "rx_dropped": 183, + "rx_errors": 0, + "rx_multicast": 4799002, + "rx_packets": 2730988091, + "satisfaction": 90, + "speed": 1000, + "stp_pathcost": 20000, + "stp_state": "forwarding", + "tx_broadcast": 2549473, + "tx_bytes": 2905955335082, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 11918890, + "tx_packets": 2655236464, + "up": true, + "tx_bytes-r": 2348698, + "rx_bytes-r": 393352, + "bytes-r": 2742050, + "name": "gateway", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 25, + "media": "SFP", + "port_poe": false, + "poe_caps": 0, + "speed_caps": 1048608, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": false, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "rx_broadcast": 0, + "rx_bytes": 0, + "rx_dropped": 0, + "rx_errors": 0, + "rx_multicast": 0, + "rx_packets": 0, + "satisfaction": 100, + "sfp_found": false, + "speed": 0, + "stp_pathcost": 0, + "stp_state": "disabled", + "tx_broadcast": 0, + "tx_bytes": 0, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 0, + "tx_packets": 0, + "up": false, + "tx_bytes-r": 0, + "rx_bytes-r": 0, + "bytes-r": 0, + "name": "SFP 1", + "masked": false, + "aggregated_by": false + }, + { + "port_idx": 26, + "media": "SFP", + "port_poe": false, + "poe_caps": 0, + "speed_caps": 1048608, + "op_mode": "switch", + "portconf_id": "574e869d4566ffb914a26845", + "autoneg": true, + "dot1x_mode": "unknown", + "dot1x_status": "disabled", + "enable": true, + "flowctrl_rx": false, + "flowctrl_tx": false, + "full_duplex": false, + "is_uplink": false, + "jumbo": false, + "lldp_table": [], + "rx_broadcast": 0, + "rx_bytes": 0, + "rx_dropped": 0, + "rx_errors": 0, + "rx_multicast": 0, + "rx_packets": 0, + "satisfaction": 100, + "sfp_found": false, + "speed": 0, + "stp_pathcost": 0, + "stp_state": "disabled", + "tx_broadcast": 0, + "tx_bytes": 0, + "tx_dropped": 0, + "tx_errors": 0, + "tx_multicast": 0, + "tx_packets": 0, + "up": false, + "tx_bytes-r": 0, + "rx_bytes-r": 0, + "bytes-r": 0, + "name": "SFP 2", + "masked": false, + "aggregated_by": false + } + ], + "serial": "xxxyyyzzz", + "site_id": "574e86994566ffb914a2683c", + "stp_priority": "32768", + "stp_version": "rstp", + "type": "usw", + "version": "4.0.42.10433", + "required_version": "3.3.1", + "switch_caps": { + "feature_caps": 1022, + "max_mirror_sessions": 1, + "max_aggregate_sessions": 6 + }, + "hw_caps": 0, + "unsupported": false, + "unsupported_reason": 0, + "sys_error_caps": 0, + "device_id": "59a35cee45663e6cc82600f0", + "state": 1, + "last_seen": 1562309680, + "upgradable": false, + "adoptable_when_upgraded": false, + "rollupgrade": false, + "known_cfgversion": "669564dd04994088", + "uptime": 3188809, + "_uptime": 3188809, + "locating": false, + "connect_request_ip": "192.168.1.7", + "connect_request_port": "45941", + "sys_stats": { + "loadavg_1": "1.83", + "loadavg_15": "1.72", + "loadavg_5": "1.77", + "mem_buffer": 0, + "mem_total": 262397952, + "mem_used": 131473408 + }, + "system-stats": { + "cpu": "59.3", + "mem": "50.1", + "uptime": "3188809" + }, + "ssh_session_table": [], + "fan_level": 50, + "general_temperature": 43, + "overheating": false, + "total_max_power": 222, + "downlink_table": [ + { + "port_idx": 13, + "speed": 1000, + "full_duplex": true, + "mac": "22:22:00:22:22:00" + }, + { + "port_idx": 15, + "speed": 1000, + "full_duplex": true, + "mac": "22:22:00:22:22:00" + } + ], + "uplink": { + "full_duplex": true, + "ip": "192.168.1.7", + "mac": "22:22:00:22:22:00", + "name": "eth0", + "netmask": "255.255.252.0", + "num_port": 26, + "rx_bytes": 2149399426518, + "rx_dropped": 183, + "rx_errors": 0, + "rx_multicast": 0, + "rx_packets": 2730988091, + "speed": 1000, + "tx_bytes": 2905955335082, + "tx_dropped": 0, + "tx_errors": 0, + "tx_packets": 2655236464, + "up": true, + "port_idx": 24, + "media": "GE", + "max_speed": 1000, + "uplink_mac": "22:22:00:22:22:00", + "type": "wire", + "tx_bytes-r": 2348698, + "rx_bytes-r": 393352 + }, + "last_uplink": { + "uplink_mac": "22:22:00:22:22:00" + }, + "uplink_depth": 1, + "dhcp_server_table": [], + "stat": { + "site_id": "574e86994566ffb914a2683c", + "o": "sw", + "oid": "22:22:00:22:22:00", + "sw": "22:22:00:22:22:00", + "time": 1562207400000, + "datetime": "2019-07-04T02:30:00Z", + "rx_packets": 1521931792, + "rx_bytes": 1640634193054, + "rx_errors": 0, + "rx_dropped": 44998, + "rx_crypts": 0, + "rx_frags": 0, + "tx_packets": 1526591275, + "tx_bytes": 1641404646603, + "tx_errors": 0, + "tx_dropped": 230234, + "tx_retries": 0, + "rx_multicast": 477933, + "rx_broadcast": 134416, + "tx_multicast": 4372775, + "tx_broadcast": 1123817, + "bytes": 3282038839657, + "duration": 102277000, + "port_1-rx_packets": 37407, + "port_1-rx_bytes": 7345154, + "port_1-tx_packets": 142648, + "port_1-tx_bytes": 15425151, + "port_1-tx_multicast": 72854, + "port_1-tx_broadcast": 13075, + "port_3-rx_packets": 88198959, + "port_3-rx_bytes": 127291063971, + "port_3-tx_packets": 20230363, + "port_3-tx_bytes": 1436625813, + "port_3-rx_broadcast": 2037, + "port_3-tx_multicast": 78496, + "port_3-tx_broadcast": 11062, + "port_6-rx_packets": 37102295, + "port_6-rx_bytes": 54565186228, + "port_6-tx_packets": 11561353, + "port_6-tx_bytes": 814818610, + "port_6-rx_multicast": 4504, + "port_6-tx_multicast": 76688, + "port_6-tx_broadcast": 12634, + "port_7-rx_packets": 59149016, + "port_7-rx_bytes": 84615020479, + "port_7-tx_packets": 14033190, + "port_7-tx_bytes": 996438501, + "port_7-tx_multicast": 78496, + "port_7-tx_broadcast": 11058, + "port_9-rx_packets": 58736633, + "port_9-rx_bytes": 84549190443, + "port_9-tx_packets": 14151617, + "port_9-tx_bytes": 1004772261, + "port_9-tx_multicast": 78496, + "port_9-tx_broadcast": 11058, + "port_10-rx_packets": 267372091, + "port_10-rx_bytes": 281500610536, + "port_10-tx_packets": 563250041, + "port_10-tx_bytes": 567769155042, + "port_10-rx_multicast": 43302, + "port_10-tx_multicast": 424255, + "port_10-tx_broadcast": 119711, + "port_11-rx_packets": 81983, + "port_11-rx_bytes": 8144416, + "port_11-tx_packets": 209313, + "port_11-tx_bytes": 15405574, + "port_11-tx_multicast": 73730, + "port_11-tx_broadcast": 12758, + "port_12-rx_packets": 103277309, + "port_12-rx_bytes": 7258199289, + "port_12-tx_packets": 439910260, + "port_12-tx_bytes": 639760721999, + "port_12-tx_multicast": 60704, + "port_12-tx_broadcast": 12565, + "port_13-rx_packets": 246443105, + "port_13-rx_bytes": 198040237192, + "port_13-tx_packets": 78593344, + "port_13-tx_bytes": 57869606583, + "port_13-rx_multicast": 137299, + "port_13-rx_broadcast": 65040, + "port_13-tx_multicast": 355704, + "port_13-tx_broadcast": 72404, + "port_15-rx_packets": 91090086, + "port_15-rx_bytes": 129066815209, + "port_15-tx_packets": 21964312, + "port_15-tx_bytes": 8996022939, + "port_15-rx_broadcast": 6271, + "port_15-tx_multicast": 470685, + "port_15-tx_broadcast": 131171, + "port_16-rx_packets": 186203471, + "port_16-rx_bytes": 238718016683, + "port_16-tx_packets": 111909553, + "port_16-tx_bytes": 116205334442, + "port_16-tx_multicast": 484907, + "port_16-tx_broadcast": 137180, + "port_17-rx_packets": 88192775, + "port_17-rx_bytes": 129333707339, + "port_17-tx_packets": 18059043, + "port_17-tx_bytes": 1280177720, + "port_17-tx_multicast": 78951, + "port_17-tx_broadcast": 11288, + "port_18-rx_packets": 47274835, + "port_18-rx_bytes": 52416730761, + "port_18-tx_packets": 31288433, + "port_18-tx_bytes": 19604228682, + "port_18-rx_multicast": 10027, + "port_18-tx_multicast": 478207, + "port_18-tx_broadcast": 136852, + "port_19-rx_packets": 37113361, + "port_19-rx_bytes": 51866531433, + "port_19-tx_packets": 11858558, + "port_19-tx_bytes": 835844449, + "port_19-tx_multicast": 78952, + "port_19-tx_broadcast": 11216, + "port_21-rx_packets": 72039284, + "port_21-rx_bytes": 107639322810, + "port_21-tx_packets": 14367901, + "port_21-tx_bytes": 1026379138, + "port_21-rx_broadcast": 1926, + "port_21-tx_multicast": 78951, + "port_21-tx_broadcast": 11173, + "port_22-rx_packets": 176103, + "port_22-rx_bytes": 25390561, + "port_22-tx_packets": 1272735, + "port_22-tx_bytes": 294225324, + "port_22-rx_multicast": 35968, + "port_22-tx_multicast": 452266, + "port_22-tx_broadcast": 137038, + "port_23-rx_packets": 4246915, + "port_23-rx_bytes": 4976913808, + "port_23-rx_dropped": 1138, + "port_23-tx_packets": 2141027, + "port_23-tx_bytes": 251388436, + "port_23-rx_multicast": 18478, + "port_23-rx_broadcast": 17522, + "port_23-tx_multicast": 469756, + "port_23-tx_broadcast": 119922, + "port_24-rx_packets": 134576026, + "port_24-rx_bytes": 88659302916, + "port_24-tx_packets": 170136735, + "port_24-tx_bytes": 221668518676, + "port_24-rx_multicast": 153949, + "port_24-tx_multicast": 376773, + "port_24-tx_broadcast": 132998, + "port_1-rx_multicast": 881, + "port_3-rx_dropped": 5055, + "port_3-rx_multicast": 5283, + "port_6-rx_dropped": 3370, + "port_7-rx_dropped": 5052, + "port_7-rx_multicast": 5280, + "port_9-rx_dropped": 5052, + "port_9-rx_multicast": 5280, + "port_9-rx_broadcast": 2041, + "port_10-rx_broadcast": 4628, + "port_12-rx_dropped": 5055, + "port_12-rx_multicast": 19895, + "port_13-rx_dropped": 3759, + "port_17-rx_dropped": 5055, + "port_17-rx_multicast": 5055, + "port_17-rx_broadcast": 1811, + "port_19-rx_dropped": 5055, + "port_19-rx_multicast": 5055, + "port_19-rx_broadcast": 1883, + "port_21-rx_dropped": 5055, + "port_21-rx_multicast": 5055, + "port_7-rx_broadcast": 2041, + "port_18-rx_broadcast": 590, + "port_16-rx_multicast": 3329, + "port_15-rx_dropped": 800, + "port_15-rx_multicast": 17552, + "port_16-rx_broadcast": 262, + "port_11-rx_broadcast": 341, + "port_12-rx_broadcast": 534, + "port_6-rx_broadcast": 465, + "port_24-rx_broadcast": 4447, + "port_22-rx_broadcast": 404, + "port_10-tx_dropped": 195211, + "port_16-tx_dropped": 251, + "port_1-rx_broadcast": 20, + "port_4-rx_packets": 620138, + "port_4-rx_bytes": 96463826, + "port_4-rx_dropped": 552, + "port_4-tx_packets": 1510849, + "port_4-tx_bytes": 1559557263, + "port_4-tx_dropped": 34772, + "port_4-rx_multicast": 1741, + "port_4-rx_broadcast": 22153, + "port_4-tx_multicast": 103904, + "port_4-tx_broadcast": 18654 + }, + "tx_bytes": 2149399426518, + "rx_bytes": 2905955335082, + "bytes": 5055354761600, + "num_sta": 16, + "user-num_sta": 16, + "guest-num_sta": 0 +},