| name | System Administration |
| description | Manage Raspberry Pi - power, services, monitoring, backups |
| metadata | {"openclaw":{"emoji":"🔧","requires":{"os":["linux"]},"always":false}} |
System Administration Skill
Commands for managing your Raspberry Pi Zero 2W.
Power Management
sudo reboot
sudo shutdown -h now
sudo shutdown -h +30
sudo shutdown -c
Service Management
sudo systemctl status gotchi-bot
sudo systemctl restart gotchi-bot
sudo systemctl stop gotchi-bot
journalctl -u gotchi-bot -f
journalctl -u gotchi-bot -n 50
systemctl list-units --type=service --state=running
System Monitoring
vcgencmd measure_temp
free -h
df -h /
top -bn1 | head -5
uptime -p
Network
hostname -I
ping -c 1 8.8.8.8
iwconfig wlan0 | grep -i signal
ip addr show
Process Management
ps aux --sort=-%mem | head -10
pkill -f "process_name"
sudo lsof -i :8080
Backup
cp gotchi.db gotchi.db.backup.$(date +%Y%m%d)
tar -czf workspace_backup_$(date +%Y%m%d).tar.gz .workspace/
tar -czf gotchi_backup_$(date +%Y%m%d).tar.gz \
gotchi.db \
.workspace/ \
.env \
gotchi-skills/
Disk Cleanup
sudo journalctl --vacuum-time=7d
sudo apt clean
du -h --max-depth=2 | sort -h | tail -20
ls -t *.backup.* | tail -n +4 | xargs rm -f
Updates
sudo apt update && sudo apt upgrade -y
pip3 install --upgrade python-telegram-bot litellm
Pi-Specific
vcgencmd measure_clock arm
vcgencmd measure_volts
vcgencmd get_throttled
vcgencmd get_mem gpu
sudo raspi-config
Quick Health Check
echo "=== System Health ==="
echo "Temp: $(vcgencmd measure_temp)"
echo "Uptime: $(uptime -p)"
echo "Memory: $(free -h | grep Mem | awk '{print $3 "/" $2}')"
echo "Disk: $(df -h / | tail -1 | awk '{print $3 "/" $2 " (" $5 ")"}')"
echo "Bot: $(systemctl is-active gotchi-bot)"
Safety Rules
- Never
rm -rf / — use trash or move to temp
- Backup before updates — SD cards fail
- Check temp regularly — Pi Zero throttles at 80°C
- Free RAM < 50MB = restart bot soon
- Disk > 90% = cleanup immediately