- discovery: ping 探测存活 + ARP 解析 MAC,包级 Devices map,串行扫描 - stress: 脚本生成模式(BuildScript/ParseResults),ToolSet 工具检测,包级 Results map - report: 包级 Printed map,SaveAndPrintDeviceReport 保存+打印 - sshclient: 包级 RunCommand - workflow: 仅持有 config,Start() 固定循环,直接调用各包方法 - config: 移除 ScanConfig.Concurrency(串行扫描无需并发数)
36 lines
864 B
YAML
36 lines
864 B
YAML
# auto-check 配置文件
|
|
# 所有参数仅从本文件加载,按分类组织
|
|
|
|
# --- 网段扫描 ---
|
|
scan:
|
|
cidr: "192.168.1.0/24"
|
|
timeout: 3s
|
|
|
|
# --- SSH 认证 ---
|
|
ssh:
|
|
user: "root"
|
|
password: ""
|
|
key: ""
|
|
port: 22
|
|
|
|
# --- 压力测试 ---
|
|
stress:
|
|
types: "cpu,memory"
|
|
duration: 30s
|
|
threads: 4
|
|
|
|
# --- 工作流 ---
|
|
workflow:
|
|
interval: 10s
|
|
|
|
# --- 报告与打印 ---
|
|
report:
|
|
path: "reports"
|
|
print:
|
|
enabled: false # 是否自动打印报告
|
|
backend: "usb" # system=系统打印机 / escpos=网络热敏 / usb=USB直连 / file=文件
|
|
device: "" # system: 打印机名(空=默认), escpos: 192.168.1.100:9100
|
|
# usb: 空=自动(Win \\.\usb001 / Linux /dev/usb/lp0), 或指定设备路径
|
|
# file: 输出路径
|
|
width: 42 # 80mm 热敏纸行宽
|