DHCP lease export to file

hi there,
i have 3K dynamic leases in my router and would like to store them for statistic reason.
could you tell me how to do it?
cheers, brian

/ip dhcp-server lease print file=lease

This will create lease.txt in Files.

This worked for me - thank you very much!
cheers, brian

to get more detailed information use:

/ip dhcp-server lease print detail file=lease