The dashboard gives you a unified view of your router’s health and activity. It pulls live data over SSH and displays system metrics, network state, and log output without requiring you to open a terminal. Navigate toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/KevinCruz-cell/Redes-de-comunicaciones-/llms.txt
Use this file to discover all available pages before exploring further.
/dashboard after logging in to access the dashboard.
The dashboard connects to your OpenWrt router via SSH on every page load and on each polling interval. Make sure the router is reachable on the configured IP address before opening this page.
Dashboard panels
The dashboard is divided into several data panels, each populated by a dedicated API endpoint.System info
General system information retrieved via
getSystemInfo(), including hostname, firmware version, architecture, and kernel version.CPU and memory
Real-time CPU usage percentage (via
top -bn1) and memory consumption in megabytes (via free -m).Firewall rules
Active iptables chains and rules retrieved with
iptables -L -n -v, showing packet and byte counters for each rule.Routing table
The kernel routing table fetched via
ip route show, displaying all active routes with gateway, interface, and metric.System log (syslog)
The last 100 lines of the OpenWrt system log, read using
logread | tail -100.Kernel log (dmesg)
The last 100 kernel ring buffer messages from
dmesg | tail -100, useful for diagnosing hardware events.Process list
All running processes on the router, fetched with
ps aux | head -100, showing PID, CPU, memory, and command.Real-time stats
Live CPU usage, used/total memory, load averages, active connections, and uptime — refreshed automatically via
/api/dashboard/realtime.Commands used
Each panel maps to one or more shell commands executed over SSH:| Panel | Command |
|---|---|
| CPU usage | top -bn1 | grep 'Cpu(s)' | awk '{print $2}' | cut -d'%' -f1 |
| Memory used | free -m | grep Mem | awk '{print $3}' |
| Memory total | free -m | grep Mem | awk '{print $2}' |
| Load average | cat /proc/loadavg | cut -d' ' -f1-3 |
| Uptime | cat /proc/uptime | awk '{print int($1/3600)"h "int(($1%3600)/60)"m"}' |
| Active connections | netstat -an | grep ESTABLISHED | wc -l |
| Firewall rules | iptables -L -n -v |
| Routing table | ip route show |
| System log | logread | tail -100 |
| Kernel log | dmesg | tail -100 |
| Process list | ps aux | head -100 |
Real-time stats endpoint
The/api/dashboard/realtime endpoint returns a JSON object with live router metrics. The dashboard polls this endpoint periodically to keep the stats panel current.
Other dashboard API endpoints
| Endpoint | Description |
|---|---|
GET /api/dashboard/data | Full system info snapshot |
GET /api/dashboard/firewall | iptables rules |
GET /api/dashboard/routes | Kernel routing table |
GET /api/dashboard/syslog | Last 100 syslog entries |
GET /api/dashboard/kernel | Last 100 dmesg entries |
GET /api/dashboard/processes | Running process list |
GET /api/dashboard/realtime | Live CPU, memory, load, connections, uptime |
status ("success" or "error") and a data field containing the raw command output as a string.