← 返回
未分类 中文

Net Detective

Run detailed network diagnostics including DNS resolution, traceroute, MTU, and speed tests, then provide a clear plain-English report explaining any issues...
执行详细网络诊断,包括DNS解析、路由追踪、MTU和网速测试,并提供清晰易懂的英文报告,解释发现的问题。
newageinvestments25-byte newageinvestments25-byte 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 323
下载
💾 0
安装
1
版本
#latest

概述

Net Detective

Run structured network diagnostics and explain findings in plain English.

Scripts

  • scripts/diagnose.py — orchestrates all tests, outputs unified JSON
  • scripts/dns_check.py — tests DNS resolution across Google, Cloudflare, and system resolvers
  • scripts/speedtest.py — measures download throughput via curl (no external packages)
  • scripts/history.py — records results over time, detects anomalies vs baseline
  • scripts/report.py — converts diagnostic JSON into a plain-English markdown report

All scripts use Python stdlib only. Cross-platform: macOS and Linux.

Reference references/diagnostic-guide.md for what each test measures and common failure patterns.

Standard Workflow

1. Run the full diagnostic

python3 scripts/diagnose.py > /tmp/net-diag.json

Add --speed to include a bandwidth test (adds ~20s):

python3 scripts/diagnose.py --speed > /tmp/net-diag.json

Skip traceroute or MTU if time-constrained:

python3 scripts/diagnose.py --no-traceroute --no-mtu > /tmp/net-diag.json

2. Compare against history (if available)

python3 scripts/history.py --compare /tmp/net-diag.json > /tmp/net-history.json

If no history exists yet, skip this step.

3. Generate the report

Without history:

python3 scripts/report.py /tmp/net-diag.json

With history comparison:

python3 scripts/report.py /tmp/net-diag.json --history-compare /tmp/net-history.json

4. Record result to history

python3 scripts/history.py --record /tmp/net-diag.json

Do this after every diagnostic run to build a baseline over time.

Flags Reference

ScriptFlagEffect
----------------------
diagnose.py--speedInclude bandwidth test
diagnose.py--no-tracerouteSkip traceroute (faster)
diagnose.py--no-mtuSkip MTU detection
speedtest.py--quickOnly 100kb + 1mb tests
history.py--record Save result to history
history.py--compare Compare vs baseline
history.py--showPrint current baseline

Interpreting Results

  • DNS failures/slowness — websites appear down even when servers are up; most common cause of "internet is broken" when pings still work
  • Packet loss at early hops (1–3) — local network issue (router, cable, Wi-Fi)
  • Packet loss at hops 3–6 — ISP problem, outside your control
  • High latency, no loss — congestion, either local or upstream
  • MTU < 1472 — fragmentation; common with VPNs or PPPoE connections
  • Speed drop but latency fine — possible ISP throttling

Read references/diagnostic-guide.md for full pattern descriptions and remediation steps.

Presenting Findings to the User

  • Lead with the headline finding, not raw numbers
  • Reference baseline comparisons when available ("This is 3x slower than your normal")
  • Give actionable next steps, not just observations
  • If the issue is outside the user's control (ISP), say so clearly

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 08:14 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 472 📥 78,787
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 31,046
ai-agent

Workflow Crystallizer

newageinvestments25-byte
分析记忆日志,检测重复出现的模式,并建议自动化(cron 任务、技能或工作流快捷方式)。代理会逐步构建自己的快捷方式。
★ 0 📥 519