list_dhcp_leases
Lists active DHCP leases with IP, MAC, hostname, interface, and expiry, helping you find a device's MAC address before creating a reservation.
Instructions
List active DHCP leases (ip, mac, hostname, interface, expiry, reserved flag).
Useful to find a PC's MAC address before creating a reservation.
Parameters:
device_id: Identifier of the FortiGate device
interface: Optional interface name to filter on (e.g. "vlan10")
vdom: Virtual Domain name (optional)
Returns:
One line per lease sorted by interface and IP
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vdom | No | Virtual Domain | |
| device_id | Yes | FortiGate device identifier | |
| interface | No | Filter by interface name |