当前位置: 首页 > Skill >

Fabric AIops

Fabric AIops

Fabric AIops

Use this skill whenever the user needs to operate a network fabric through a controller API — Cisco Meraki Dashboard (full read+write), Cisco Catalyst Center / DNA Center (read subset), Arista CloudVision Portal / CVP (read subset), or UniFi Network (self-hosted controller / UniFi OS console; read subset + device restart) — a one-shot fabric health overview; organization/site/container reads (list/get, licensing, admins, org-wide device statuses, API usage); network reads (list/get, VLANs, healt

0.15.1 2026.11.26 850
获取Skill文件查看使用说明
作 者:苏辰 许可证: 更新时间:2026.11.26
本文目录展开

Fabric AIops

Disclaimer: Community-maintained open-source project, not affiliated with, endorsed by, or sponsored by Cisco, Meraki, Arista, Ubiquiti, or any network-controller vendor. Product and trademark names belong to their owners. Source at github.com/AIops-tools/Fabric-AIops under the MIT license.

Governed network-fabric controller operations — 34 MCP tools over four platforms (Cisco Meraki Dashboard: full read+write; Cisco Catalyst Center and Arista CloudVision Portal: read subsets; UniFi Network: read subset + device restart), every one wrapped with the bundled @governed_tool harness: a local unified audit log under ~/.fabric-aiops/, token/runaway budget guard, undo-token recording, and descriptive risk tiers. The controller secret is stored encrypted (~/.fabric-aiops/secrets.enc, Fernet + scrypt) — never plaintext on disk.

Standalone: the governance harness is bundled in the package (fabric_aiops.governance) — fabric-aiops has no external skill-family dependency. The test suite is mock-based; no platform has yet been exercised against a live controller (see docs/VERIFICATION.md).

Platform support

Platform platform: Coverage Auth
Cisco Meraki Dashboard meraki full (all reads + all 8 writes) API key (Bearer / X-Cisco-Meraki-API-Key)
Cisco Catalyst Center catalyst read subset: sites (as orgs/networks), device+site+client health, issues→alerts, inventory, interface stats username:password → short-lived X-Auth-Token (auto-refresh on 401)
Arista CloudVision Portal cvp read subset: containers (as orgs/networks), inventory (+ complianceCode drift signal), events→alerts, users→admins service-account token (Bearer)
UniFi Network unifi read subset: sites (as orgs/networks), stat/device inventory+statuses, stat/health, alarms→alerts, stat/sta clients, device port_table→switch ports; plus the device-restart write (cmd/devmgr) API key (X-API-KEY, stateless); base_url = classic https://<host>:8443 or UniFi OS console https://<console>/proxy/network

Ops a platform does not map — and every write on catalyst/cvp (on unifi, every write except reboot) — return a teaching "not supported on <platform> yet — open an issue or PR" error, never a silent no-op. Full matrix in the repo README.

What This Skill Does

Domain Tools Count Read or Write
Overview fabric fleet overview 1 1 read
Organizations list/get, licensing, admins, device statuses, API usage 6 6 read
Networks list/get, VLANs, health alerts, traffic 5 5 read
Devices inventory (by model), status, uplinks, switch ports, SSIDs 5 5 read
Clients list, detail, usage, connectivity 4 4 read
Health (flagship) uplink loss/latency RCA, network health score, config template drift 3 3 read
Remediation reboot, claim, remove, bind, unbind 5 5 write (high)
update device, update VLAN 2 2 write (medium)
blink LEDs 1 1 write (low)
Undo list recorded reversible writes 1 1 read
apply a recorded inverse (governed, single-use, dry_run) 1 1 write (medium)

network_health_score and config_template_drift are injected-only (they score data you already hold); uplink_loss_and_latency_rca accepts injected records for offline analysis, or pulls live from a configured target. Meraki device models carry a product-type prefix: MX appliance, MS switch, MR wireless AP, MV camera, MG cellular gateway.

Quick Install

uv tool install fabric-aiops
fabric-aiops init       # interactive wizard: platform choice (meraki/catalyst/cvp/unifi) + encrypted secret
fabric-aiops doctor

When to Use This Skill

  • Triage an organization (overview): network count + device status/product rollup
  • Find the worst WAN uplinks (health uplink-rca / uplink_loss_and_latency_rca): ranked by loss + latency with a likely cause and action
  • Score fleet health per network (health score / network_health_score): a composite 0-100, worst first, every component shown
  • List/inspect organizations, networks, devices (by model), and clients
  • Reboot/blink a device, update device or VLAN attributes (reversible), claim/remove devices, or bind/unbind a config template — all with dry-run + double-confirm

Do NOT use when the target is OT/industrial equipment (use industrial-aiops), a hypervisor, a storage appliance, a backup product, a container cluster, or device-level CLI/SSH network automation.

Related Skills — Skill Routing

If the user wants… Use
Cisco Meraki fabric: uplinks, health, config templates, device lifecycle fabric-aiops (this skill)
Cisco Catalyst Center (DNA Center): site/device/client health, issues, inventory fabric-aiops (this skill, platform: catalyst)
Arista CloudVision Portal: inventory, compliance drift signal, events fabric-aiops (this skill, platform: cvp)
UniFi Network (self-hosted controller / UniFi OS console): site health, alarms, clients, device restart fabric-aiops (this skill, platform: unifi)
OT / industrial edge (Modbus, OPC-UA, PLC, PROFINET) the industrial-aiops line
Hypervisor VM lifecycle (power, snapshot, migrate) a hypervisor ops skill
Container/cluster lifecycle a cluster ops skill

Common Workflows

"The branch VPN keeps dropping" — diagnose degraded WAN uplinks

  1. fabric-aiops health uplink-rca → worst MX WAN uplinks ranked by avg loss + latency, each citing the measured numbers plus a likely cause and action
  2. fabric-aiops health uplink-rca --loss-pct 2 --latency-ms 100 → tighten the thresholds if nothing crosses the defaults but users still complain
  3. fabric-aiops device uplinks → the raw per-appliance uplink statuses across the org (WAN1/WAN2, active vs failover) behind the ranking — confirm the flagged appliance rather than trusting the summary
  4. fabric-aiops network alerts <networkId> → check whether the controller already raised a matching alert (independent corroboration before you touch anything)
  5. Failure branch: if the RCA returns no uplink records at all, the org has no appliances reporting uplink telemetry, or the API key lacks org-wide read — run fabric-aiops doctor and re-check the org id with fabric-aiops org list rather than assuming the WAN is healthy.

Rank the fleet and fix the worst network's device attributes (reversible)

  1. fabric-aiops overview → org-level rollup: network count and device status/product mix
  2. fabric-aiops health score → composite 0-100 per network, worst first, with every scoring component shown
  3. fabric-aiops org device-statuses → find the offline/alerting devices dragging the worst network's score
  4. fabric-aiops device status <serial> → confirm the device before changing it
  5. fabric-aiops remediate update-device <serial> '{"name":"branch-ap-01"}' --dry-run → preview the exact PUT /devices/<serial> call; then run without --dry-run (double confirmation). The real before-state is fetched first and recorded as a faithful inverse
  6. Failure branch: wrong attribute or wrong device — fabric-aiops undo list, then fabric-aiops undo apply <id> restores the captured prior attributes. Re-run fabric-aiops device status <serial> to confirm the restore landed rather than trusting the undo's success message.

Bring a drifted network back to its config template (reversible)

  1. fabric-aiops network list → the networks in scope and their ids
  2. Pass the template plus its bound networks to config_template_drift(template=..., networks=[...]) → the settings that deviate, per network
  3. fabric-aiops network vlans <networkId> → confirm the drifted VLAN's current values before changing anything
  4. Fix the specific setting — fabric-aiops remediate update-vlan <networkId> <vlanId> '{"name":"data"}' --dry-run, then for real — or re-establish the binding itself: fabric-aiops remediate bind <networkId> <templateId> --dry-run, then without --dry-run (double confirmation). Both capture the real before-state and record an inverse descriptor (for bind, the inverse is unbind or a rebind to the prior template)
  5. Failure branch: if the rebind makes things worse, fabric-aiops undo apply <id> returns the network to its captured prior binding; fabric-aiops remediate unbind <networkId> is the manual escape hatch. Re-run config_template_drift to confirm the drift actually cleared instead of trusting the write's success message.

Stage a replacement device into a branch network

  1. fabric-aiops device inventory → confirm the replacement serial is in the org inventory and unassigned
  2. fabric-aiops network get <networkId> → confirm the target network
  3. fabric-aiops remediate claim <networkId> <serial> --dry-run → preview POST /networks/<networkId>/devices/claim; then run for real (double confirmation) — the inverse (remove from network) is recorded
  4. fabric-aiops remediate blink-leds <serial> --duration 30 → low-risk physical confirmation that you are at the right box in the rack
  5. fabric-aiops health score → confirm the network's score recovers once the device reports in
  6. Failure branch: wrong network — fabric-aiops undo apply <id> or fabric-aiops remediate remove <networkId> <serial>. Note fabric-aiops remediate reboot <serial> is no undo by construction (a reboot has no safe inverse); it records only the before-state, so use it last, not as a first response.

Offline analysis (no live controller)

  1. Export the org's uplink, device-status, and template data to JSON
  2. Feed it straight to the analysis tools — uplink_loss_and_latency_rca(records=[...]), network_health_score(device_statuses=[...]), config_template_drift(template=..., networks=[...]) — no connection or credentials required
  3. Failure branch: a tool that rejects the injected records means the export is missing fields the analysis needs (loss/latency samples, device status, template settings) — re-export rather than hand-editing, so the findings stay traceable to the controller.

Governance & Safety

The skill delivers reads and writes and records them; it does not decide whether a write is permitted. That is your agent's judgement, or the permission of the account you connect it with (a Meraki API key whose admin has read-only organization access — writes then fail at the controller). There is no read-only switch, policy file, or approval gate.

  • Audit is the guarantee, and it is not bypassable. Every operation — MCP and CLI alike — is logged to ~/.fabric-aiops/audit.db (relocatable via FABRIC_AIOPS_HOME): params, result, status, duration, and the risk tier. The CLI writes the same row the MCP path does.
  • FABRIC_AUDIT_APPROVED_BY / FABRIC_AUDIT_RATIONALE are optional annotations recorded on the audit row (who/why); they are never required and never block.
  • Runaway guard — a safety backstop, not authorization: the same call looped in a tight window trips a circuit breaker. Disable with FABRIC_RUNAWAY_MAX=0.
  • Destructive writes support --dry-run / dry_run=True and double confirmation at the CLI.
  • Mutating/reversible writes fetch the real before-state and record an inverse descriptor (update_device/update_network_vlan→restore prior values, claim↔remove, bind↔unbind/rebind); irreversible ops (reboot_device, blink_device_leds) record only the before-state.

References

  • references/capabilities.md — full tool + field reference
  • references/cli-reference.md — CLI command reference
  • references/setup-guide.md — onboarding, credentials, and connectivity

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Fabric AIops
    • Platform support
    • What This Skill Does
    • Quick Install
    • When to Use This Skill
    • Related Skills — Skill Routing
    • Common Workflows
      • "The branch VPN keeps dropping" — diagnose degraded WAN uplinks
      • Rank the fleet and fix the worst network's device attributes (reversible)
      • Bring a drifted network back to its config template (reversible)
      • Stage a replacement device into a branch network
      • Offline analysis (no live controller)
    • Governance & Safety
    • References
  • 项目或源文件

相关 Skill

更多
UniFi Network UniFi Network 通过本地网关 API(Cloud Gateway Ultra / UniFi OS)查询和监控 UniFi 网络。当用户要求“检查 UniFi”、“列出 UniFi 设备”、“显示 …”时使用。
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...