Przeglądaj źródła

docs(readme): asuswrt/merlin manual install and platform table (EN+ES)

gnacho 1 miesiąc temu
rodzic
commit
642faef2cb
2 zmienionych plików z 85 dodań i 4 usunięć
  1. 42 2
      README.es.md
  2. 43 2
      README.md

+ 42 - 2
README.es.md

@@ -96,6 +96,18 @@ pausar sin borrarla: sin sondeo ni alertas, con su histórico intacto.
   </picture>
   </picture>
 </p>
 </p>
 
 
+**Sobre qué corre.** El servidor es un binario estático de Go en cualquier
+caja Linux. El agente es quien habla con tus routers, y cómo llega depende
+de la plataforma:
+
+| Plataforma | Cómo corre el agente | Notas |
+|---|---|---|
+| OpenWrt (incl. GL.iNet) | Paquete nativo `netpulse-agent` (`.ipk`/`.apk`) | procd, config UCI, `luci-app-netpulse`, instalación y upgrade desde la app |
+| Asuswrt / Asuswrt-Merlin | Binario estático en `/jffs`, fichero de entorno | Sin `ubus`: recurre a `/proc`, `iw` y `lldpd`. Instalación y actualización manuales |
+| RouterOS | Pusher integrado | Topología y clientes deducidos de las tablas del propio router |
+| Switches gestionados | SNMP | Estado de bocas, velocidades y vecinos LLDP-MIB |
+| Cualquier otra cosa con SSH | Sondeo server-side | Sin agente; más lento y sin estado entre sondeos |
+
 **Y el resto del tour:**
 **Y el resto del tour:**
 
 
 - **WireGuard**: peers con sus nombres reales, últimos handshakes,
 - **WireGuard**: peers con sus nombres reales, últimos handshakes,
@@ -151,7 +163,9 @@ anterior se puede tocar en la **[demo en vivo](https://demo.netpulse.cloudless.c
 ## Empieza en unos cinco minutos
 ## Empieza en unos cinco minutos
 
 
 Necesitas una caja Linux con systemd (x86_64, arm64 o armv7; un LXC o VM
 Necesitas una caja Linux con systemd (x86_64, arm64 o armv7; un LXC o VM
-pequeña sobra) y routers OpenWrt/GL.iNet en tu LAN.
+pequeña sobra) y routers OpenWrt/GL.iNet en tu LAN. Asuswrt/Merlin también
+está soportado, y cualquier cosa con SSH o SNMP se añade a mano (mira la
+sección plegada de más abajo).
 
 
 **1. Instala el servidor** en la caja:
 **1. Instala el servidor** en la caja:
 
 
@@ -185,7 +199,7 @@ el agente, empuja el binario correcto para la arquitectura del router,
 escribe la config y arranca el servicio; aparece como conectado en segundos.
 escribe la config y arranca el servicio; aparece como conectado en segundos.
 Los routers a los que el servidor no llega por SSH usan el token de
 Los routers a los que el servidor no llega por SSH usan el token de
 emparejamiento (**Ajustes → Adopción de agentes**, mira la sección plegada
 emparejamiento (**Ajustes → Adopción de agentes**, mira la sección plegada
-de abajo).
+de abajo), y Asuswrt lleva un binario manual como se cuenta en esa sección.
 
 
 **5. Llévatela contigo.** Instala la PWA desde el navegador (Añadir a
 **5. Llévatela contigo.** Instala la PWA desde el navegador (Añadir a
 pantalla de inicio / Instalar app) y activa Web Push en Ajustes: las alertas
 pantalla de inicio / Instalar app) y activa Web Push en Ajustes: las alertas
@@ -229,6 +243,32 @@ SSH, Ajustes → Adopción de agentes muestra un token reutilizable:
 `install-agent.sh --pairing-token` (ejecutado desde cualquier máquina que
 `install-agent.sh --pairing-token` (ejecutado desde cualquier máquina que
 alcance el router y el servidor) registra el agente en el primer contacto.
 alcance el router y el servidor) registra el agente en el primer contacto.
 
 
+**Asuswrt / Merlin.** El agente también corre en routers Asuswrt y
+Asuswrt-Merlin (probado en un GT-BE98 Pro con nodos mesh RT-AX92U). Allí no
+hay `opkg`: es un binario estático al uso. Coge
+`netpulse-agent_<versión>_linux_arm64.tar.gz` (o `armv7`, `mips`, `mipsle`
+para hardware más viejo) de la
+[última release](https://github.com/gnacho/netpulse/releases), cópialo a
+`/jffs/` (que sobrevive a los firmwares, a diferencia de `/tmp`) y apúntalo
+a tu servidor. El fichero de config por defecto es
+`/etc/netpulse-agent.env`, así que déjalo en `/jffs` y nómbralo explícito:
+
+```sh
+cat > /jffs/netpulse-agent.env <<'EOF'
+NETPULSE_SERVER=http://<ip-del-servidor-netpulse>:3000
+NETPULSE_SLUG=<slug>
+NETPULSE_TOKEN=<token de 64 hex>
+EOF
+NETPULSE_ENV_FILE=/jffs/netpulse-agent.env /jffs/netpulse-agent &
+```
+
+Para arrancarlo al boot, añade esa misma línea a `/jffs/scripts/init-start`
+(o `services-start`). No hay procd ni reinstall por SSH: las actualizaciones
+van por el comando `upgrade` del propio agente o copiando el binario nuevo.
+Todo lo que no necesita `ubus` funciona, incluida la topología (FDB del
+bridge, `iw`, `lldpd`); lo que depende de específicos de GL.iNet simplemente
+no está.
+
 **Sidecar de latencia.** Sondeos TCP de latencia por router a largo plazo,
 **Sidecar de latencia.** Sondeos TCP de latencia por router a largo plazo,
 opcionales:
 opcionales:
 
 

+ 43 - 2
README.md

@@ -94,6 +94,18 @@ kept.
   </picture>
   </picture>
 </p>
 </p>
 
 
+**What it runs on.** The server is one static Go binary on any Linux box.
+The agent is what talks to your routers, and how it gets there depends on
+the platform:
+
+| Platform | How the agent runs | Notes |
+|---|---|---|
+| OpenWrt (incl. GL.iNet) | Native `netpulse-agent` package (`.ipk`/`.apk`) | procd, UCI config, `luci-app-netpulse`, in-app install and upgrade |
+| Asuswrt / Asuswrt-Merlin | Static binary in `/jffs`, env file | No `ubus`: falls back to `/proc`, `iw` and `lldpd`. Manual install and update |
+| RouterOS | Built-in pusher | Topology and clients derived from the router's own tables |
+| Managed switches | SNMP | Port states, speeds and LLDP-MIB neighbours |
+| Anything else with SSH | Server-side polling | No agent needed; slower, stateless per poll |
+
 **And the rest of the tour:**
 **And the rest of the tour:**
 
 
 - **WireGuard**: peers with real names, latest handshakes, transfer per peer.
 - **WireGuard**: peers with real names, latest handshakes, transfer per peer.
@@ -143,7 +155,9 @@ one by one, and everything above is clickable in the **[live demo](https://demo.
 ## Get started in about five minutes
 ## Get started in about five minutes
 
 
 You need a Linux box with systemd (x86_64, arm64 or armv7; a small LXC or VM
 You need a Linux box with systemd (x86_64, arm64 or armv7; a small LXC or VM
-is plenty) and OpenWrt/GL.iNet routers on your LAN.
+is plenty) and OpenWrt/GL.iNet routers on your LAN. Asuswrt/Merlin is
+supported too, and anything with SSH or SNMP can be added by hand (see the
+folded section below).
 
 
 **1. Install the server** on the box:
 **1. Install the server** on the box:
 
 
@@ -175,7 +189,8 @@ offer an **Install agent** button. One click and the server registers the
 agent, pushes the right binary for the router's architecture, writes the
 agent, pushes the right binary for the router's architecture, writes the
 config and starts the service; it shows up as connected within seconds.
 config and starts the service; it shows up as connected within seconds.
 Routers the server cannot SSH into use the pairing token instead
 Routers the server cannot SSH into use the pairing token instead
-(**Settings → Agent adoption**, see the folded section below).
+(**Settings → Agent adoption**, see the folded section below), and Asuswrt
+takes a manual binary as described there.
 
 
 **5. Take it with you.** Install the PWA from your browser (Add to home
 **5. Take it with you.** Install the PWA from your browser (Add to home
 screen / Install app) and enable Web Push in Settings: alerts reach your
 screen / Install app) and enable Web Push in Settings: alerts reach your
@@ -219,6 +234,32 @@ Agent adoption shows a reusable pairing token:
 `install-agent.sh --pairing-token` (run from any machine that can reach both
 `install-agent.sh --pairing-token` (run from any machine that can reach both
 the router and the server) registers the agent on first contact.
 the router and the server) registers the agent on first contact.
 
 
+**Asuswrt / Merlin.** The agent also runs on Asuswrt and Asuswrt-Merlin
+routers (tested on a GT-BE98 Pro with RT-AX92U mesh nodes). There is no
+`opkg` there, so it is a plain static binary: pick
+`netpulse-agent_<version>_linux_arm64.tar.gz` (or `armv7`, `mips`,
+`mipsle` for older hardware) from the
+[latest release](https://github.com/gnacho/netpulse/releases), copy it to
+`/jffs/` (which survives firmware updates, unlike `/tmp`), and point it at
+your server. The config file defaults to `/etc/netpulse-agent.env`, so keep
+it in `/jffs` and name it explicitly:
+
+```sh
+cat > /jffs/netpulse-agent.env <<'EOF'
+NETPULSE_SERVER=http://<netpulse-server-ip>:3000
+NETPULSE_SLUG=<slug>
+NETPULSE_TOKEN=<64-hex token>
+EOF
+NETPULSE_ENV_FILE=/jffs/netpulse-agent.env /jffs/netpulse-agent &
+```
+
+To start it at boot, add that same line to `/jffs/scripts/init-start` (or
+`services-start`). There is no procd and no SSH-based reinstall: updates go
+through the agent's own `upgrade` command, or by copying the new binary.
+Everything that does not need `ubus` works, including the topology (bridge
+FDB, `iw`, `lldpd`); features that depend on GL.iNet specifics are simply
+absent.
+
 **Latency sidecar.** Optional long-term TCP latency probes per router:
 **Latency sidecar.** Optional long-term TCP latency probes per router:
 
 
 ```bash
 ```bash