返回顶部
u

unifi

Query and monitor UniFi network via local gateway API (Cloud Gateway Max / UniFi OS). Use when the user asks to "check UniFi", "list UniFi devices", "show who's on the network", "UniFi clients", "UniFi health", "top apps", "network alerts", "UniFi DPI", or mentions UniFi monitoring/status/dashboard.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
3,285
下载量
3
收藏
概述
安装方式
版本历史

unifi

# UniFi Network Monitoring Skill Monitor and query your UniFi network via the local UniFi OS gateway API (tested on Cloud Gateway Max). ## Purpose This skill provides **read-only** access to your UniFi network's operational data: - Devices (APs, switches, gateway) status and health - Active clients (who's connected where) - Network health overview - Traffic insights (top applications via DPI) - Recent alarms and events All operations are **GET-only** and safe for monitoring/reporting. ## Setup Create the credentials file: `~/.clawdbot/credentials/unifi/config.json` ```json { "url": "https://10.1.0.1", "username": "api", "password": "YOUR_PASSWORD", "site": "default" } ``` - `url`: Your UniFi OS gateway IP/hostname (HTTPS) - `username`: Local UniFi OS admin username - `password`: Local UniFi OS admin password - `site`: Site name (usually `default`) ## Commands All commands support optional `json` argument for raw JSON output (default is human-readable table). ### Network Dashboard Comprehensive view of all network stats (Health, Devices, Clients, Networks, DPI, etc.): ```bash bash scripts/dashboard.sh bash scripts/dashboard.sh json # Raw JSON for all sections ``` **Output:** Full ASCII dashboard with all metrics. ### List Devices Shows all UniFi devices (APs, switches, gateway): ```bash bash scripts/devices.sh bash scripts/devices.sh json # Raw JSON ``` **Output:** Device name, model, IP, state, uptime, connected clients ### List Active Clients Shows who's currently connected: ```bash bash scripts/clients.sh bash scripts/clients.sh json # Raw JSON ``` **Output:** Hostname, IP, MAC, AP, signal strength, RX/TX rates ### Health Summary Site-wide health status: ```bash bash scripts/health.sh bash scripts/health.sh json # Raw JSON ``` **Output:** Subsystem status (WAN, LAN, WLAN), counts (up/adopted/disconnected) ### Top Applications (DPI) Top bandwidth consumers by application: ```bash bash scripts/top-apps.sh bash scripts/top-apps.sh 15 # Show top 15 (default: 10) ``` **Output:** App name, category, RX/TX/total traffic in GB ### Recent Alerts Recent alarms and events: ```bash bash scripts/alerts.sh bash scripts/alerts.sh 50 # Show last 50 (default: 20) ``` **Output:** Timestamp, alarm key, message, affected device ## Workflow When the user asks about UniFi: 1. **"What's on my network?"** → Run `bash scripts/devices.sh` + `bash scripts/clients.sh` 2. **"Is everything healthy?"** → Run `bash scripts/health.sh` 3. **"Any problems?"** → Run `bash scripts/alerts.sh` 4. **"What's using bandwidth?"** → Run `bash scripts/top-apps.sh` 5. **"Show me a dashboard"** or general checkup → Run `bash scripts/dashboard.sh` Always confirm the output looks reasonable before presenting it to the user (check for auth failures, empty data, etc.). ## Notes - Requires network access to your UniFi gateway - Uses UniFi OS login + `/proxy/network` API path - All calls are **read-only GET requests** - Tested endpoints are documented in `references/unifi-readonly-endpoints.md` ## Reference - [Tested Endpoints](references/unifi-readonly-endpoints.md) — Full catalog of verified read-only API calls on your Cloud Gateway Max

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 unifi-1776390305 技能

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

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

通过命令行安装

skillhub install unifi-1776390305

下载 Zip 包

⬇ 下载 unifi v1.0.1

文件大小: 12.6 KB | 发布时间: 2026-4-17 15:31

v1.0.1 最新 2026-4-17 15:31
- Added a new README.md file with documentation.
- Updated SKILL.md to increment version to 1.0.1.
- No functional changes to code or features.

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

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

p2p_official_large
返回顶部