ensp_send_commands
Batch-send CLI commands to Huawei eNSP devices over Telnet, returning per-command results; optionally halt on errors and auto-diagnose failures.
Instructions
批量下发命令,每条命令返回独立的 :class:TelnetResult。
stop_on_error=True 时,遇到连接错误 或 设备命令报错(errored)会立刻中断。
auto_diagnose=True 时,对每条失败命令自动调用诊断引擎,返回 diagnosis 字段。
返回中 has_error 汇总是否存在任意一条命令报错。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes | ||
| auto_diagnose | No | ||
| stop_on_error | No | ||
| session_id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||