jmagar

Unifi

運維安全v1.0.1
作者:jmagar更新於 2026-05-11共 2 個版本 · 最新版本釋出於 2026-01-23unifi@clawhub_jmagar/unifi
監控告警伺服器運維#Health

據 AlphaMoat 統計,截至 2026-09,Unifi 累計下載 4,753 次、獲 3 個星標,在全部 5,078 個 AI 技能中排名第 1,989 位,在「運維安全」分類(264 個)中排名第 101 位。

累計安裝
404
累計下載
4753
星標
3
全站排名
#1,989
全站前 40% · 「運維安全」前 39%
平台累計安裝累計下載星標評論
ClawHub ↗15244103-
SkillHub ↗40447533—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

透過文件中的只讀介面獲取裝置、客戶端、健康、應用流量和近期告警。需閘道器網路訪問、本地賬號配置、curl 與 jq;解釋結果前須檢查認證失敗或空響應。

資料釋出於 2026-10-27

可以用來做什麼

  • 檢視連線客戶端、流量與網路健康

什麼時候用

  • 可訪問的 UniFi OS 閘道器需要只讀狀態審查時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

檢查裝置和客戶端狀態,報告告警;認證失敗或空資料須指出,不推斷為健康。

月度資料趨勢

累計下載4753
3161401648712026-03 · 累計下載 32792026-05 · 累計下載 38882026-06 · 累計下載 40482026-07 · 累計下載 42432026-08 · 累計下載 43202026-09 · 累計下載 475326-0326-09
星標3
2342026-03 · 星標 32026-05 · 星標 32026-06 · 星標 32026-07 · 星標 32026-08 · 星標 32026-09 · 星標 326-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094753—3
2026-084320+1.8%3
2026-074243+4.8%3
2026-064048+4.1%3
2026-053888—3
2026-033279—3

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

3.6 KB · ClawHub v1.0.1
---
name: unifi
description: 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.
version: 1.0.1
metadata:
  clawdbot:
    emoji: "📡"
    requires:
      bins: ["curl", "jq"]
---
展開全部(共 137 行)

# 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

「運維安全」分類下的熱門技能

jmagar 的其他技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。