ensp_send_command
Sends one Telnet command to a Huawei eNSP device and returns its output, duration, and error flag, so you can verify or correct commands before continuing configuration.
Instructions
下发单条命令,返回命令输出、耗时与命令层报错标记。
errored=True 表示设备回显中包含 Error:(如命令不存在 / 参数错误),
此时应据 errors 回显修正命令后重试,而不是继续下发后续配置。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| session_id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||