Ports Search Mac
ports_search_macLocate switch ports where a specific MAC address has been learned in LibreNMS forwarding tables, not port hardware MACs. Results rank by learned MAC count, surfacing the access port first.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mac | Yes | 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 | No | Maximum number of results to return | |
| offset | No | Number of results to skip (offset) for pagination |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||