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 回显修正命令后重试,而不是继续下发后续配置。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id_or_name": "<session_id_or_name>",
"command": "<command>"
},
"name": "ensp_send_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| session_id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||