Skip to main content
Tutek
New Member
February 24, 2023
Question

Export dhcp reservations in readable format

  • February 24, 2023
  • 1 reply
  • 5880 views

Hello,

is any way to export from fortigate dhcp reservations in any readeble (table) format, export from cli config is not usable to read?

1 reply

ebilcari
Staff
Staff
February 24, 2023

The easiest way is to extract from GUI using the command: #execute dhcp lease-list

copy the output and while saving on an Excel file use the Text import wizard

ebilcari_0-1677229269409.png

The other way is to use API with the call: https://fw/api/v2/monitor/system/dhcp
The format is JSON formatted and can be easily integrated with any other application

      "ip":"192.168.1.102",       "reserved":true,       "mac":"e8:1c:ba:86:eb:66",       "vci":"FortiSwitch-108E-POE",       "hostname":"S108EP5918010897",       "expire_time":1677776786,       "status":"leased",       "interface":"port5",       "type":"ipv4",       "server_mkey":3,       "server_ipam_enabled":false

 

Emirjon