poe_status
Retrieve live PoE status, voltage, current, and power per PoE-capable Ethernet port on a MikroTik device; returns empty list if no PoE hardware.
Instructions
PoE status/consumption per port, for every PoE-capable ethernet port on the device.
Reads /interface/ethernet and keeps only rows that have a poe-out
field (i.e. are PoE-capable on this hardware - e.g. the CRS318-16P's
high/low PoE ports), then reads
/interface/ethernet/poe/monitor once=yes for each one to get its
live voltage/current/power/poe-out-status. Each entry looks like
{"interface", "poe-out" (configured mode), "poe-out-status",
"voltage", "current", "power"} - the monitor fields are omitted for
a port whose live monitor call fails (kept resilient rather than
failing the whole tool for one bad port).
voltage/current/power are normalized to int | float | None
via formatting.coerce_ros_number, never passed through raw: real
hardware (CRS318-16P-2S+, ROS6.49.20) mixes int and string-decimal
(e.g. "4.7") types for these same three fields within a single
monitor reply, and across different ports of the same device - see
that helper's docstring. Without this, a caller comparing
voltage > 0 (see README's PoE power-cycle walkthrough) could get a
string on one port and a number on another.
Returns an empty list (never an error) for a device with no PoE
hardware at all - that's a completely normal state, same as
wireless_registrations for a wired-only device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |