USER GUIDE
CLI: status
Purpose¶
Show daemon health, uptime, interface count, routing-rule count, and events processed — a single glance before you change hooks or YAML.
When to use it¶
- Post-install smoke test on a new host
- Change-window entry: confirm netevd is running before editing
/etc/netevd/ - Fleet checks from cron or a monitoring probe (JSON output)
How to get there¶
- Command:
netevd status - Equivalent HTTP:
GET http://127.0.0.1:9090/api/v1/status - Unit:
systemctl status netevd
Operate from CLI¶
- Quick text summary (default):
netevd status
- JSON for scripts and dashboards:
netevd status -f json
netevd status -f json --endpoint http://<host>:9090 | jq '.data'
- YAML output:
netevd status -f yaml
- Cross-check systemd and health endpoint:
systemctl status netevd --no-pager
curl -sf http://127.0.0.1:9090/health | jq .
curl -sf http://127.0.0.1:9090/api/v1/status | jq .
-
Empty / fail:
Connection refused→ daemon down orapi.enabled: false; status shows zero interfaces on a busy host → backend mismatch or netlink permission issue (check unit logs). -
Success:
status: running, non-zero uptime, interface count matchesip link, routing-rule count matches policy-routed addresses.