usb_devices
Read USB ports and attached storage from a MikroTik device by name, combining routerboard USB hardware and disk entries in one response.
Instructions
USB hardware on a device: physical USB ports
(/system/routerboard/usb, if the board exposes them) plus attached
storage (/disk - USB flash drives, and USB LTE/5G modems that
surface as a disk rather than under routerboard/usb). Combined into
one read since which of the two a given USB device shows up under
depends on the hardware.
Returns {"usb_ports": [...], "disks": [...]} - either or both
lists empty (never an error) if the board doesn't expose that
menu/hardware at all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||