Running MacOS Server 5.2 on El Capitan. I'd like to change the DHCP server's lease duration. I'd like to use 8 hours but the GUI only gives me a choice of 1 hour, or 1 Day, or higher.
Can anyone help me with a terminal command to achieve this please?
I've found sudo serveradmin settings dhcp | grep lease
which lets me see DHCP settings, but I just cannot work out how to change the lease period.
Best Answer
First enter - to get an overview and the appropriate array_idUUID:
Then (with the proper array_idUUID)
Example:
Then restart the DHCP service:
Check the new settings with
sudo serveradmin settings dhcp