返回顶部
u

unifiUniFi网络查询

Query and monitor a UniFi network using a UniFi Integration API key (X-API-KEY) plus compatible read-only classic UniFi Network endpoints. Use when the user asks to check UniFi, list UniFi devices, show who is on the network, inspect UniFi clients, review UniFi health, list sites, review WLANs/networks, check alarms, inspect top apps/DPI availability, or get a UniFi dashboard/overview from a Cloud Gateway or UniFi OS console.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.3
安全检测
已通过
93
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

unifi

UniFi 集成 API

通过 UniFi API 密钥使用此技能进行只读的 UniFi 监控

设置

创建凭证文件:

~/.clawdbot/credentials/unifi/config.json

示例:

json
{
url: https://gateway.local,
token: YOURAPIKEY,
site: default
}

说明:

  • - token 是 UniFi API 密钥
  • 请求使用标头 X-API-KEY:
  • 脚本会自动从 /proxy/network/integration/v1/sites 解析站点 ID
  • site 用于传统的只读端点,例如 stat/health、stat/alarm、rest/networkconf 和 rest/wlanconf

命令

站点

bash
bash scripts/sites.sh
bash scripts/sites.sh json

列出可用的 UniFi 站点及其 ID。

健康状态

bash
bash scripts/health.sh
bash scripts/health.sh json

显示包含设备总数、在线/离线数量、角色和客户端数量的紧凑摘要。

设备

bash
bash scripts/devices.sh
bash scripts/devices.sh json

显示 UniFi 基础设施设备,包括型号、IP、状态、固件和功能角色。

客户端

bash
bash scripts/clients.sh
bash scripts/clients.sh json

显示已连接的客户端,包括类型、IP、MAC、连接时间和上行设备 ID。

仪表盘

bash
bash scripts/dashboard.sh
bash scripts/dashboard.sh json

显示综合概览,包括:

  • - 站点和控制台信息
  • UniFi 版本
  • 健康子系统
  • 设备
  • 网络
  • 无线网络
  • 热门客户端列表
  • 最近警报摘要

警报

bash
bash scripts/alerts.sh

显示最近的 UniFi 警报。如果没有警报,则报告没有最近的警报。

热门应用/DPI

bash
bash scripts/top-apps.sh
bash scripts/top-apps.sh 15

如果网关返回 DPI 数据,则显示按 DPI 排序的热门应用。如果没有,则报告当前没有可用的 DPI 数据。

当前端点覆盖范围

在此网关上已验证可用的端点:

  • - /proxy/network/integration/v1/sites
  • /proxy/network/integration/v1/sites/{siteId}/devices
  • /proxy/network/integration/v1/sites/{siteId}/clients
  • /proxy/network/api/s/{site}/stat/health
  • /proxy/network/api/s/{site}/stat/sysinfo
  • /proxy/network/api/s/{site}/stat/alarm
  • /proxy/network/api/s/{site}/stat/sitedpi
  • /proxy/network/api/s/{site}/rest/networkconf
  • /proxy/network/api/s/{site}/rest/wlanconf

注意事项:

  • - 警报/事件可能合法地返回零条项目
  • 即使端点本身可访问,DPI 也可能返回空负载
  • 某些管理/配置端点会暴露敏感数据;除非明确需要,否则避免转储完整的原始负载

工作流程

当用户询问时:

  • - 检查 UniFi / 仪表盘 → 运行 bash scripts/dashboard.sh
  • 一切健康吗? → 运行 bash scripts/health.sh
  • 显示设备 → 运行 bash scripts/devices.sh
  • 谁在网络中? / 客户端 → 运行 bash scripts/clients.sh
  • 有哪些站点? → 运行 bash scripts/sites.sh
  • 有警报吗? → 运行 bash scripts/alerts.sh
  • 热门应用 / 流量 / DPI → 运行 bash scripts/top-apps.sh

在报告之前始终检查响应的合理性:

  • - 验证 API 返回了 JSON
  • 验证计数看起来合理
  • 如果警报或 DPI 为空,则说明它们为空,而不是将其视为认证或端点故障
  • 除非用户明确要求原始详细信息,否则避免将敏感的管理负载粘贴回给用户

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 unifi-inforjota-integration-1776055029 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 unifi-inforjota-integration-1776055029 技能

通过命令行安装

skillhub install unifi-inforjota-integration-1776055029

下载

⬇ 下载 unifi v1.0.3(免费)

文件大小: 12.33 KB | 发布时间: 2026-4-14 14:07

v1.0.3 最新 2026-4-14 14:07
Add UniFi Integration API key support plus compatible classic read-only endpoints; improve dashboard with console/version/networks/WLANs/alarms; add graceful alarms and DPI handling; sanitize docs and examples before publication.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部