[Kea-users] 1.3.0-beta keactrl issues?

Jason Lixfeld jason-kea at lixfeld.ca
Thu Oct 19 11:42:15 UTC 2017


This seems to have been an issue with my kea config files, although I’m unclear what I did to resolve it...

> On Oct 18, 2017, at 2:03 PM, Jason Lixfeld <jason-kea at lixfeld.ca> wrote:
> 
> Hi,
> 
> I notice that in 1.3.0-beta, keactrl doesn’t work…  
> 
> root at kea2:/home/jlixfeld/kea# uname -a
> Linux kea2 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) x86_64 GNU/Linux
> root at kea2:/home/jlixfeld/kea# cat /etc/debian_version
> 9.1
> root at kea2:/home/jlixfeld/kea#
> 
> root at kea2:/home/jlixfeld/kea# more /usr/local/etc/kea/keactrl.conf
> # This is a configuration file for keactrl script which controls
> # the startup, shutdown, reconfiguration and gathering the status
> # of the Kea's processes.
> 
> # prefix holds the location where the Kea is installed.
> prefix=/usr/local
> 
> # Location of Kea configuration file.
> kea_config_file=${prefix}/etc/kea/kea.conf
> 
> # Location of Kea binaries.
> exec_prefix=${prefix}
> dhcp4_srv=${exec_prefix}/sbin/kea-dhcp4
> dhcp6_srv=${exec_prefix}/sbin/kea-dhcp6
> dhcp_ddns_srv=${exec_prefix}/sbin/kea-dhcp-ddns
> ctrl_agent_srv=${exec_prefix}/sbin/kea-ctrl-agent
> 
> # Start DHCPv4 server?
> dhcp4=yes
> 
> # Start DHCPv6 server?
> dhcp6=no
> 
> # Start DHCP DDNS server?
> dhcp_ddns=no
> 
> # Start Control Agent?
> ctrl_agent=yes
> 
> # Be verbose?
> kea_verbose=no
> root at kea2:/home/jlixfeld/kea# ls -al /usr/local/etc/kea/kea.conf
> -rw-r--r-- 1 root staff 3004 Oct  6 23:11 /usr/local/etc/kea/kea.conf
> root at kea2:/home/jlixfeld/kea#
> 
> root at kea2:/home/jlixfeld/kea# keactrl start
> basename: missing operand
> Try 'basename --help' for more information.
> INFO/keactrl: Starting /usr/local/sbin/kea-dhcp4 -c
> basename: missing operand
> Try 'basename --help' for more information.
> INFO/keactrl: Starting /usr/local/sbin/kea-ctrl-agent -c
> root at kea2:/home/jlixfeld/kea# /usr/local/sbin/kea-dhcp4: option requires an argument -- 'c'
> Kea DHCPv4 server, version 1.3.0-beta-git
> 
> Usage: kea-dhcp4 -[v|V|W] [-d] [-{c|t} cfgfile] [-p number]
>  -v: print version number and exit
>  -V: print extended version and exit
>  -W: display the configuration report and exit
>  -d: debug mode with extra verbosity (former -v)
>  -c file: specify configuration file
>  -t file: check the configuration file syntax and exit
>  -p number: specify non-standard port number 1-65535 (useful for testing only)
> Usage error: unsupported option: [c]
> Usage: kea-ctrl-agent
>  -v: print version number and exit
>  -V: print extended version information and exit
>  -W: display the configuration report and exit
>  -d: optional, verbose output
>  -c <config file name> : mandatory, specify name of configuration file
>  -t <config file name> : check the configuration file and exit
> 
> 
> root at kea2:/home/jlixfeld/kea# keactrl status
> basename: missing operand
> Try 'basename --help' for more information.
> DHCPv4 server: inactive
> basename: missing operand
> Try 'basename --help' for more information.
> DHCPv6 server: inactive
> basename: missing operand
> Try 'basename --help' for more information.
> DHCP DDNS: inactive
> basename: missing operand
> Try 'basename --help' for more information.
> Control Agent: inactive
> Kea DHCPv4 configuration file:
> Kea DHCPv6 configuration file:
> Kea DHCP DDNS configuration file:
> Kea Control Agent configuration file:
> keactrl configuration file: /usr/local/etc/kea/keactrl.conf
> ERROR/keactrl: Configuration file for Kea not specified.
> root at kea2:/home/jlixfeld/kea#
> 




More information about the Kea-users mailing list