Device models
A model tells the NMS how to log in to a device, which read-only commands a sync runs, and which looking-glass buttons the web terminal shows. Click a row to edit it, or fill the form with a new name to add a model.
New model
Additional commands
Extra read-only commands for this model. Run them from a device (Commands), from the API (/devices/{id}/run/{name}) and read their output with the model builder (or a parse_<name> function in the .py file). Name find_mac (with {mac}) is used by the live MAC lookup; onu_info (with {pon} {onu}) for one ONU's details.
Test a command on a device
Provisioning actions
Named command lists for your provisioning script (POST /api/v1/devices/{id}/provision/{action}). Use {params}; they become input boxes. A run logs in, enters configure terminal (if ticked), sends the lines and stops at the first error. Dry run only shows the commands.
For logic (read an answer, decide, retry), write a Python script act_<name>(cli, p) in the model's .py file and upload it on the Device models page (marked python).
Try it on a device
Vendor files
Web terminal sessions
Device web page sessions
Remote sites (OLTs / switches without public IP or port forward)
The site router dials the NMS (PPTP for TP-Link and other routers with a PPTP VPN client, WireGuard for MikroTik v7 or a small Linux box). Then add the devices with their LAN IP and choose the site in "Reached via".
Add site
Everything the NMS detects (problems, recoveries, info). Every event is sent to your BSS (Settings → BSS webhook); alerting is done in the BSS. ✓ = confirmed by the BSS, ⏳ = in the queue (sent, not confirmed yet).
Up / down history
MIB browser
Walk any OID on a device. Names and values come from your MIBs (below). + model adds the OID to the device's model:
every device of that model with the SNMP item "custom" reads it (API: GET /api/v1/devices/{id}/snmp → custom).
SNMP of a model
Custom OIDs (from the MIB browser), and CPU / memory / temperature or SFP power OIDs when the automatic ones do not fit your device.
Saved in the model file (MODEL['snmp']) - download / upload it with the other model files.
ONU fields over SNMP · SNMP profiles
Read ONU RX / TX power (and temperature, voltage, bias, distance, status) for every ONU of an OLT in one SNMP walk.
The settings are an SNMP profile: its own file in config/snmp_profiles/<vendor>/<name>.py, apart from the
telnet / SSH model files. Each device uses the profile you choose. ONU values read over SNMP are stored in the SNMP ONU table
(Devices → SNMP devices), apart from the telnet ONU list.
ONU fields - OLTs only
Device health and SFP power - leave empty for the automatic OIDs (Huawei, H3C, Cisco, D-Link, MikroTik, V-SOL / Syrotech, HOST-RESOURCES; SFP: Huawei, V-SOL / Syrotech uplinks, ENTITY-SENSOR). When your OID gives nothing, the automatic ones are tried. Stored by every poll: CPU / memory / temperature on the device and its health graph, SFP RX / TX on the ports.
MIB files
Upload vendor MIBs (V-SOL, Syrotech, Huawei, D-Link …) as files or a .zip. Modules they import are downloaded from the
LibreNMS MIB collection when the server has internet. Kept in config/mibs/ and in backups.
Traps
Set the devices' trap host to this server (UDP 162) - devices at remote sites: the NMS tunnel address shown on the Remote sites page. linkDown / linkUp change the port at once and raise / clear the port alert.
Event rules
When the NMS makes an event (sent to your BSS). Limits in dBm; an empty optional limit = off. The tag shows where a value comes from: page saved here, yaml config/nms.yaml / nms.local.yaml, default. Saved here wins over the files; the worker uses a change within 15 s.
BSS webhook
Every event (device / port / ONU / PON / SNMP / netwatch problems, recoveries, info) is POSTed as JSON to your BSS, oldest first.
An event leaves the queue only when your BSS confirms it: answer {"received": true, "id": <event id>}.
No answer, an error or no confirmation: the event stays in the queue and the same event is sent again after the retry time (1 min) - nothing is lost or sent out of order.
Header X-NMS-Signature = HMAC-SHA256(body, secret), X-NMS-Event-Id = event id (skip ids you already have).
Your BSS can also read GET /api/v1/events?since_id=N.
Backup
Devices (IP, port, logins, auto sync, site, added time), remote sites / site-to-site VPN and keys, settings, device models, admin users, your model files. Not included - the first sync reads them again: ONUs, MACs, ports, optical history.
Change admin password
API
BSS calls use header X-API-Key. Terminal for your BSS iframe: POST /api/v1/devices/{id}/terminal. Full reference: /docs