List DHCP Leases
list_dhcp_leasesRetrieve DHCP lease information from MikroTik routers with filters for server, status, lease type, and MAC address. Supports pagination for large networks.
Instructions
List DHCP leases on a MikroTik router with optional filtering by server, status, lease type (dynamic/static), and MAC address. Supports pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| server | No | Filter by DHCP server name | |
| status | No | Filter by lease status | all |
| macAddress | No | Filter by MAC address (exact match, case-insensitive) | |
| leaseType | No | Filter by lease type (dynamic or static) | all |
| limit | No | Max results to return. | |
| offset | No | Pagination offset. |