ensp_diagnose_error
Diagnose a command error from a Huawei eNSP device to obtain root cause analysis, severity, and fix suggestions.
Instructions
对一条命令错误进行智能诊断,返回根因分析与修复建议。
参数:
session_id_or_name:会话 ID 或设备名error_text:设备回显中的错误文本(如ensp_send_command返回的errors)command:触发该错误的命令(可选,用于更精准的诊断)
返回:
category:错误分类标签severity:严重级别(critical/error/warning/info)root_causes:可能的根因列表probe_commands:建议先执行的探查命令fix_suggestions:修复建议列表confidence:诊断置信度(high/medium/low)
使用场景:
当 ensp_send_command 返回 errored=True 时,将 errors 字段
传入本工具获取诊断,而不是直接放弃或盲目重试。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | No | ||
| error_text | Yes | ||
| session_id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||