2019-07-17 17:58:26 -04:00
|
|
|
..
|
2024-04-29 08:14:59 +00:00
|
|
|
Copyright (C) 2019-2024 Internet Systems Consortium, Inc. ("ISC")
|
2019-07-17 17:58:26 -04:00
|
|
|
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
See the COPYRIGHT file distributed with this work for additional
|
|
|
|
information regarding copyright ownership.
|
|
|
|
|
2023-05-31 15:13:31 +03:00
|
|
|
.. iscman:: kea-shell
|
2019-07-17 17:58:26 -04:00
|
|
|
|
2025-06-17 12:46:33 +02:00
|
|
|
``kea-shell`` - Text client for kea-dhcp4, kea-dhcp6 and kea-dhcp-ddns servers
|
2025-06-17 13:22:26 +02:00
|
|
|
------------------------------------------------------------------------------
|
2019-07-17 17:58:26 -04:00
|
|
|
|
|
|
|
Synopsis
|
|
|
|
~~~~~~~~
|
|
|
|
|
2025-06-17 09:48:22 +02:00
|
|
|
:program:`kea-shell` [**-h**] [**-v**] [**--host**] [**--port**] [**--path**] [**--ca**] [**--cert**] [**--key**] [**--auth-user**] [**--auth-password**] [**--auth-password-file**] [**--timeout**] [**--service**] [command]
|
2019-07-17 17:58:26 -04:00
|
|
|
|
|
|
|
Description
|
|
|
|
~~~~~~~~~~~
|
2019-07-17 15:42:19 +02:00
|
|
|
|
2025-06-17 12:46:33 +02:00
|
|
|
The ``kea-shell`` provides a REST client for the Kea ``kea-dhcp4``,
|
|
|
|
``kea-dhcp6`` and ``kea-dhcp-ddns`` servers. Previously it was meant
|
|
|
|
for the Control Agent (CA) daemon, which is deprecated.
|
|
|
|
It takes commands as a command-line parameter that is sent to the Kea server
|
2019-07-17 15:42:19 +02:00
|
|
|
with proper JSON encapsulation. Optional arguments may be specified on
|
2019-07-17 17:58:26 -04:00
|
|
|
the standard input. The request is sent via HTTP and a response is
|
2021-03-24 17:22:54 +01:00
|
|
|
retrieved, displayed on the standard output. Basic HTTP authentication
|
2021-12-08 19:48:33 +00:00
|
|
|
and HTTPS, i.e. TLS transport, are supported.
|
2021-03-24 17:22:54 +01:00
|
|
|
|
2019-07-17 15:42:19 +02:00
|
|
|
|
2019-07-17 17:58:26 -04:00
|
|
|
Arguments
|
|
|
|
~~~~~~~~~
|
2019-07-17 15:42:19 +02:00
|
|
|
|
|
|
|
The arguments are as follows:
|
|
|
|
|
|
|
|
``-h``
|
2019-07-17 17:58:26 -04:00
|
|
|
Displays help regarding command-line parameters.
|
2019-07-17 15:42:19 +02:00
|
|
|
|
|
|
|
``-v``
|
2024-04-23 19:57:05 +03:00
|
|
|
Displays the Kea version.
|
2019-07-17 15:42:19 +02:00
|
|
|
|
|
|
|
``--host``
|
2025-06-17 12:46:33 +02:00
|
|
|
Specifies the host to connect to. The Kea server must be running at the
|
2019-07-17 15:42:19 +02:00
|
|
|
specified host. If not specified, 127.0.0.1 is used.
|
|
|
|
|
|
|
|
``--port``
|
2025-06-17 12:46:33 +02:00
|
|
|
Specifies the TCP port to connect to. The server must be listening
|
2019-07-17 17:58:26 -04:00
|
|
|
at the specified port. If not specified, 8000 is used.
|
2019-07-17 15:42:19 +02:00
|
|
|
|
|
|
|
``--path``
|
2019-07-17 17:58:26 -04:00
|
|
|
Specifies the path in the URL to connect to. If not specified, an empty
|
2025-06-17 12:46:33 +02:00
|
|
|
path is used. As Kea servers listen at the empty path, this
|
2019-07-17 15:42:19 +02:00
|
|
|
parameter is useful only with a reverse proxy.
|
|
|
|
|
2021-03-24 17:22:54 +01:00
|
|
|
``--ca``
|
2021-03-25 13:26:46 +01:00
|
|
|
Specifies the file or directory name of the Certification Authority.
|
2021-12-08 19:48:33 +00:00
|
|
|
If not specified, HTTPS is not used.
|
2021-03-24 17:22:54 +01:00
|
|
|
|
|
|
|
``--cert``
|
|
|
|
Specifies the file name of the user end-entity public key certificate.
|
2021-12-08 19:48:33 +00:00
|
|
|
If specified, the file name of the user key must also be specified.
|
2021-03-24 17:22:54 +01:00
|
|
|
|
|
|
|
``--key``
|
2021-12-08 19:48:33 +00:00
|
|
|
Specifies the file name of the user key file. If specified, the file
|
|
|
|
name of the user certificate must also be specified.
|
|
|
|
Encrypted key files are not supported.
|
2021-03-24 17:22:54 +01:00
|
|
|
|
2020-07-11 01:15:06 +02:00
|
|
|
``--auth-user``
|
2021-12-08 19:48:33 +00:00
|
|
|
Specifies the user ID for basic HTTP authentication. If not specified,
|
|
|
|
or specified as the empty string, authentication is not used.
|
2020-07-11 01:15:06 +02:00
|
|
|
|
|
|
|
``--auth-password``
|
|
|
|
Specifies the password for basic HTTP authentication. If not specified
|
2021-12-08 19:48:33 +00:00
|
|
|
but the user ID is specified, an empty password is used.
|
2025-06-17 09:48:22 +02:00
|
|
|
If used together with ``--auth-password-file``, it is disregarded.
|
|
|
|
|
|
|
|
``--auth-password-file``
|
2025-06-17 19:16:48 +02:00
|
|
|
Specifies a text file whose first line contains the password to be used
|
|
|
|
for basic HTTP authentication. This flag takes precedence
|
2025-06-17 09:48:22 +02:00
|
|
|
over ``--auth-password`` flag.
|
2020-07-11 01:15:06 +02:00
|
|
|
|
2019-07-17 15:42:19 +02:00
|
|
|
``--timeout``
|
2021-12-08 19:48:33 +00:00
|
|
|
Specifies the connection timeout, in seconds. The default is 10.
|
2019-07-17 15:42:19 +02:00
|
|
|
|
|
|
|
``--service``
|
2025-06-17 12:46:33 +02:00
|
|
|
(Obsolete) Kea ``kea-dhcp4``, ``kea-dhcp6`` and ``kea-dhcp-ddns`` servers
|
|
|
|
ignore this argument. It was meant for communication with deprecated Control
|
|
|
|
Agent daemon.
|
|
|
|
If used with Kea version < 2.7.2:
|
|
|
|
specifies the service that is the target of a command. If not specified,
|
|
|
|
the Control Agent itself is targeted. May be used more than once
|
2019-07-17 15:42:19 +02:00
|
|
|
to specify multiple targets.
|
|
|
|
|
|
|
|
``command``
|
2025-06-17 12:46:33 +02:00
|
|
|
Specifies the command to be sent to the server. If not specified,
|
2021-12-08 19:48:33 +00:00
|
|
|
``list-commands`` is used.
|
2019-07-17 15:42:19 +02:00
|
|
|
|
2019-07-17 17:58:26 -04:00
|
|
|
Documentation
|
|
|
|
~~~~~~~~~~~~~
|
2019-07-17 15:42:19 +02:00
|
|
|
|
2019-07-17 17:58:26 -04:00
|
|
|
Kea comes with an extensive Kea Administrator Reference Manual that covers
|
2019-07-17 15:42:19 +02:00
|
|
|
all aspects of running the Kea software - compilation, installation,
|
2019-07-17 17:58:26 -04:00
|
|
|
configuration, configuration examples, and much more. Kea also features a
|
2019-07-17 15:42:19 +02:00
|
|
|
Kea Messages Manual, which lists all possible messages Kea can print
|
2019-07-17 17:58:26 -04:00
|
|
|
with a brief description for each of them. Both documents are
|
|
|
|
available in various formats (.txt, .html, .pdf) with the Kea
|
2019-07-17 15:42:19 +02:00
|
|
|
distribution. The Kea documentation is available at
|
2021-07-16 14:34:18 +03:00
|
|
|
https://kea.readthedocs.io.
|
2019-07-17 15:42:19 +02:00
|
|
|
|
2021-12-08 19:48:33 +00:00
|
|
|
Kea source code is documented in the Kea Developer's Guide,
|
|
|
|
available at https://reports.kea.isc.org/dev_guide/.
|
2019-07-17 15:42:19 +02:00
|
|
|
|
2019-07-17 17:58:26 -04:00
|
|
|
The Kea project website is available at https://kea.isc.org.
|
2019-07-17 15:42:19 +02:00
|
|
|
|
2019-07-17 17:58:26 -04:00
|
|
|
Mailing Lists and Support
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
2019-07-17 15:42:19 +02:00
|
|
|
|
2019-07-17 17:58:26 -04:00
|
|
|
There are two public mailing lists available for the Kea project. **kea-users**
|
|
|
|
(kea-users at lists.isc.org) is intended for Kea users, while **kea-dev**
|
2019-07-17 15:42:19 +02:00
|
|
|
(kea-dev at lists.isc.org) is intended for Kea developers, prospective
|
2019-07-17 17:58:26 -04:00
|
|
|
contributors, and other advanced users. Both lists are available at
|
|
|
|
https://lists.isc.org. The community provides best-effort support
|
2019-07-17 15:42:19 +02:00
|
|
|
on both of those lists.
|
|
|
|
|
|
|
|
ISC provides professional support for Kea services. See
|
|
|
|
https://www.isc.org/kea/ for details.
|
|
|
|
|
2019-07-17 17:58:26 -04:00
|
|
|
History
|
|
|
|
~~~~~~~
|
2019-07-17 15:42:19 +02:00
|
|
|
|
|
|
|
The ``kea-shell`` was first coded in March 2017 by Tomek Mrugalski.
|
|
|
|
|
2019-07-17 17:58:26 -04:00
|
|
|
See Also
|
|
|
|
~~~~~~~~
|
2019-07-17 15:42:19 +02:00
|
|
|
|
2019-07-17 17:58:26 -04:00
|
|
|
:manpage:`kea-dhcp4(8)`, :manpage:`kea-dhcp6(8)`, :manpage:`kea-dhcp-ddns(8)`,
|
|
|
|
:manpage:`kea-ctrl-agent(8)`, :manpage:`kea-admin(8)`, :manpage:`keactrl(8)`,
|
|
|
|
:manpage:`perfdhcp(8)`, :manpage:`kea-lfc(8)`, Kea Administrator Reference Manual.
|