Metadata-Version: 2.4
Name: netops-toolkit
Version: 0.4.1
Summary: Network engineer automation toolkit: batch info collection, config search, MAC/IP locate, topology map, compliance audit (H3C/Huawei/Cisco/Ruijie)
Author: BG8CFB
License: MIT
Project-URL: Homepage, https://bg8cfb.github.io/netops-toolkit/
Project-URL: Source, https://github.com/BG8CFB/netops-toolkit
Keywords: network,automation,h3c,huawei,cisco,ruijie,netops,sysadmin,audit,topology,switch,cli
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Telecommunications Industry
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: System :: Networking
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: paramiko>=3.4
Requires-Dist: PyYAML>=6.0
Dynamic: license-file

# netops-toolkit

> 网络工程师自动化小工具集 — H3C / 华为 / 思科 / 锐捷
> network automation toolkit / 批量采集 / 配置审计 / 网络运维脚本

```bash
pip install netops-toolkit
```

## 三个免费命令

```bash
# 1. 批量采集设备信息(版本/CPU/内存/接口) -> CSV
netops-toolkit info devices.yml -o info.csv

# 2. 在配置备份目录搜索 IP/MAC 出现位置
netops-toolkit find backups/ 192.168.10.23

# 3. 离线配置合规审计(telnet/弱社区串/http管理) -> CSV
netops-toolkit audit backups/ -o audit.csv
```

设备清单 devices.yml:

```yaml
devices:
  - name: core-sw1
    host: 192.168.1.1
    vendor: h3c        # h3c/huawei/cisco/ruijie
    username: admin
```

## Pro 版（¥59, 12 个脚本）

批量配置下发(模板+diff确认) / 全网端口定位 / 接口周报 / VLAN 分布图 / STP 根桥审计 / 批量重启 / syslog 批量配置 / DHCP Snooping 核查 …
购买: 2945362558@qq.com（微信/支付宝）

## 相关项目

- [netcfg-vault](https://github.com/BG8CFB/netcfg-vault) — 配置备份 + AES-256-GCM 加密库
- [netops-cheatsheets](https://github.com/BG8CFB/netops-cheatsheets) — 三厂商速查表
- [netops-scripts](https://github.com/BG8CFB/netops-scripts) — Pro 脚本包仓库

MIT License

## 拓扑提取 (v0.4.0+)

`netops-toolkit topology backups/ -o edges.csv --mermaid topo.mmd` 解析备份目录里 display lldp neighbor brief / show cdp neighbor 输出，生成邻接表 CSV 和 Mermaid 拓扑图。
