Koozali.org: home of the SME Server

Is it possible DHCP server configuration from command line?

Offline albatroz

  • *****
  • 159
  • +0/-0
Is it possible DHCP server configuration from command line?
« on: August 13, 2007, 05:24:23 PM »
Does anybody if it is possible to enable and configure the DHCP server included in SME Server from the command line? So reboot is not required?

cc_skavenger

Re: Is it possible DHCP server configuration from command line?
« Reply #1 on: August 14, 2007, 07:12:15 AM »
there used to be a contrib called dhcp manager that did just that, not sure if it is maintained for version 7.....

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: Is it possible DHCP server configuration from command line?
« Reply #2 on: August 14, 2007, 09:56:04 AM »
Quote from: albatroz
Does anybody if it is possible to enable and configure the DHCP server included in SME Server from the command line? So reboot is not required?
Yes, but it depends on what you want to configure.

smeserver stores many of it's parameters in flat file databases that are used from within templates to generate/regenerate the various application configuration files (in this case /etc/dhcpd.conf). If what you want to change is in one of those datbases you can change the db setting, expand the template and restart the service (or use an event to do this if it exists).

From DB Variables Configuration in the wiki...
Code: [Select]
db configuration setprop dhcpd bootp allow
signal-event remoteaccess-update
To learn more about the templating system used in smeserver, please read the Developers Guide (especially the SME Server Internals section)

Trevor B