feat: add automation scripts for NAS fixes, Authentik monitoring, and Technitium DNS management
This commit is contained in:
14
scripts/search_udm_transcript.py
Normal file
14
scripts/search_udm_transcript.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import json
|
||||
|
||||
with open(r"C:\Users\Snarf\.gemini\antigravity\brain\67541ce0-c72c-4983-b7f8-7f29d818f6c0\.system_generated\logs\transcript.jsonl", "r", encoding="utf-8") as f:
|
||||
for line in f:
|
||||
data = json.loads(line)
|
||||
content = str(data.get("content", ""))
|
||||
calls = str(data.get("tool_calls", ""))
|
||||
if "UDM" in content or "UDM" in calls or "unifi" in content.lower():
|
||||
calls_list = data.get("tool_calls", [])
|
||||
for c in calls_list:
|
||||
args = c.get("args", {})
|
||||
if "CommandLine" in args and ("udm" in args["CommandLine"].lower() or "140.44.44" in args["CommandLine"] or "14.44.4.1" in args["CommandLine"]):
|
||||
print("Step", data.get("step_index"), ":", args["CommandLine"][:120])
|
||||
|
||||
Reference in New Issue
Block a user