From: Tomek Mrugalski Date: Wed, 15 Mar 2017 16:05:48 +0000 (+0100) Subject: [5151] New commands documented. X-Git-Tag: trac102b_base~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aad3f203551fa60fb21498aaeb7949c868be6f5a;p=thirdparty%2Fkea.git [5151] New commands documented. --- diff --git a/doc/guide/ctrl-channel.xml b/doc/guide/ctrl-channel.xml index 3c49a55456..2ba8adaf02 100644 --- a/doc/guide/ctrl-channel.xml +++ b/doc/guide/ctrl-channel.xml @@ -113,6 +113,57 @@ will be sent to Kea and the responses received from Kea printed to standard outp
Commands Supported by Both the DHCPv4 and DHCPv6 Servers +
+ config-get + + The config-get command retrieves the current + configuration used by the server. This command does not take any + parameters. The configuration returned is roughly equal to the + configuration that was loaded using -c command line option during server + start-up or later set using set-config command. However, there may be + certain differences. Comments are not retained. If the original + configuration used file inclusion, the returned configuration will + include all parameters from all the included files. + + Note that returned configuration is not redacted, i.e. it will + contain database passwords in plain text if those were specified in the + original configuration. Care should be taken to not expose the command + channel to unprivileged users. + + + An example command invocation looks like this: + +{ + "command": "config-get" +} + + +
+ +
+ config-write + + The config-write command instructs Kea server + to write its current configuration to a file on disk. It takes one + optional argument called filename that specifies + the name of the file to write configuration to. If not specifed, the + name used when starting Kea (passed as -c argument) will be used. Note + that the filename specified must not contain .. or backslashes. Kea + should be able to write its files only in the directory it is running + and any attempts to step out of that directory is rejected. + + An example command invocation looks like this: + +{ + "command": "config-write", + "parameters": { + "filename": "config-modified-2017-03-15.json" + } +} + + +
+
leases-reclaim diff --git a/doc/guide/dhcp4-srv.xml b/doc/guide/dhcp4-srv.xml index 5d55a6f70f..16456ce16d 100644 --- a/doc/guide/dhcp4-srv.xml +++ b/doc/guide/dhcp4-srv.xml @@ -3723,6 +3723,8 @@ src/lib/dhcpsrv/cfg_host_operations.cc --> The DHCPv4 server supports the following operational commands: + config-get + config-write leases-reclaim list-commands set-config diff --git a/doc/guide/dhcp6-srv.xml b/doc/guide/dhcp6-srv.xml index 9a8aa45cbf..0383fc90d6 100644 --- a/doc/guide/dhcp6-srv.xml +++ b/doc/guide/dhcp6-srv.xml @@ -4131,6 +4131,8 @@ If not specified, the default value is: The DHCPv6 server supports the following operational commands: + config-get + config-write leases-reclaim list-commands set-config