Facts, ports, management address, LLDP (per-port and top-level shapes), MAC table and PoE from a UniFi device record, which a controller's stat/device and the device's own mca-dump share. Fixtures from aiounifi (MIT) and abates/napalm-unifi (Apache-2.0), anonymised with tools/sanitize.py. Refs NetOrk/netork#2787
588 lines
13 KiB
JSON
588 lines
13 KiB
JSON
{
|
|
"_id": "5a7cc21ae4b068sbddb234565324134",
|
|
"_uptime": 3971894,
|
|
"adoptable_when_upgraded": false,
|
|
"adopted": true,
|
|
"architecture": "armv7l",
|
|
"board_rev": 10,
|
|
"bytes": 1209354602451,
|
|
"cfgversion": "123131b3x1d2x454xx",
|
|
"config_network": {
|
|
"ip": "192.168.0.8",
|
|
"type": "dhcp"
|
|
},
|
|
"connect_request_ip": "192.168.0.8",
|
|
"connect_request_port": "49349",
|
|
"considered_lost_at": 1588175834,
|
|
"device_id": "235678987654345678",
|
|
"dhcp_server_table": [],
|
|
"dot1x_portctrl_enabled": false,
|
|
"downlink_table": [
|
|
{
|
|
"full_duplex": true,
|
|
"mac": "fc:ec:da:11:22:33",
|
|
"port_idx": 5,
|
|
"speed": 1000
|
|
},
|
|
{
|
|
"full_duplex": true,
|
|
"mac": "80:2a:a8:00:01:02",
|
|
"port_idx": 6,
|
|
"speed": 1000
|
|
}
|
|
],
|
|
"ethernet_table": [
|
|
{
|
|
"mac": "f0:9f:11:22:33:44",
|
|
"name": "eth0",
|
|
"num_port": 8
|
|
},
|
|
{
|
|
"mac": "f0:9f:11:22:33:4a",
|
|
"name": "srv0"
|
|
}
|
|
],
|
|
"flowctrl_enabled": false,
|
|
"fw_caps": 21683749,
|
|
"gateway_mac": "192.168.0.1",
|
|
"guest-num_sta": 0,
|
|
"has_fan": false,
|
|
"has_temperature": false,
|
|
"hash_id": "REDACTED",
|
|
"hw_caps": 0,
|
|
"inform_ip": "192.168.0.5",
|
|
"inform_url": "http://192.168.0.7:8080/inform",
|
|
"internet": true,
|
|
"ip": "192.168.0.8",
|
|
"jumboframe_enabled": false,
|
|
"kernel_version": "3.6.5",
|
|
"known_cfgversion": "23434545676787654",
|
|
"last_seen": 1588175735,
|
|
"last_uplink": {
|
|
"uplink_mac": "78:8a:20:33:44:55"
|
|
},
|
|
"led_override": "on",
|
|
"license_state": "registered",
|
|
"locating": false,
|
|
"mac": "f0:9f:11:22:33:44",
|
|
"manufacturer_id": 4,
|
|
"model": "US8",
|
|
"name": "Switch 8",
|
|
"next_heartbeat_at": 1588175768,
|
|
"next_interval": 23,
|
|
"num_sta": 4,
|
|
"outdoor_mode_override": "default",
|
|
"overheating": false,
|
|
"port_overrides": [
|
|
{
|
|
"poe_mode": "auto",
|
|
"port_idx": 5,
|
|
"portconf_id": "5a32aa4ee4babd4452422ddd22222"
|
|
}
|
|
],
|
|
"port_table": [
|
|
{
|
|
"aggregated_by": false,
|
|
"autoneg": true,
|
|
"bytes-r": 0,
|
|
"dot1x_mode": "unknown",
|
|
"dot1x_status": "disabled",
|
|
"enable": true,
|
|
"flowctrl_rx": false,
|
|
"flowctrl_tx": false,
|
|
"full_duplex": false,
|
|
"is_uplink": false,
|
|
"jumbo": false,
|
|
"lldp_table": [],
|
|
"masked": false,
|
|
"media": "GE",
|
|
"name": "Port 1",
|
|
"op_mode": "switch",
|
|
"poe_caps": 0,
|
|
"port_idx": 1,
|
|
"port_poe": false,
|
|
"portconf_id": "5a32aa4ee4babd4452422ddd22222",
|
|
"rx_broadcast": 0,
|
|
"rx_bytes": 0,
|
|
"rx_bytes-r": 0,
|
|
"rx_dropped": 0,
|
|
"rx_errors": 0,
|
|
"rx_multicast": 0,
|
|
"rx_packets": 0,
|
|
"satisfaction": 100,
|
|
"speed": 0,
|
|
"speed_caps": 1048623,
|
|
"stp_pathcost": 0,
|
|
"stp_state": "disabled",
|
|
"tx_broadcast": 0,
|
|
"tx_bytes": 0,
|
|
"tx_bytes-r": 0,
|
|
"tx_dropped": 0,
|
|
"tx_errors": 0,
|
|
"tx_multicast": 0,
|
|
"tx_packets": 0,
|
|
"up": false
|
|
},
|
|
{
|
|
"aggregated_by": false,
|
|
"autoneg": true,
|
|
"bytes-r": 244434,
|
|
"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": "78:8A:20:44:33:22:11",
|
|
"lldp_port_id": "eth1",
|
|
"lldp_system_name": "USG"
|
|
}
|
|
],
|
|
"masked": false,
|
|
"media": "GE",
|
|
"name": "Port 2",
|
|
"op_mode": "switch",
|
|
"poe_caps": 0,
|
|
"port_idx": 2,
|
|
"port_poe": false,
|
|
"portconf_id": "5a32aa4ee4babd4452422ddd22222",
|
|
"rx_broadcast": 44064,
|
|
"rx_bytes": 1109019728759,
|
|
"rx_bytes-r": 240953,
|
|
"rx_dropped": 0,
|
|
"rx_errors": 0,
|
|
"rx_multicast": 138783,
|
|
"rx_packets": 808013990,
|
|
"satisfaction": 100,
|
|
"speed": 1000,
|
|
"speed_caps": 1048623,
|
|
"stp_pathcost": 20000,
|
|
"stp_state": "forwarding",
|
|
"tx_broadcast": 2498252,
|
|
"tx_bytes": 100334873692,
|
|
"tx_bytes-r": 3480,
|
|
"tx_dropped": 0,
|
|
"tx_errors": 0,
|
|
"tx_multicast": 7847706,
|
|
"tx_packets": 356816368,
|
|
"up": true
|
|
},
|
|
{
|
|
"aggregated_by": false,
|
|
"autoneg": true,
|
|
"bytes-r": 0,
|
|
"dot1x_mode": "unknown",
|
|
"dot1x_status": "disabled",
|
|
"enable": true,
|
|
"flowctrl_rx": false,
|
|
"flowctrl_tx": false,
|
|
"full_duplex": false,
|
|
"is_uplink": false,
|
|
"jumbo": false,
|
|
"lldp_table": [],
|
|
"masked": false,
|
|
"media": "GE",
|
|
"name": "Port 3",
|
|
"op_mode": "switch",
|
|
"poe_caps": 0,
|
|
"port_idx": 3,
|
|
"port_poe": false,
|
|
"portconf_id": "5a32aa4ee4babd4452422ddd22222",
|
|
"rx_broadcast": 0,
|
|
"rx_bytes": 0,
|
|
"rx_bytes-r": 0,
|
|
"rx_dropped": 0,
|
|
"rx_errors": 0,
|
|
"rx_multicast": 0,
|
|
"rx_packets": 0,
|
|
"satisfaction": 100,
|
|
"speed": 0,
|
|
"speed_caps": 1048623,
|
|
"stp_pathcost": 0,
|
|
"stp_state": "disabled",
|
|
"tx_broadcast": 0,
|
|
"tx_bytes": 0,
|
|
"tx_bytes-r": 0,
|
|
"tx_dropped": 0,
|
|
"tx_errors": 0,
|
|
"tx_multicast": 0,
|
|
"tx_packets": 0,
|
|
"up": false
|
|
},
|
|
{
|
|
"aggregated_by": false,
|
|
"autoneg": true,
|
|
"bytes-r": 388,
|
|
"dot1x_mode": "unknown",
|
|
"dot1x_status": "disabled",
|
|
"enable": true,
|
|
"flowctrl_rx": false,
|
|
"flowctrl_tx": false,
|
|
"full_duplex": true,
|
|
"is_uplink": false,
|
|
"jumbo": false,
|
|
"lldp_table": [],
|
|
"masked": false,
|
|
"media": "GE",
|
|
"name": "Port 4",
|
|
"op_mode": "switch",
|
|
"poe_caps": 0,
|
|
"port_idx": 4,
|
|
"port_poe": false,
|
|
"portconf_id": "5a32aa4ee4babd4452422ddd22222",
|
|
"rx_broadcast": 17,
|
|
"rx_bytes": 9242748,
|
|
"rx_bytes-r": 5,
|
|
"rx_dropped": 0,
|
|
"rx_errors": 0,
|
|
"rx_multicast": 0,
|
|
"rx_packets": 136169,
|
|
"satisfaction": 100,
|
|
"speed": 100,
|
|
"speed_caps": 1048623,
|
|
"stp_pathcost": 200000,
|
|
"stp_state": "forwarding",
|
|
"tx_broadcast": 2542342,
|
|
"tx_bytes": 1919704579,
|
|
"tx_bytes-r": 383,
|
|
"tx_dropped": 0,
|
|
"tx_errors": 0,
|
|
"tx_multicast": 7854446,
|
|
"tx_packets": 10540945,
|
|
"up": true
|
|
},
|
|
{
|
|
"aggregated_by": false,
|
|
"autoneg": true,
|
|
"bytes-r": 1781,
|
|
"dot1x_mode": "unknown",
|
|
"dot1x_status": "disabled",
|
|
"enable": true,
|
|
"flowctrl_rx": false,
|
|
"flowctrl_tx": false,
|
|
"full_duplex": true,
|
|
"is_uplink": false,
|
|
"jumbo": false,
|
|
"lldp_table": [
|
|
{
|
|
"lldp_chassis_id": "FC:EC:DA:33:22:44",
|
|
"lldp_port_id": "0/1",
|
|
"lldp_system_name": "Switch16"
|
|
}
|
|
],
|
|
"masked": false,
|
|
"media": "GE",
|
|
"name": "Port 5",
|
|
"op_mode": "switch",
|
|
"poe_caps": 0,
|
|
"poe_mode": "auto",
|
|
"port_idx": 5,
|
|
"port_poe": false,
|
|
"portconf_id": "5a32aa4ee4babd4452422ddd22222",
|
|
"rx_broadcast": 129026,
|
|
"rx_bytes": 435751727043,
|
|
"rx_bytes-r": 867,
|
|
"rx_dropped": 0,
|
|
"rx_errors": 0,
|
|
"rx_multicast": 411610,
|
|
"rx_packets": 457317083,
|
|
"satisfaction": 100,
|
|
"speed": 1000,
|
|
"speed_caps": 1048623,
|
|
"stp_pathcost": 20000,
|
|
"stp_state": "forwarding",
|
|
"tx_broadcast": 2413331,
|
|
"tx_bytes": 429589071593,
|
|
"tx_bytes-r": 914,
|
|
"tx_dropped": 0,
|
|
"tx_errors": 0,
|
|
"tx_multicast": 7573771,
|
|
"tx_packets": 370316574,
|
|
"up": true
|
|
},
|
|
{
|
|
"aggregated_by": false,
|
|
"autoneg": true,
|
|
"bytes-r": 244345,
|
|
"dot1x_mode": "unknown",
|
|
"dot1x_status": "disabled",
|
|
"enable": true,
|
|
"flowctrl_rx": false,
|
|
"flowctrl_tx": false,
|
|
"full_duplex": true,
|
|
"is_uplink": false,
|
|
"jumbo": false,
|
|
"lldp_table": [
|
|
{
|
|
"lldp_chassis_id": "80:2A:A8:55:44:33",
|
|
"lldp_port_id": "80:2A:A8:55:44:33",
|
|
"lldp_system_name": "UAPACPRO"
|
|
}
|
|
],
|
|
"masked": false,
|
|
"media": "GE",
|
|
"name": "Port 6",
|
|
"op_mode": "switch",
|
|
"poe_caps": 0,
|
|
"port_idx": 6,
|
|
"port_poe": false,
|
|
"portconf_id": "5a32aa4ee4babd4452422ddd22222",
|
|
"rx_broadcast": 218412,
|
|
"rx_bytes": 53516789416,
|
|
"rx_bytes-r": 4113,
|
|
"rx_dropped": 0,
|
|
"rx_errors": 0,
|
|
"rx_multicast": 2935589,
|
|
"rx_packets": 333052376,
|
|
"satisfaction": 90,
|
|
"speed": 1000,
|
|
"speed_caps": 1048623,
|
|
"stp_pathcost": 20000,
|
|
"stp_state": "forwarding",
|
|
"tx_broadcast": 2323945,
|
|
"tx_bytes": 2275838496776,
|
|
"tx_bytes-r": 240232,
|
|
"tx_dropped": 2665,
|
|
"tx_errors": 0,
|
|
"tx_multicast": 5051186,
|
|
"tx_packets": 1574259392,
|
|
"up": true
|
|
},
|
|
{
|
|
"aggregated_by": false,
|
|
"autoneg": true,
|
|
"bytes-r": 3508,
|
|
"dot1x_mode": "unknown",
|
|
"dot1x_status": "disabled",
|
|
"enable": true,
|
|
"flowctrl_rx": false,
|
|
"flowctrl_tx": false,
|
|
"full_duplex": true,
|
|
"is_uplink": false,
|
|
"jumbo": false,
|
|
"lldp_table": [],
|
|
"masked": false,
|
|
"media": "GE",
|
|
"name": "Port 7",
|
|
"op_mode": "switch",
|
|
"poe_caps": 0,
|
|
"port_idx": 7,
|
|
"port_poe": false,
|
|
"portconf_id": "5a32aa4ee4babd4452422ddd22222",
|
|
"rx_broadcast": 2031756,
|
|
"rx_bytes": 1602876591571,
|
|
"rx_bytes-r": 613,
|
|
"rx_dropped": 0,
|
|
"rx_errors": 0,
|
|
"rx_multicast": 2646968,
|
|
"rx_packets": 1117936736,
|
|
"satisfaction": 100,
|
|
"speed": 1000,
|
|
"speed_caps": 1048623,
|
|
"stp_pathcost": 20000,
|
|
"stp_state": "forwarding",
|
|
"tx_broadcast": 510499,
|
|
"tx_bytes": 400026198993,
|
|
"tx_bytes-r": 2895,
|
|
"tx_dropped": 0,
|
|
"tx_errors": 0,
|
|
"tx_multicast": 5207435,
|
|
"tx_packets": 440118452,
|
|
"up": true
|
|
},
|
|
{
|
|
"aggregated_by": false,
|
|
"autoneg": true,
|
|
"bytes-r": 0,
|
|
"dot1x_mode": "unknown",
|
|
"dot1x_status": "disabled",
|
|
"enable": true,
|
|
"flowctrl_rx": false,
|
|
"flowctrl_tx": false,
|
|
"full_duplex": false,
|
|
"is_uplink": false,
|
|
"jumbo": false,
|
|
"lldp_table": [],
|
|
"masked": false,
|
|
"media": "GE",
|
|
"name": "Port 8",
|
|
"op_mode": "switch",
|
|
"poe_caps": 8,
|
|
"poe_enable": false,
|
|
"poe_mode": "off",
|
|
"poe_voltage": "48.00",
|
|
"port_idx": 8,
|
|
"port_poe": true,
|
|
"portconf_id": "5a32aa4ee4babd4452422ddd22222",
|
|
"rx_broadcast": 0,
|
|
"rx_bytes": 0,
|
|
"rx_bytes-r": 0,
|
|
"rx_dropped": 0,
|
|
"rx_errors": 0,
|
|
"rx_multicast": 0,
|
|
"rx_packets": 0,
|
|
"satisfaction": 100,
|
|
"speed": 0,
|
|
"speed_caps": 1048623,
|
|
"stp_pathcost": 0,
|
|
"stp_state": "disabled",
|
|
"tx_broadcast": 0,
|
|
"tx_bytes": 0,
|
|
"tx_bytes-r": 0,
|
|
"tx_dropped": 0,
|
|
"tx_errors": 0,
|
|
"tx_multicast": 0,
|
|
"tx_packets": 0,
|
|
"up": false
|
|
}
|
|
],
|
|
"power_source": "262144",
|
|
"power_source_voltage": "48.00",
|
|
"prev_non_busy_state": 1,
|
|
"required_version": "3.7.16",
|
|
"rx_bytes": 100334873692,
|
|
"satisfaction": 98,
|
|
"serial": "F09F11223344",
|
|
"site_id": "5a32aa4ee4b0412345678910",
|
|
"ssh_session_table": [],
|
|
"start_connected_millis": 1587859250668,
|
|
"start_disconnected_millis": 1587859249151,
|
|
"stat": {
|
|
"sw": {
|
|
"bytes": 522138756790.0,
|
|
"datetime": "2020-04-26T00:00:00Z",
|
|
"duration": 316469000.0,
|
|
"o": "sw",
|
|
"oid": "f0:9f:11:22:33:44",
|
|
"port_2-rx_broadcast": 3728.0,
|
|
"port_2-rx_bytes": 76911368375.0,
|
|
"port_2-rx_multicast": 11056.0,
|
|
"port_2-rx_packets": 56426757.0,
|
|
"port_2-tx_broadcast": 188293.0,
|
|
"port_2-tx_bytes": 6099269315.0,
|
|
"port_2-tx_multicast": 650992.0,
|
|
"port_2-tx_packets": 24859744.0,
|
|
"port_4-rx_bytes": 1255789.0,
|
|
"port_4-rx_packets": 18703.0,
|
|
"port_4-tx_broadcast": 192021.0,
|
|
"port_4-tx_bytes": 156439725.0,
|
|
"port_4-tx_multicast": 651520.0,
|
|
"port_4-tx_packets": 862886.0,
|
|
"port_5-rx_broadcast": 10231.0,
|
|
"port_5-rx_bytes": 1916386586.0,
|
|
"port_5-rx_multicast": 33021.0,
|
|
"port_5-rx_packets": 14642662.0,
|
|
"port_5-tx_broadcast": 181790.0,
|
|
"port_5-tx_bytes": 36477482238.0,
|
|
"port_5-tx_multicast": 628931.0,
|
|
"port_5-tx_packets": 27718236.0,
|
|
"port_6-rx_broadcast": 19949.0,
|
|
"port_6-rx_bytes": 3988926804.0,
|
|
"port_6-rx_multicast": 258385.0,
|
|
"port_6-rx_packets": 26449642.0,
|
|
"port_6-tx_broadcast": 172072.0,
|
|
"port_6-tx_bytes": 216628215977.0,
|
|
"port_6-tx_dropped": 202.0,
|
|
"port_6-tx_multicast": 403675.0,
|
|
"port_6-tx_packets": 148081715.0,
|
|
"port_7-rx_broadcast": 148618.0,
|
|
"port_7-rx_bytes": 177986447879.0,
|
|
"port_7-rx_multicast": 211883.0,
|
|
"port_7-rx_packets": 119394527.0,
|
|
"port_7-tx_broadcast": 43403.0,
|
|
"port_7-tx_bytes": 1972964102.0,
|
|
"port_7-tx_multicast": 439638.0,
|
|
"port_7-tx_packets": 18291623.0,
|
|
"rx_broadcast": 182526.0,
|
|
"rx_bytes": 260804385433.0,
|
|
"rx_crypts": 0.0,
|
|
"rx_dropped": 0.0,
|
|
"rx_errors": 0.0,
|
|
"rx_frags": 0.0,
|
|
"rx_multicast": 514345.0,
|
|
"rx_packets": 216932291.0,
|
|
"site_id": "5a32aa4ee4b0412345678910",
|
|
"sw": "f0:9f:11:22:33:44",
|
|
"time": 1587859200000,
|
|
"tx_broadcast": 777579.0,
|
|
"tx_bytes": 261334371357.0,
|
|
"tx_dropped": 202.0,
|
|
"tx_errors": 0.0,
|
|
"tx_multicast": 2774756.0,
|
|
"tx_packets": 219814204.0,
|
|
"tx_retries": 0.0
|
|
}
|
|
},
|
|
"state": 1,
|
|
"stp_priority": "32768",
|
|
"stp_version": "rstp",
|
|
"switch_caps": {
|
|
"feature_caps": 1022,
|
|
"max_aggregate_sessions": 4,
|
|
"max_mirror_sessions": 1
|
|
},
|
|
"sys_error_caps": 0,
|
|
"sys_stats": {
|
|
"loadavg_1": "1.12",
|
|
"loadavg_15": "1.45",
|
|
"loadavg_5": "1.31",
|
|
"mem_buffer": 0,
|
|
"mem_total": 262402048,
|
|
"mem_used": 128737280
|
|
},
|
|
"syslog_key": "REDACTED",
|
|
"system-stats": {
|
|
"cpu": "56.3",
|
|
"mem": "49.1",
|
|
"uptime": "3971894"
|
|
},
|
|
"total_max_power": 0,
|
|
"two_phase_adopt": false,
|
|
"tx_bytes": 1109019728759,
|
|
"type": "usw",
|
|
"unsupported": false,
|
|
"unsupported_reason": 0,
|
|
"upgradable": true,
|
|
"upgrade_state": 0,
|
|
"upgrade_to_firmware": "4.0.80.10875",
|
|
"uplink": {
|
|
"full_duplex": true,
|
|
"ip": "192.168.0.8",
|
|
"mac": "f0:9f:11:22:33:44",
|
|
"max_speed": 1000,
|
|
"media": "GE",
|
|
"name": "eth0",
|
|
"netmask": "255.255.255.0",
|
|
"num_port": 8,
|
|
"port_idx": 2,
|
|
"rx_bytes": 1109019728759,
|
|
"rx_bytes-r": 240953,
|
|
"rx_dropped": 0,
|
|
"rx_errors": 0,
|
|
"rx_multicast": 0,
|
|
"rx_packets": 808013990,
|
|
"speed": 1000,
|
|
"tx_bytes": 100334873692,
|
|
"tx_bytes-r": 3480,
|
|
"tx_dropped": 0,
|
|
"tx_errors": 0,
|
|
"tx_packets": 356816368,
|
|
"type": "wire",
|
|
"up": true,
|
|
"uplink_mac": "78:8a:20:33:44:55"
|
|
},
|
|
"uplink_depth": 1,
|
|
"uptime": 3971894,
|
|
"user-num_sta": 4,
|
|
"version": "4.0.66.10832",
|
|
"x_aes_gcm": "REDACTED",
|
|
"x_authkey": "REDACTED",
|
|
"x_has_ssh_hostkey": "REDACTED",
|
|
"x_inform_authkey": "REDACTED",
|
|
"x_ssh_hostkey_fingerprint": "REDACTED"
|
|
}
|