🦀 ClawHub
Server Maintenance
by @2233admin
Automates server maintenance by checking disk usage, cleaning caches, optimizing resources, and supporting local and remote multi-server batch operations.
TERMINAL
clawhub install server-maintenance📖 About This Skill
Server Maintenance Skill
描述
自动化服务器维护工具。检查磁盘使用率、清理缓存、优化系统资源。支持多服务器批量操作。触发词
功能
1. 磁盘检查
2. 自动清理
3. 系统优化
4. 多服务器支持
使用方法
单服务器检查
bash ~/.openclaw/skills/server-maintenance/check.sh
多服务器批量维护
bash ~/.openclaw/skills/server-maintenance/maintain-all.sh
定时任务
在 OpenClaw 中设置 cron:{
"schedule": "0 2 * * 0",
"task": "server-maintenance"
}
配置
服务器列表在 servers.json:
{
"servers": [
{
"name": "硅谷",
"host": "localhost",
"type": "local"
},
{
"name": "中央",
"host": "43.163.225.27",
"type": "ssh"
},
{
"name": "东京",
"host": "43.167.192.145",
"type": "ssh"
}
]
}
输出示例
=== 服务器维护报告 ===
时间:2026-03-03 10:08| 服务器 | 清理前 | 清理后 | 释放空间 |
|--------|--------|--------|----------|
| 硅谷 | 79% | 69% | 4.7GB |
| 中央 | 88% | 78% | 5.0GB |
| 东京 | 71% | 63% | 4.0GB |
总计释放:13.7GB