USER GUIDE
CLI: events
Purpose¶
Tail normalized carrier, routable, routes, and manager events from the daemon API — the same stream hooks react to, but for operators debugging link flaps or missing scripts.
When to use it¶
- A hook did not fire and you need to see whether netevd saw the event
- You are validating filters in
/etc/netevd/netevd.yamlwhile bouncing an interface - You want a live feed during a change window instead of parsing
journalctl
How to get there¶
- Command:
netevd events - Default API:
http://127.0.0.1:9090(override with--endpoint http://<host>:9090) - Requires
api.enabled: truein/etc/netevd/netevd.yamland a runningnetevd.service
Operate from CLI¶
- Confirm the daemon and API are up:
systemctl is-active netevd
curl -sf http://127.0.0.1:9090/health | jq .
- Show the last 20 events (text table):
netevd events --tail 20
- Follow live events (like
tail -f):
netevd events -f
- Filter by interface and event type while testing a link bounce:
netevd events -f -i eth0 -t routable
- Machine-readable output for automation:
netevd events --tail 50 -f json --endpoint http://<host>:9090
- Cross-check hook side effects in the journal:
journalctl -u netevd -f
-
Empty / fail: API unreachable → check
api.enabled, bind address, and firewall; events list empty → confirmsystem.backendmatches the host (systemd-networkd,NetworkManager, ordhclient) and the interface is not ignored by a YAML filter. -
Success: Events appear within ~100 ms of a link or address change; filtered
-i/-tflags narrow the stream to the interface under test.