ZimaOS Premium Snapshot Script V-1
A clean and noise-free diagnostic snapshot for ZimaOS systems.
This script generates a clear and readable system report with only the important values. It is designed to help users collect accurate details when reporting issues. The output includes system details, CPU and RAM status, temperatures, disk usage, RAID summary, SMART health, Docker activity, network configuration, and top processes. Everything is formatted for clarity without unnecessary characters or kernel noise.
This makes troubleshooting easier for both the user and support.
What this snapshot provides
The snapshot includes:
- System information (model, variant, build date)
- CPU load, RAM usage, temperatures
- Disk usage for system and data drives
- RAID status and Btrfs usage
- SMART health for each disk
- Active Docker containers
- AppData disk usage overview
- Clean IPv4 network summary with routes
- Top CPU and memory processes
- Automatic save to Main-Storage
How to install the snapshot script
Run the following commands:
mkdir -p /media/Main-Storage/Zima_snapshot
nano /DATA/zima_snapshot.sh
Paste the full script below into nano, save, and exit.
Make it executable:
chmod +x /DATA/zima_snapshot.sh
How to generate a snapshot
Run:
/DATA/zima_snapshot.sh
The report will be saved here:
/media/Main-Storage/Zima_snapshot/
Example filename:
zimaos_premium_clean_2025-11-14_09-38.txt
Full Premium Snapshot Script
Paste this into /DATA/zima_snapshot.sh
#!/bin/bash
OUTDIR="/media/Main-Storage/Zima_snapshot"
DATE=$(date +"%Y-%m-%d_%H-%M")
OUTFILE="$OUTDIR/zimaos_premium_clean_$DATE.txt"
mkdir -p "$OUTDIR"
{
echo "============================================="
echo " ZIMAOS PREMIUM SNAPSHOT"
echo " (Noise-Free)"
echo "============================================="
echo "Generated: $(date)"
echo
echo "========== SYSTEM =========="
hostnamectl | grep -E 'Static|Operating|Kernel' || true
echo
cat /etc/os-release | grep -E 'NAME=|VERSION=|PRETTY|VARIANT|BUILD_DATE|MANUFACTURER|MODEL'
echo
echo "========== CPU / RAM / LOAD =========="
uptime
echo
free -h
echo
echo "CPU Temperatures:"
sensors 2>/dev/null | grep -E 'Package|Core' || echo "No temperature data available"
echo
echo "========== DISK USAGE =========="
df -h --output=source,size,used,avail,pcent,target | grep -E 'nvme|md0|sdd'
echo
echo "========== FS LAYOUT (CLEAN) =========="
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT | grep -E 'sd|nvme'
echo
echo "========== SMART HEALTH (CLEAN) =========="
for disk in /dev/sda /dev/sdb /dev/sdc /dev/sdd; do
echo "$disk:"
smartctl -H -A "$disk" 2>/dev/null | grep -E 'overall-health|Temperature_Celsius|Power_On_Hours|Reallocated_Sector|Current_Pending_Sector|UDMA_CRC_Error' || echo "SMART unavailable"
echo
done
echo "/dev/nvme0n1:"
smartctl -H -A /dev/nvme0n1 2>/dev/null | grep -E 'temperature|power_on_hours|critical_warning' || echo "SMART not available for /dev/nvme0n1"
echo
echo "/dev/nvme1n1:"
smartctl -H -A /dev/nvme1n1 2>/dev/null | grep -E 'temperature|power_on_hours|critical_warning' || echo "SMART not available for /dev/nvme1n1"
echo
echo "========== RAID STATUS (md0) =========="
mdadm --detail /dev/md0 2>/dev/null | grep -E 'Raid Level|Array Size|Raid Devices|State|Active Devices|Failed Devices'
echo
btrfs filesystem usage /media/Main-Storage 2>/dev/null | grep -E 'Data|System|Metadata|Global'
echo
echo "========== DOCKER CONTAINERS =========="
docker ps -a --format "{{.Image}} ({{.Status}}) -> {{.Names}}"
echo
echo "========== DIRECTORY DISK USAGE =========="
du -sh /DATA/AppData/* 2>/dev/null
echo
du -sh /media/Main-Storage/* 2>/dev/null
echo
echo "========== NETWORK =========="
ip -4 addr show | grep -E 'inet ' | awk '{print $2, $NF}'
echo
ip route show
echo
echo "========== TOP CPU PROCESSES =========="
ps -eo cmd,%cpu,%mem --sort=-%cpu | head -n 10
echo
echo "========== TOP MEMORY PROCESSES =========="
ps -eo cmd,%mem,%cpu --sort=-%mem | head -n 10
echo
echo "========== SUMMARY =========="
echo "Snapshot Complete (Noise-Free)"
echo " - System Info"
echo " - CPU, RAM, Load, Temps"
echo " - Disk Usage, FS Layout"
echo " - SMART Health Summary"
echo " - RAID5 Status + Btrfs usage"
echo " - Docker Containers"
echo " - Directory Usage"
echo " - Network Overview"
echo " - Top Resource Processes"
echo
echo "Saved to: $OUTFILE"
} > "$OUTFILE"
If you feel thereâs anything useful we should add to ZimaOS Premium Snapshot Script V-1, please let me know and Iâm happy to update it. The goal is to keep improving this tool so it becomes a simple, one-command way to collect all important system information for troubleshooting.