← 返回
未分类 中文

Network Config

A powerful open-source tool for managing networks and troubleshooting network problems! network-config, c#, aws-ssm, dns, dns-lookup, icmp.
强大的开源网络管理和故障排查工具,支持 network-config、C#、AWS SSM、DNS、DNS 查询、ICMP。
bytesagain3 bytesagain3 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 449
下载
💾 16
安装
1
版本
#latest

概述

Network Config

Network Config v2.0.0 — a sysops toolkit for scanning, monitoring, alerting, benchmarking, and managing network configurations from the command line. All data is stored locally with full history tracking, search, and multi-format export.

Commands

Run network-config [args] to use. Each data command accepts optional input — with no arguments it shows recent entries; with arguments it records a new entry.

CommandDescription
----------------------
scan [input]Scan network configurations and record findings
monitor [input]Monitor network state and log observations
report [input]Generate or record network reports
alert [input]Create and review network alerts
top [input]Track top-level network metrics
usage [input]Record and review network usage data
check [input]Run and log network health checks
fix [input]Document network fixes applied
cleanup [input]Log network cleanup operations
backup [input]Record network config backups
restore [input]Log network config restorations
log [input]General-purpose network logging
benchmark [input]Record network benchmark results
compare [input]Log network comparison data
statsShow summary statistics across all entry types
export Export all data (formats: json, csv, txt)
search Full-text search across all log entries
recentShow the 20 most recent history entries
statusHealth check — version, data dir, entry count, disk usage
helpShow built-in help message
versionPrint version string (network-config v2.0.0)

Features

  • 20+ subcommands covering the full network config lifecycle
  • Local-first storage — all data in ~/.local/share/network-config/ as plain-text logs
  • Timestamped entries — every record includes YYYY-MM-DD HH:MM timestamps
  • Unified history loghistory.log tracks every action for auditability
  • Multi-format export — JSON, CSV, and plain-text export built in
  • Full-text search — grep-based search across all log files
  • Zero external dependencies — pure Bash, runs anywhere
  • Automatic data directory creation — no setup required

Data Storage

All data is stored in ~/.local/share/network-config/:

  • scan.log, monitor.log, report.log, alert.log, top.log, usage.log, check.log, fix.log, cleanup.log, backup.log, restore.log, log.log, benchmark.log, compare.log — per-command entry logs
  • history.log — unified audit trail of all operations
  • export.json, export.csv, export.txt — generated export files

Each entry is stored as YYYY-MM-DD HH:MM| (pipe-delimited).

Override the data directory by setting NETWORK_CONFIG_DIR (not yet wired — default is ~/.local/share/network-config/).

Requirements

  • Bash 4.0+ (uses set -euo pipefail)
  • Standard Unix utilities: date, wc, du, tail, grep, sed, cat, basename
  • No root privileges required
  • No internet connection required

When to Use

  1. Recording network scan results — run network-config scan "192.168.1.0/24 — 14 hosts found" after scanning your subnet
  2. Monitoring network state over time — use network-config monitor "latency 12ms to gateway" to build a time-series log
  3. Tracking alerts and incidents — log alerts with network-config alert "DNS resolution failing for api.example.com" for later review
  4. Benchmarking and comparing configs — record benchmark results and compare configurations across environments
  5. Backing up and restoring configurations — document backup/restore operations with network-config backup and network-config restore

Examples

# Show all available commands
network-config help

# Record a network scan result
network-config scan "Found 23 active hosts on 10.0.0.0/24"

# Log a monitoring observation
network-config monitor "WAN latency spike: 85ms avg over last hour"

# Create an alert entry
network-config alert "Interface eth0 dropped 12 packets in 5 min"

# Record a benchmark
network-config benchmark "iperf3 TCP throughput: 940 Mbps"

# View summary statistics
network-config stats

# Search all logs for a term
network-config search "eth0"

# Export everything to JSON
network-config export json

# Check tool health
network-config status

# View recent activity
network-config recent

How It Works

Network Config stores all data locally in ~/.local/share/network-config/. Each command logs activity with timestamps for full traceability. When called without arguments, data commands display their most recent 20 entries. When called with arguments, they append a new timestamped entry and update the unified history log.


Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 00:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

education

Thesis Helper

bytesagain3
论文写作助手。论文大纲生成、文献综述框架、摘要生成、引用格式转换、格式规范检查、答辩准备。Thesis helper with outline generation, literature review, abstract writing,
★ 2 📥 3,789
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 31,010
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

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