LibreNMS MCP
v1.14.0MCP server for LibreNMS network monitoring - query devices, ports, alerts, and manage infrastructure
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
alerts_get Alerts Get
Get alerts from LibreNMS with optional filters.
| Parameter | Type | Description |
|---|---|---|
alert_rule | Filter alerts by alert rule ID. Optional. | |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
order | How to order the output, default is by timestamp (descending). Can be appended by DESC or ASC to change the order. Optional. | |
severity | Filter the alerts by severity. Valid values: ok, warning, critical. Optional. | |
state | Filter the alerts by state: 0 = ok, 1 = alert, 2 = ack. Optional. |
alert_get_by_id Alert Get By Id
Get a specific alert from LibreNMS by ID.
| Parameter | Type | Description |
|---|---|---|
alert_id * | integer | The ID of the alert to retrieve. |
alert_acknowledge Alert Acknowledge
Acknowledge an alert in LibreNMS by ID.
| Parameter | Type | Description |
|---|---|---|
alert_id * | integer | Alert ID to acknowledge |
note | Optional note to attach to the acknowledgement | |
until_clear | If true, acknowledge until the alert clears. If false, acknowledge only this instance. |
alert_unmute Alert Unmute
Unmute an alert in LibreNMS by ID.
| Parameter | Type | Description |
|---|---|---|
alert_id * | integer | Alert ID to unmute |
alert_rules_list Alert Rules List
List all alert rules from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
alert_rule_get Alert Rule Get
Get details for a specific alert rule by ID.
| Parameter | Type | Description |
|---|---|---|
rule_id * | integer | Alert rule ID |
alert_rule_add Alert Rule Add
Add a new alert rule to LibreNMS.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Alert rule payload fields: - name (required): Rule name - builder (required): Rule builder JSON with conditions - devices (required): Array of device IDs or [-1] for all devices - severity (required):… |
alert_rule_edit Alert Rule Edit
Edit an existing alert rule in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Alert rule edit payload (must include rule_id field): - rule_id (required): Integer rule ID to edit. Without it LibreNMS would create a new rule, so the tool refuses the call. - name: Rule name - bu… |
alert_rule_delete Alert Rule Delete
Delete an alert rule from LibreNMS by ID.
| Parameter | Type | Description |
|---|---|---|
rule_id * | integer | Alert rule ID to delete |
alert_templates_list Alert Templates List
List all alert templates from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
alert_template_get Alert Template Get
Get a specific alert template from LibreNMS by ID.
| Parameter | Type | Description |
|---|---|---|
template_id * | integer | Alert template ID |
alert_template_create Alert Template Create
Create a new alert template in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Alert template payload fields: - name (required): Template name - template (required): Template body (Laravel Blade syntax) - title (required): Alert title template - title_rec (required): Recovery ti… |
alert_template_edit Alert Template Edit
Edit an existing alert template in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Alert template edit payload (must include template_id): - template_id (required): Integer template ID to edit. Without it LibreNMS would create a new template, so the tool refuses the call. - name (… |
bills_list Bills List
List bills from LibreNMS with optional filters.
| Parameter | Type | Description |
|---|---|---|
custid | Customer ID filter | |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
period | Optional: previous to list previous period bills | |
ref | Bill reference filter |
bill_get Bill Get
Get a specific bill from LibreNMS by ID.
| Parameter | Type | Description |
|---|---|---|
bill_id * | integer | Bill ID |
period | Optional period=previous |
bill_graph Bill Graph
Render a bill graph as an image. For the underlying numbers rather than a picture, use bill_graph_data.
| Parameter | Type | Description |
|---|---|---|
bill_id * | integer | Bill ID |
graph_type * | string | Graph type for the current billing period: 'bits' (traffic) or 'monthly' (transfer per month) |
bill_graph_data Bill Graph Data
Get bill graph data from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
bill_id * | integer | Bill ID |
graph_type * | string | Graph type for the current billing period: 'bits' (traffic) or 'monthly' (transfer per month) |
bill_history Bill History
Get bill history from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
bill_id * | integer | Bill ID. |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
bill_history_graph Bill History Graph
Render a graph for a past billing period as an image. For the underlying numbers rather than a picture, use bill_history_graph_data.
| Parameter | Type | Description |
|---|---|---|
bill_id * | integer | Bill ID |
graph_type * | string | Graph type for a past billing period: 'bits' (traffic), 'day' or 'hour' (transfer per day or hour) |
history_id * | integer | Bill history ID |
bill_history_graph_data Bill History Graph Data
Get bill history graph data from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
bill_id * | integer | Bill ID |
graph_type * | string | Graph type for a past billing period: 'bits' (traffic), 'day' or 'hour' (transfer per day or hour) |
history_id * | integer | Bill history ID |
bill_create_or_update Bill Create Or Update
Create or update a bill in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Bill payload fields: - bill_id (for updates only): Existing bill ID - bill_name (required for create): Bill name - ports (required for create): Array of port IDs to include - bill_type (required): "qu… |
bill_delete Bill Delete
Delete a bill from LibreNMS by ID.
| Parameter | Type | Description |
|---|---|---|
bill_id * | integer | Bill ID to delete |
devices_list Devices List
List devices from LibreNMS with optional filters.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
query | Query parameters for filtering devices. Examples: - {"type": "hostname", "query": "router"} - search by hostname substring - {"type": "os", "query": "linux"} - filter by operating system - {"type": "l… |
device_add Device Add
Add a new device to LibreNMS.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Device add payload. Required and optional fields: - hostname (required): Device hostname or IP - version (optional): SNMP version (v1, v2c, v3). Default: v2c - community (required for v1/v2c): SNMP co… |
device_get Device Get
Get device details from LibreNMS by hostname.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname |
device_delete Device Delete
Delete a device from LibreNMS by hostname.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname to delete |
device_update Device Update
Update device fields in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
payload * | object | Patchable device fields: - notes: Device notes/comments - purpose: Device purpose description - override_sysLocation: true/false to override SNMP location - location_id: Location ID to assign - poller… |
device_ports Device Ports
List ports for a device from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
columns | Comma-separated list of columns to return (e.g., 'port_id,ifName,ifAlias,ifOperStatus') | |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
with_vlans | boolean | Add each port's VLAN memberships under 'vlans' |
device_port_stack Device Port Stack
List a device's port stack (ifStackTable) from LibreNMS, such as which physical ports belong to a port-channel. Each mapping pairs a high_port_id with a low_port_id. Which side is the aggregate depends on the vendor, so look up both ports before naming one.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
device_ports_get Device Ports Get
Get port info for a device by interface name. Names like 'Te2/7' can fail by name behind proxies that reject or decode the encoded slash. The port is then looked up by ID instead; that response has the same shape but lacks the computed rate fields (in_rate, out_rate, ...).
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname. |
ifname * | string | Interface name |
device_availability Device Availability
Get device availability from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname. |
device_outages Device Outages
Get device outages from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname. |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
device_set_maintenance Device Set Maintenance
Set device maintenance in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
payload * | object | Maintenance mode payload: - duration (required): Duration in "H:i" format (e.g., "02:00" for 2 hours) - title (optional): Maintenance window title - notes (optional): Maintenance notes - start (option… |
devicegroups_list Devicegroups List
List all device groups from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
devicegroup_add Devicegroup Add
Add a new device group to LibreNMS.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Device group payload fields: - name (required): Group name - type (required): "static" or "dynamic" - desc (optional): Group description - rules (required if dynamic): Dynamic group rule builder JSON… |
devicegroup_update Devicegroup Update
Update a device group in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
name * | string | Device group name or ID |
payload * | object | Patchable fields: - name: New group name - type: "static" or "dynamic" - desc: Group description - rules: Dynamic group rules (for dynamic groups) - devices: Array of device IDs (for static groups) |
devicegroup_delete Devicegroup Delete
Delete a device group from LibreNMS by name.
| Parameter | Type | Description |
|---|---|---|
name * | string | Device group name or ID to delete |
devicegroup_devices Devicegroup Devices
List devices in a device group from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
name * | string | Device group name or ID |
full | Set to true to get complete device data instead of just IDs | |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
devicegroup_set_maintenance Devicegroup Set Maintenance
Set maintenance for a device group in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
name * | string | Device group name or ID |
payload * | object | Maintenance mode payload: - duration (required): Duration in "H:i" format (e.g., "02:00" for 2 hours) - title (optional): Maintenance window title - notes (optional): Maintenance notes - start (option… |
devicegroup_add_devices Devicegroup Add Devices
Add devices to a device group in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
name * | string | Device group name or ID |
payload * | object | Array of device IDs to add. Format: {"devices": [1, 2, 3]} |
devicegroup_remove_devices Devicegroup Remove Devices
Remove devices from a device group in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
name * | string | Device group name or ID |
payload * | object | Array of device IDs to remove. Format: {"devices": [1, 2, 3]} |
device_discover Device Discover
Trigger device rediscovery in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
device_rename Device Rename
Rename a device in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Current device hostname or ID |
new_hostname * | string | New hostname for the device |
device_maintenance_status Device Maintenance Status
Check if a device is currently in maintenance mode.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
device_vlans Device Vlans
Get VLANs configured on a specific device.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
device_links Device Links
Get network links for a specific device.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
device_eventlog_add Device Eventlog Add
Add a custom event log entry for a device.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
payload * | object | Event log entry payload: - text (required): Event message text - type (optional): Event type/category - severity (optional): Severity level (1-5) |
device_fdb Device Fdb
List the forwarding database (learned MAC addresses) for a device. Each entry carries the port_id it was learned on, so this is the device-wide view of what is plugged into a switch.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or device ID |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
device_nac Device Nac
List network access control (802.1X / MAB) sessions on a device. Shows authenticated endpoints per port, including the authentication method and the assigned VLAN where the device reports it.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or device ID |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
device_wireless_sensors Device Wireless Sensors
List the wireless sensors of a device with their current values. Wireless readings (frequency, clients, distance, rssi, ccq, rate, noise-floor, power, quality, capacity, utilization) are kept apart from the health sensors in LibreNMS, so they do not appear in health_* or sensors_list; this is the only route that returns them.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or device ID |
sensor_class | Only this wireless sensor class, e.g. clients, rssi, frequency |
device_parents_set Device Parents Set
Set the dependency parents of a device. Parents drive alert suppression: a device whose parent is down is not alerted on its own. LibreNMS replaces the device's parents with the given ones (it syncs the set), so pass every parent the device should keep. A device cannot be its own parent.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or device ID |
parent_ids * | string | Comma-separated parent device IDs or hostnames; replaces the current parents |
device_parents_clear Device Parents Clear
Remove dependency parents from a device.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or device ID |
parent_ids | Comma-separated parent device IDs or hostnames to remove; omit to remove every parent |
device_graphs_list Device Graphs List
List the graph types available for a device. Use this to discover the values accepted by the `graph_type` argument of device_graph, for example 'device_icmp_perf' or 'device_poller_perf'.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or device ID |
device_graph Device Graph
Render a device-level graph as an image.
| Parameter | Type | Description |
|---|---|---|
graph_type * | string | Graph type, as returned by device_graphs_list (e.g. 'device_icmp_perf', 'device_poller_perf', 'device_availability') |
hostname * | string | Device hostname or device ID |
from_time | Start of the time range, either a relative offset such as '-1d', '-6h' or '-1w', or a Unix timestamp. Defaults to the LibreNMS default (-1d). | |
height | Graph height in pixels. | |
legend | Whether to render the graph legend. | |
to_time | End of the time range, either a relative offset or a Unix timestamp. Defaults to now. | |
width | Graph width in pixels. |
port_graph Port Graph
Render a per-port graph as an image, for example interface traffic. Names like 'Te2/7' can fail by name behind proxies that reject or decode the encoded slash. For 'bits' this tool then falls back to the port-group endpoint, which renders the same traffic data by port ID, so callers still get a graph.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or device ID |
ifname * | string | Interface name as reported by LibreNMS, e.g. 'Po1' or 'Te2/7' |
from_time | Start of the time range, either a relative offset such as '-1d', '-6h' or '-1w', or a Unix timestamp. Defaults to the LibreNMS default (-1d). | |
graph_type | string | Graph type: 'bits' (traffic), 'upkts' (unicast packets), 'nupkts' (non-unicast packets), 'errors', or 'etherlike'. The LibreNMS names ('port_bits', ...) are accepted too. |
height | Graph height in pixels. | |
legend | Whether to render the graph legend. | |
to_time | End of the time range, either a relative offset or a Unix timestamp. Defaults to now. | |
width | Graph width in pixels. |
port_group_graph Port Group Graph
Render a traffic graph for one or more ports, by port ID. Plots every supplied port on the same axes, which makes it useful for comparing members of a LAG. Unlike port_graph this takes numeric port IDs rather than interface names.
| Parameter | Type | Description |
|---|---|---|
port_ids * | array | One or more port IDs to plot on a single graph. Resolve names to IDs with ports_search_field or device_ports. |
from_time | Start of the time range, either a relative offset such as '-1d', '-6h' or '-1w', or a Unix timestamp. Defaults to the LibreNMS default (-1d). | |
height | Graph height in pixels. | |
legend | Whether to render the graph legend. | |
to_time | End of the time range, either a relative offset or a Unix timestamp. Defaults to now. | |
width | Graph width in pixels. |
health_list Health List
List available health graphs for a device.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
health_by_type Health By Type
Get health data by sensor type for a device.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
type * | string | Sensor type (e.g. temperature, voltage, fanspeed) |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
health_sensor_get Health Sensor Get
Get a specific sensor by ID for a device.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
sensor_id * | integer | Sensor ID |
type * | string | Sensor type (e.g. temperature, voltage, fanspeed) |
sensors_list Sensors List
List all sensors across all devices.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
inventory_device Inventory Device
Get inventory for a device from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
ent_physical_class | Filter by entity physical class (e.g., chassis, module, port, powerSupply, fan, sensor) | |
ent_physical_contained_in | Filter by parent entity index | |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
inventory_device_flat Inventory Device Flat
Get flattened inventory for a device from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname. |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
locations_list Locations List
List locations from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
location_add Location Add
Add a new location to LibreNMS.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Location payload fields: - location (required): Location name - lat (required): Latitude coordinate (decimal degrees) - lng (required): Longitude coordinate (decimal degrees) - fixed_coordinates (opti… |
location_delete Location Delete
Delete a location from LibreNMS by ID or name.
| Parameter | Type | Description |
|---|---|---|
location * | string | Location ID or name |
location_edit Location Edit
Edit a location in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
location * | string | Location ID or name |
payload * | object | Location patchable fields: - lat: Latitude coordinate (decimal degrees) - lng: Longitude coordinate (decimal degrees) |
location_get Location Get
Get a specific location from LibreNMS by identifier.
| Parameter | Type | Description |
|---|---|---|
location * | string | Location ID or name |
location_set_maintenance Location Set Maintenance
Set maintenance mode for all devices in a location.
| Parameter | Type | Description |
|---|---|---|
location * | string | Location ID or name |
payload * | object | Maintenance mode payload: - duration (required): Duration in "H:i" format (e.g., "02:00" for 2 hours) - title (optional): Maintenance window title - notes (optional): Maintenance notes - start (option… |
logs_eventlog Logs Eventlog
Get event logs for a device from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
from_ts | Start timestamp filter (Unix timestamp or datetime string) | |
hostname | Device hostname or ID. Omit for entries from all devices. | |
limit | integer | Maximum number of results to return |
sortorder | Sort order: ASC or DESC | |
start | integer | Number of results to skip (offset) for pagination |
to_ts | End timestamp filter (Unix timestamp or datetime string) |
logs_syslog Logs Syslog
Get syslogs for a device from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
from_ts | Start timestamp filter (Unix timestamp or datetime string) | |
hostname | Device hostname or ID. Omit for entries from all devices. | |
limit | integer | Maximum number of results to return |
sortorder | Sort order: ASC or DESC | |
start | integer | Number of results to skip (offset) for pagination |
to_ts | End timestamp filter (Unix timestamp or datetime string) |
logs_alertlog Logs Alertlog
Get alert logs for a device from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
from_ts | Start timestamp filter (Unix timestamp or datetime string) | |
hostname | Device hostname or ID. Omit for entries from all devices. | |
limit | integer | Maximum number of results to return |
sortorder | Sort order: ASC or DESC | |
start | integer | Number of results to skip (offset) for pagination |
to_ts | End timestamp filter (Unix timestamp or datetime string) |
logs_authlog Logs Authlog
Get authentication logs from LibreNMS. Auth logs are server-wide rather than per-device, so this takes no hostname.
| Parameter | Type | Description |
|---|---|---|
from_ts | Start timestamp filter (Unix timestamp or datetime string) | |
limit | integer | Maximum number of results to return |
sortorder | Sort order: ASC or DESC | |
start | integer | Number of results to skip (offset) for pagination |
to_ts | End timestamp filter (Unix timestamp or datetime string) |
logs_syslogsink Logs Syslogsink
Add a syslog entry to LibreNMS via API sink.
| Parameter | Type | Description |
|---|---|---|
payload * | JSON syslog message(s) to ingest into LibreNMS syslog storage. Accepts a single object or an array of objects. |
arp_search Arp Search
Retrieve ARP entries from LibreNMS by search query.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search string for ARP entries. Supports an IPv4 address, MAC address, IPv4 CIDR notation (e.g. 10.0.0.0/24), or "all" (requires the device parameter; lists all entries on that device) |
device | Device hostname or ID to list entries for. Required with query "all" and only valid with it; any other combination returns an error. | |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
bgp_sessions Bgp Sessions
List BGP sessions from LibreNMS with optional filters.
| Parameter | Type | Description |
|---|---|---|
asn | Filter by local ASN | |
bgp_adminstate | Filter by admin state (start, stop, running) | |
bgp_descr | Filter by BGP description (SQL LIKE) | |
bgp_family | Filter by address family: 4 (IPv4) or 6 (IPv6) | |
bgp_state | Filter by BGP state (e.g., established) | |
hostname | Filter by device hostname or ID. An unknown device returns an error. | |
limit | integer | Maximum number of results to return |
local_address | Filter by local IP address | |
offset | integer | Number of results to skip (offset) for pagination |
remote_address | Filter by remote IP address | |
remote_asn | Filter by remote ASN |
bgp_session_get Bgp Session Get
Get BGP session from LibreNMS by ID.
| Parameter | Type | Description |
|---|---|---|
bgp_id * | integer | BGP session ID. |
bgp_session_edit Bgp Session Edit
Edit BGP session in LibreNMS by ID.
| Parameter | Type | Description |
|---|---|---|
bgp_id * | integer | BGP session ID |
payload * | object | BGP session payload. Format: {"bgp_descr": "description"} |
routing_ip_addresses Routing Ip Addresses
List all IP addresses from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
switching_vlans Switching Vlans
List all VLANs from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
switching_links Switching Links
List all links from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
fdb_lookup Fdb Lookup
Look up a MAC address in the forwarding database.
| Parameter | Type | Description |
|---|---|---|
mac * | string | MAC address to look up. Accepts multiple formats: aa:bb:cc:dd:ee:ff, aabb.ccdd.eeff, or aabbccddeeff |
ospf_list Ospf List
List all OSPF instances from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
ospf_ports Ospf Ports
List all OSPF ports/interfaces from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
vrf_list Vrf List
List all VRF (Virtual Routing and Forwarding) instances from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
nac_list Nac List
List network access control (802.1X / MAB) sessions across all devices. Note that LibreNMS answers with a 404 and "Nac entry does not exist" rather than an empty list when nothing matches.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
mac | Filter to a single MAC address. Optional. | |
offset | integer | Number of results to skip (offset) for pagination |
oxidized_list Oxidized List
List devices tracked by Oxidized for config backup.
| Parameter | Type | Description |
|---|---|---|
hostname | Filter by device hostname or ID. Optional. An unknown device returns an error. | |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
oxidized_config_get Oxidized Config Get
Get the stored device configuration from Oxidized for a specific device.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname |
oxidized_config_search Oxidized Config Search
Search all Oxidized device configurations for a string.
| Parameter | Type | Description |
|---|---|---|
search * | string | Search string to look for in all stored device configs (e.g. an IP address, interface name, ACL name, or any config keyword). Must not contain '/': LibreNMS cannot route it, so search for a part witho… |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
poller_group_get Poller Group Get
Get poller group(s) from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
poller_group | Poller group ID or name. Omit (or pass 'all') to list every poller group; a group literally named 'all' must be fetched by its ID. |
port_security_list Port Security List
List port security configuration across all devices. Covers switchport port-security state such as the maximum number of learned MAC addresses, violation mode and current status.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
port_security_device Port Security Device
Get port security configuration for every port on a device.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or device ID |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
port_security_port Port Security Port
Get port security configuration for a single port.
| Parameter | Type | Description |
|---|---|---|
port_id * | integer | Port ID |
ports_list Ports List
Get all ports from LibreNMS with optional filters.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
query | Query parameters for filtering ports: - columns: Comma-separated list of fields to return (e.g., "port_id,ifName,ifAlias") - device_id: Only return ports of this device (device ID or hostname) Availa… |
ports_search Ports Search
Search ports in LibreNMS by search string.
| Parameter | Type | Description |
|---|---|---|
search * | string | Search string - searches ifAlias, ifDescr, and ifName fields |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
ports_search_field Ports Search Field
Search ports in LibreNMS by specific field.
| Parameter | Type | Description |
|---|---|---|
field * | string | Field to search: ifAlias, ifDescr, ifName, ifType, etc. |
search * | string | Search term. "0" is not supported: LibreNMS treats it as empty. |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
ports_search_mac Ports Search Mac
Find the switch ports where a MAC address was learned (forwarding table). This searches LibreNMS's FDB data, i.e. where a host's MAC appears on the network, not the ports' own hardware addresses: a port's own MAC is not found unless another device learned it. Results are ordered by how many MACs each port has learned, so the access port the host is plugged into usually comes first.
| Parameter | Type | Description |
|---|---|---|
mac * | string | MAC address of a host to locate (looked up in the forwarding tables, not ports' own MACs). Accepts aa:bb:cc:dd:ee:ff, aa-bb-cc-dd-ee-ff, aabb.ccdd.eeff, or aabbccddeeff |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
port_get Port Get
Get port info from LibreNMS by port ID.
| Parameter | Type | Description |
|---|---|---|
port_id * | integer | Port ID. |
with_vlans | boolean | Add the port's VLAN memberships under 'vlans' |
port_ip_info Port Ip Info
Get port IP info from LibreNMS by port ID.
| Parameter | Type | Description |
|---|---|---|
port_id * | integer | Port ID. |
port_transceiver Port Transceiver
Get port transceiver info from LibreNMS by port ID.
| Parameter | Type | Description |
|---|---|---|
port_id * | integer | Port ID. |
port_description_get Port Description Get
Get port description from LibreNMS by port ID.
| Parameter | Type | Description |
|---|---|---|
port_id * | integer | Port ID. |
port_description_update Port Description Update
Update port description in LibreNMS by port ID.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Port description payload. Format: {"description": "new description"} |
port_id * | integer | Port ID |
port_groups_list Port Groups List
List port groups from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
port_group_add Port Group Add
Add a port group to LibreNMS.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Port group payload: - name (required): Port group name - desc (optional): Port group description |
port_group_list_ports Port Group List Ports
List ports in a port group from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
name * | string | Port group name or ID |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
port_group_assign Port Group Assign
Assign ports to a port group in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Port IDs to assign. Format: {"port_ids": [1, 2, 3]} |
port_group_id * | integer | Port group ID |
port_group_remove Port Group Remove
Remove ports from a port group in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Port IDs to remove. Format: {"port_ids": [1, 2, 3]} |
port_group_id * | integer | Port group ID |
port_fdb Port Fdb
List the MAC addresses learned on a port, from the forwarding database. This answers "what is connected to this port". To go the other way and find which port a known MAC sits on, use fdb_lookup instead.
| Parameter | Type | Description |
|---|---|---|
port_id * | integer | Port ID |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
services_list Services List
List all services from LibreNMS with optional filters.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
service_type | Filter by service type (SQL LIKE pattern) | |
state | Filter by state: 0=Ok, 1=Warning, 2=Critical |
services_for_device Services For Device
Get services for a device from LibreNMS.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
limit | integer | Maximum number of results to return |
offset | integer | Number of results to skip (offset) for pagination |
service_type | Filter by service type (SQL LIKE pattern) | |
state | Filter by state: 0=Ok, 1=Warning, 2=Critical |
service_add Service Add
Add a service for a device in LibreNMS.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Device hostname or ID |
payload * | object | Service monitoring payload: - type (required): Service check type (e.g., "http", "https", "dns", "ping", "smtp", "ssh", "tcp", "icmp") - ip (optional): Service IP address or hostname to check (default… |
service_edit Service Edit
Edit a service in LibreNMS by service ID.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Service patchable fields: - service_ip: Service IP address - service_desc: Service description - service_param: Service check parameters - service_disabled: 0/1 to enable/disable - service_ignore: 0/1… |
service_id * | integer | Service ID |
service_delete Service Delete
Delete a service from LibreNMS by service ID.
| Parameter | Type | Description |
|---|---|---|
service_id * | integer | Service ID. |
system_info System Info
Get system info from LibreNMS.
ping Ping
Simple API health check - ping LibreNMS API.