2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-28 04:27:46 +00:00
kea/doc/sphinx/man/kea-shell.8.rst

142 lines
5.1 KiB
ReStructuredText
Raw Permalink Normal View History

..
2024-04-29 08:14:59 +00:00
Copyright (C) 2019-2024 Internet Systems Consortium, Inc. ("ISC")
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.
.. iscman:: kea-shell
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
------------------------------------------------------------------------------
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]
Description
~~~~~~~~~~~
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
with proper JSON encapsulation. Optional arguments may be specified on
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
Arguments
~~~~~~~~~
The arguments are as follows:
``-h``
Displays help regarding command-line parameters.
``-v``
Displays the Kea version.
``--host``
2025-06-17 12:46:33 +02:00
Specifies the host to connect to. The Kea server must be running at the
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
at the specified port. If not specified, 8000 is used.
``--path``
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
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
``--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.
``--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.
``--timeout``
2021-12-08 19:48:33 +00:00
Specifies the connection timeout, in seconds. The default is 10.
``--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
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.
Documentation
~~~~~~~~~~~~~
Kea comes with an extensive Kea Administrator Reference Manual that covers
all aspects of running the Kea software - compilation, installation,
configuration, configuration examples, and much more. Kea also features a
Kea Messages Manual, which lists all possible messages Kea can print
with a brief description for each of them. Both documents are
available in various formats (.txt, .html, .pdf) with the Kea
distribution. The Kea documentation is available at
2021-07-16 14:34:18 +03:00
https://kea.readthedocs.io.
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/.
The Kea project website is available at https://kea.isc.org.
Mailing Lists and Support
~~~~~~~~~~~~~~~~~~~~~~~~~
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**
(kea-dev at lists.isc.org) is intended for Kea developers, prospective
contributors, and other advanced users. Both lists are available at
https://lists.isc.org. The community provides best-effort support
on both of those lists.
ISC provides professional support for Kea services. See
https://www.isc.org/kea/ for details.
History
~~~~~~~
The ``kea-shell`` was first coded in March 2017 by Tomek Mrugalski.
See Also
~~~~~~~~
: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.