mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 04:40:45 +08:00
docs(netx): allow ping/ping6 in execManagedNe CLI policy
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
9b58479e92
commit
35a66dcc44
2 changed files with 3 additions and 2 deletions
|
|
@ -769,7 +769,7 @@ def netx_exec_managed_ne_tool() -> ToolSpec:
|
|||
name="netx_exec_managed_ne",
|
||||
description=(
|
||||
"经 netx 登录「网元管理」中的设备并执行只读 CLI(POST /v1/managed-ne/exec)。"
|
||||
"每条命令须以 show 或 display 开头(仅只读查询,禁止 ping/get/traceroute 等);"
|
||||
"每条命令须以 show / display / ping / ping6 开头(只读查询与连通探测,禁止 get/traceroute/改配置等);"
|
||||
"禁止管道符、分号及改配置类命令;单次最多 5 条;默认读超时 60s。"
|
||||
"返回合并输出(含命令回显);失败时含 error/detail。"
|
||||
"先 netx_list_managed_ne 解析 ne_id;若 connect_status 非 pass 可先 netx_get_managed_ne 看 connect_detail。"
|
||||
|
|
|
|||
|
|
@ -23,12 +23,13 @@ description: 面向 ops 专家的 netx 纳管网元(网元管理)作业手
|
|||
|
||||
## CLI 约束(服务端强制)
|
||||
|
||||
- 允许前缀:`show `、`display `、`get `、`ping `、`traceroute `、`terminal length `、`?`
|
||||
- 允许前缀:`show `、`display `、`ping `、`ping6 `(服务端强制)
|
||||
- 禁止:`|`、`;`、换行拼接、改配置类(configure/write/copy/reload/delete 等)
|
||||
- 示例:
|
||||
- 思科:`show version`、`show configuration | include hostname` **不可**(含 `|`)→ 改用 `show configuration` 或连通测试已解析的 hostname
|
||||
- 华为:`display version`、`display interface brief`
|
||||
- ZTE:`show version`、`show interface`
|
||||
- 连通:`ping 192.168.0.1`、`ping6 2001::db8::1`
|
||||
|
||||
## 排障流程
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue