device_fetch_config
Fetches device configuration from Huawei eNSP devices, optionally saves to file, compares with baseline, and provides diff output. Does not write on failure or timeout.
Instructions
读回运行配置;save_to 可保存 UTF-8 文件,compare_with 可与基线文件比较。
diff 同时提供 identical、onlyOnDevice、onlyInFile 和带上下文的 unifiedDiff, 保留行顺序及重复行。命令失败或超时不写出配置文件。登录参数与 device_exec 相同。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 127.0.0.1 | |
| target | Yes | ||
| save_to | No | ||
| password | No | ||
| username | No | ||
| topo_path | No | ||
| compare_with | No | ||
| new_password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |