refactor(discovery): use ping for discovery and fill MAC via SSH

This commit is contained in:
12600k-rog-d4
2026-08-12 21:45:51 +08:00
parent 906bb54aaa
commit 175c5e8c6c
21 changed files with 542 additions and 310 deletions

View File

@@ -60,7 +60,7 @@ func (w *Workflow) round() {
// 1. 扫描discovery 包),更新设备表
cfg := w.cfg
discovery.NewScanner(cfg.Scan.CIDR, cfg.Scan.Timeout).Discover()
discovery.NewScanner(cfg.Scan.CIDR, cfg.Scan.Timeout, cfg.Scan.Concurrency).Discover()
fmt.Printf(" [扫描] 设备 %d 台\n", len(discovery.Devices))
// 2. 压测未通过设备stress.TestDevice 执行report 保存+打印)