mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-19 22:20:46 +08:00
Treat missing MCP binding keys as empty and stress batch-only multi-NE CLI in ops skills.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
4827278a9c
commit
4660cc7507
6 changed files with 93 additions and 12 deletions
|
|
@ -38,7 +38,8 @@ description: 面向 ops 专家的 netx UME 运维作业手册。覆盖告警查
|
|||
4. 自定义聚合:`aggregateUmeAlarmsRaw`(`group_by=alarm_host_name` 等)。
|
||||
5. SQL:`sqlQueryUme`(仅 SELECT;设 `statement_timeout_ms`)。
|
||||
6. **告警关联拓扑**:两台相关网元取 `ne_id` → `findTopologyPaths`(最短路径优先)。
|
||||
7. **登设备查 CLI**:见 `ops-netx-managed-ne-playbook`;多台用一次 `execManagedNe` batch(同命令用 `ne_ids|ume_ne_ids`;每台命令不同用 `targets=[{ume_ne_id, commands},…]`),勿逐台循环。
|
||||
7. **登设备查 CLI**:见 `ops-netx-managed-ne-playbook`(含对/错 JSON 示例);多台必须 **一次** `execManagedNe` batch(同命令用 `ne_ids|ume_ne_ids`;每台命令不同用 `targets=[{ume_ne_id, commands},…]`)。同轮连发多次单台 `execManagedNe` **不会并行**(stdio 串行),禁止。
|
||||
- 例:`{"ume_ne_ids":["uuid-a","uuid-b"],"commands":["show version"]}`;混厂商用 `targets=[…]` 仍一次调用。
|
||||
|
||||
## 快速决策树
|
||||
|
||||
|
|
|
|||
|
|
@ -88,4 +88,20 @@ limit 50
|
|||
## 6) 登设备
|
||||
|
||||
- 见 `ops-netx-managed-ne-playbook`
|
||||
- UME `ne_id` → `listCliTargets` / `execManagedNe(ume_ne_id=…)`(需已配 UME→CLI);多台同 show → `execManagedNe(ume_ne_ids=[…], commands=[…])` 一批;每台命令不同 → `execManagedNe(targets=[{ume_ne_id, commands},…])` 一批,勿逐台循环
|
||||
- UME `ne_id` → `listCliTargets` / `execManagedNe(ume_ne_id=…)`(需已配 UME→CLI);多台同 show → `execManagedNe(ume_ne_ids=[…], commands=[…])` **一次**;每台命令不同 → `execManagedNe(targets=[{ume_ne_id, commands},…])` **一次**。同轮 N 次单台调用会串行,不算并行;勿逐台循环 / fan-out
|
||||
|
||||
示例:
|
||||
|
||||
```json
|
||||
// ✓ 同命令
|
||||
{"ume_ne_ids": ["uuid-1", "uuid-2"], "commands": ["show version"], "read_timeout_sec": 60}
|
||||
|
||||
// ✓ 混厂商
|
||||
{"targets": [
|
||||
{"ume_ne_id": "uuid-zte", "commands": ["show opticalinfo brief"]},
|
||||
{"ume_ne_id": "uuid-hw", "commands": ["display optical-module brief"]}
|
||||
]}
|
||||
|
||||
// ✗ 同轮三次单台(串行)— 禁止
|
||||
// execManagedNe(ume_ne_id=uuid-1, …); execManagedNe(ume_ne_id=uuid-2, …); …
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue