Files
gandalf/log.txt

23 lines
30 KiB
Plaintext
Raw Normal View History

2025-02-08 00:32:25 -05:00
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): 10.10.10.1:443
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:urllib3.connectionpool:https://10.10.10.1:443 "GET /proxy/network/v2/api/site/default/device HTTP/1.1" 200 None
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:app:Response status: 200
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:app:Response headers: {'Server': 'nginx', 'Date': 'Sat, 08 Feb 2025 05:21:30 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Accept-Encoding', 'Access-Control-Allow-Credentials': 'false', 'Access-Control-Expose-Headers': 'Content-Disposition, Content-Range, Filename, Location, Range, Upload-Length, Upload-Offset, X-Connection-Type, X-Csrf-Token, X-File-Id, X-Token-Expire-Time, X-Updated-Csrf-Token', 'Referrer-Policy': 'no-referrer', 'Strict-Transport-Security': 'max-age=15552000; includeSubDomains', 'X-Content-Type-Options': 'nosniff', 'X-DNS-Prefetch-Control': 'off', 'X-Frame-Options': 'SAMEORIGIN', 'X-XSS-Protection': '1; mode=block', 'Content-Encoding': 'gzip'}
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:app:Raw response text: {"access_devices":[],"apollo_devices":[],"connect_devices":[],"drive_devices":[],"led_devices":[],"network_devices":[{"_id":"648b6a79e0dce15429a77871","adopt_state":0,"adoptable_when_upgraded":false,"adopted":true,"bytes-r":0,"connection_network_id":"629fd656424c5b052fa1c715","connection_network_name":"Main Network","countrycode_table":[],"default":false,"device_type":"MANAGED","disabled":false,"displayable_version":"2.2.6","download_speed_bytes_per_second":0,"ethernet_overrides":[],"fw_caps":0,"ip":"10.10.10.243","ipv4_lease_expiration_timestamp_seconds":1739077857,"is_access_point":false,"is_adoption_queued":false,"isolated":false,"last_connection_network_id":"629fd656424c5b052fa1c715","last_connection_network_name":"Main Network","last_seen":1738992084,"last_uplink":{"type":"wireless","uplink_device_name":"AP","uplink_mac":"d0:21:f9:42:65:54"},"license_state":"registered","locating":false,"lte_connected":false,"mac":"d0:21:f9:ca:ee:04","model":"UP6","model_in_eol":false,"rx_bytes":345105455253,"rx_bytes-r":237214,"rx_dropped":14721,"rx_errors":2225,"rx_packets":569019959,"satisfaction":87,"speed":10000,"speed_caps":1048928,"tx_bytes":455748957059,"tx_bytes-r":887106,"tx_dropped":0,"tx_errors":0,"tx_packets":566148932,"up":true}],"product_line":"NETWORK","radio_table":[],"radio_table_stats":[],"restarting":false,"rx_bytes":0,"rx_bytes-d":0,"satisfaction":94,"spectrum_scanning":false,"state":1,"sys_stats":{"loadavg_1":3.25,"loadavg_15":3.04,"loadavg_5":3.08,"mem_buffer":0,"mem_total":511627264,"mem_used":169635840},"system-stats":{"cpu":59.5,"mem":32.9,"uptime":446311},"tags":["connection_type_wired_device"],"tx_bytes":0,"tx_bytes-d":0,"type":"usw","unsupported":false,"unsupported_reason":0,"upgradable":false,"upgrade_state":0,"uplink":{"mac":"78:45:58:b1:bd:3a","name":"eth0","port_idx":26,"speed":10000,"type":"wire","uplink_device_name":"8SFP-AGG","uplink_mac":"78:45:58:6d:11:6a","uplink_remote_port":5},"uplink_table":[],"upload_speed_bytes_per_second":0,"uptime":446312,"usage_bytes":0.0,"vap_table":[],"version":"7.1.26.15869"}],"protect_devices":[{"_id":"f4:e2:c6:0c:c6:cd","connection_network_id":"629fd656424c5b052fa1c715","connection_network_name":"Main Network","default":false,"device_type":"CLIENT","displayable_version":"4.74.88","firmware_status":"UP_TO_DATE","icon_filename":"4080886f-4d9e-4071-8552-a893097999e2","icon_resolutions":[[25,25],[51,51],[101,101],[129,129],[257,257]],"icons":[{"height":25,"url":"https://static.ui.com/fingerprint/ui/icons/4080886f-4d9e-4071-8552-a893097999e2_25x25.png","width":25},{"height":51,"url":"https://static.ui.com/fingerprint/ui/icons/4080886f-4d9e-4071-8552-a893097999e2_51x51.png","width":51},{"height":101,"url":"https://static.ui.com/fingerprint/ui/icons/4080886f-4d9e-4071-8552-a893097999e2_101x101.png","width":101},{"height":129,"url":"https://static.ui.com/fingerprint/ui/icons/4080886f-4d9e-4071-8552-a893097999e2_129x129.png","width":129},{"height":257,"url":"https://static.ui.com/fingerprint/ui/icons/4080886f-4d9e-4071-8552-a893097999e2_257x257.png","width":257}],"ip":"10.10.10.218","ipv4_lease_expiration_timestamp_seconds":1739045601,"is_wired":true,"last_seen":1738992090,"mac":"f4:e2:c6:0c:c6:cd","model":"G4 Doorbell Pro PoE","name":"Doorbell","product_line":"PROTECT","state":1,"tags":["connected_unifi_client"],"uplink_mac":"d8:b3:70:93:cc:98","uptime":445164,"usage_bytes":0.0,"version":"UVC.S5L.v4.74.88.67.806d895.250124.1648","view_in_application":false,"wired_speed_megabits_per_second":1000},{"_id":"d0:21:f9:91:e0:e5","connection_network_id":"629fd656424c5b052fa1c715","connection_network_name":"Main Network","default":false,"device_type":"CLIENT","displayable_version":"4.74.88","essid":"UniFi Wireless","firmware_status":"UP_TO_DATE","icon_filename":"50c18cf8-6de0-4961-8a0e-95d65a6d31fe","icon_resolutions":[[25,25],[51,51],[101,101],[129,129],[257,257]],"icons":[{"height":25,"url":"https://static.ui.com/fingerprint/ui/icons/50c18cf8-6de0-4961-8a0e-95d65a6d31fe_25x25.png","width":25},{"height":51,"url":
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:app:Parsed JSON: {'access_devices': [], 'apollo_devices': [], 'connect_devices': [], 'drive_devices': [], 'led_devices': [], 'network_devices': [{'_id': '648b6a79e0dce15429a77871', 'adopt_state': 0, 'adoptable_when_upgraded': False, 'adopted': True, 'bytes-r': 0, 'connection_network_id': '629fd656424c5b052fa1c715', 'connection_network_name': 'Main Network', 'countrycode_table': [], 'default': False, 'device_type': 'MANAGED', 'disabled': False, 'displayable_version': '2.2.6', 'download_speed_bytes_per_second': 0, 'ethernet_overrides': [], 'fw_caps': 0, 'ip': '10.10.10.243', 'ipv4_lease_expiration_timestamp_seconds': 1739077857, 'is_access_point': False, 'is_adoption_queued': False, 'isolated': False, 'last_connection_network_id': '629fd656424c5b052fa1c715', 'last_connection_network_name': 'Main Network', 'last_seen': 1738992084, 'last_uplink': {'type': 'wireless', 'uplink_device_name': 'AP', 'uplink_mac': 'd0:21:f9:42:65:54'}, 'license_state': 'registered', 'locating': False, 'lte_connected': False, 'mac': 'd0:21:f9:ca:ee:04', 'model': 'UP6', 'model_in_eol': False, 'model_in_lts': False, 'model_incompatible': False, 'name': 'USP Strip', 'num_sta': 0, 'port_table': [], 'product_line': 'NETWORK', 'radio_table': [], 'radio_table_stats': [], 'restarting': False, 'rx_bytes': 0, 'rx_bytes-d': 0, 'satisfaction': 100, 'spectrum_scanning': False, 'state': 1, 'support_wifi6e': False, 'sys_stats': {'loadavg_1': 0.0, 'loadavg_15': 0.0, 'loadavg_5': 0.0, 'mem_buffer': 0, 'mem_total': 98304, 'mem_used': 84152}, 'system-stats': {'cpu': 0.0, 'mem': 0.0, 'uptime': 0}, 'tags': ['connection_type_wireless_device'], 'tx_bytes': 0, 'tx_bytes-d': 0, 'type': 'uap', 'unsupported': False, 'unsupported_reason': 0, 'upgradable': False, 'upgrade_state': 0, 'uplink': {'ap_mac': 'd0:21:f9:42:65:54', 'essid': 'element-e4935af3c573761f', 'radio_band': 'ng', 'type': 'wireless', 'uplink_device_name': 'AP', 'uplink_mac': 'd0:21:f9:42:65:54'}, 'uplink_table': [], 'upload_speed_bytes_per_second': 0, 'uptime': 151024, 'usage_bytes': 0.0, 'vap_table': [], 'version': '2.2.6.532'}, {'_id': '63780dc5eec8d7076eee4cd6', 'adopt_state': 0, 'adoptable_when_upgraded': False, 'adopted': True, 'bytes-r': 0, 'connection_network_id': '629fd656424c5b052fa1c715', 'connection_network_name': 'Main Network', 'countrycode_table': [], 'default': False, 'device_type': 'MANAGED', 'disabled': False, 'discovered_via': 'l2', 'displayable_version': '7.1.26', 'download_speed_bytes_per_second': 0, 'ethernet_overrides': [], 'fw_caps': 659093285, 'ip': '10.10.10.107', 'ipv4_lease_expiration_timestamp_seconds': 1739045795, 'is_access_point': False, 'is_adoption_queued': False, 'isolated': False, 'last_connection_network_id': '629fd656424c5b052fa1c715', 'last_connection_network_name': 'Main Network', 'last_seen': 1738992071, 'last_uplink': {'port_idx': 1, 'type': 'wire', 'uplink_device_name': '24RJ45-POE', 'uplink_mac': '78:45:58:b1:bd:3a', 'uplink_remote_port': 7}, 'license_state': 'registered', 'locating': False, 'lte_connected': False, 'mac': '60:22:32:ab:de:07', 'model': 'USPPDUP', 'model_in_eol': False, 'model_in_lts': False, 'model_incompatible': False, 'name': 'RPDU', 'num_sta': 0, 'port_table': [{'aggregated_by': False, 'autoneg': False, 'enable': True, 'full_duplex': True, 'is_uplink': True, 'media': 'FE', 'poe_caps': 0, 'poe_enable': False, 'port_idx': 1, 'port_poe': False, 'rx_bytes': 458527631, 'rx_bytes-r': 819, 'rx_dropped': 0, 'rx_errors': 0, 'rx_packets': 3374609, 'satisfaction': 100, 'speed': 100, 'speed_caps': 1048591, 'tx_bytes': 50538302, 'tx_bytes-r': 115, 'tx_dropped': 0, 'tx_errors': 0, 'tx_packets': 146576, 'up': True}], 'product_line': 'NETWORK', 'radio_table': [], 'radio_table_stats': [], 'restarting': False, 'rx_bytes': 0, 'rx_bytes-d': 0, 'satisfaction': 100, 'spectrum_scanning': False, 'state': 1, 'sys_stats': {'loadavg_1': 0.0, 'loadavg_15': 0.0, 'loadavg_5': 0.0, 'mem_buffer': 0, 'mem_total': 61648896, 'mem_used': 18903040}, 'system-stats': {'cpu': 1.5, 'mem': 30.7, 'uptime': 446331}, 'tags': ['connection_type_wired_
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:app:Processed devices: [{'name': 'USP Strip', 'ip': '10.10.10.243', 'type': 'uap', 'connection_type': 'copper', 'critical': False, 'device_id': 'd0:21:f9:ca:ee:04'}, {'name': 'RPDU', 'ip': '10.10.10.107', 'type': 'usw', 'connection_type': 'copper', 'critical': True, 'device_id': '60:22:32:ab:de:07'}, {'name': 'Dream Machine Pro', 'ip': '172.14.74.7', 'type': 'udm', 'connection_type': 'copper', 'critical': True, 'device_id': 'e0:63:da:80:55:2d'}, {'name': '8SFP-AGG', 'ip': '10.10.10.238', 'type': 'usw', 'connection_type': 'copper', 'critical': True, 'device_id': '78:45:58:6d:11:6a'}, {'name': 'USW Flex Mini', 'ip': '10.10.10.169', 'type': 'usw', 'connection_type': 'copper', 'critical': True, 'device_id': 'd0:21:f9:b2:7f:21'}, {'name': 'Cable Internet', 'ip': '192.168.100.1', 'type': 'uci', 'connection_type': 'copper', 'critical': False, 'device_id': 'd0:21:f9:05:34:4f'}, {'name': 'AP', 'ip': '10.10.10.154', 'type': 'uap', 'connection_type': 'copper', 'critical': False, 'device_id': 'd0:21:f9:42:65:54'}, {'name': '24RJ45-POE', 'ip': '10.10.10.139', 'type': 'usw', 'connection_type': 'copper', 'critical': True, 'device_id': '78:45:58:b1:bd:3a'}]
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:urllib3.connectionpool:https://10.10.10.1:443 "GET /proxy/network/v2/api/site/default/device/d0:21:f9:ca:ee:04 HTTP/1.1" 404 431
Feb 08 00:21:30 gandalf python3[5066]: ERROR:app:Failed to get device details: 404 Client Error: for url: https://10.10.10.1/proxy/network/v2/api/site/default/device/d0:21:f9:ca:ee:04
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:urllib3.connectionpool:https://10.10.10.1:443 "GET /proxy/network/v2/api/site/default/device/60:22:32:ab:de:07 HTTP/1.1" 404 431
Feb 08 00:21:30 gandalf python3[5066]: ERROR:app:Failed to get device details: 404 Client Error: for url: https://10.10.10.1/proxy/network/v2/api/site/default/device/60:22:32:ab:de:07
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:urllib3.connectionpool:https://10.10.10.1:443 "GET /proxy/network/v2/api/site/default/device/e0:63:da:80:55:2d HTTP/1.1" 404 431
Feb 08 00:21:30 gandalf python3[5066]: ERROR:app:Failed to get device details: 404 Client Error: for url: https://10.10.10.1/proxy/network/v2/api/site/default/device/e0:63:da:80:55:2d
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:urllib3.connectionpool:https://10.10.10.1:443 "GET /proxy/network/v2/api/site/default/device/78:45:58:6d:11:6a HTTP/1.1" 404 431
Feb 08 00:21:30 gandalf python3[5066]: ERROR:app:Failed to get device details: 404 Client Error: for url: https://10.10.10.1/proxy/network/v2/api/site/default/device/78:45:58:6d:11:6a
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:urllib3.connectionpool:https://10.10.10.1:443 "GET /proxy/network/v2/api/site/default/device/d0:21:f9:b2:7f:21 HTTP/1.1" 404 431
Feb 08 00:21:30 gandalf python3[5066]: ERROR:app:Failed to get device details: 404 Client Error: for url: https://10.10.10.1/proxy/network/v2/api/site/default/device/d0:21:f9:b2:7f:21
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:urllib3.connectionpool:https://10.10.10.1:443 "GET /proxy/network/v2/api/site/default/device/d0:21:f9:05:34:4f HTTP/1.1" 404 431
Feb 08 00:21:30 gandalf python3[5066]: ERROR:app:Failed to get device details: 404 Client Error: for url: https://10.10.10.1/proxy/network/v2/api/site/default/device/d0:21:f9:05:34:4f
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:urllib3.connectionpool:https://10.10.10.1:443 "GET /proxy/network/v2/api/site/default/device/d0:21:f9:42:65:54 HTTP/1.1" 404 431
Feb 08 00:21:30 gandalf python3[5066]: ERROR:app:Failed to get device details: 404 Client Error: for url: https://10.10.10.1/proxy/network/v2/api/site/default/device/d0:21:f9:42:65:54
Feb 08 00:21:30 gandalf python3[5066]: DEBUG:urllib3.connectionpool:https://10.10.10.1:443 "GET /proxy/network/v2/api/site/default/device/78:45:58:b1:bd:3a HTTP/1.1" 404 431
Feb 08 00:21:30 gandalf python3[5066]: ERROR:app:Failed to get device details: 404 Client Error: for url: https://10.10.10.1/proxy/network/v2/api/site/default/device/78:45:58:b1:bd:3a