KEA-ADMIN(8)
๐ KEA-ADMIN(8) ๐
okay bestie, gather round, because this is the manual page for kea-admin, and it lives in the Kea section of your man pages. it's a shell script. she manages databases. she's booked and busy. ๐ซถ
โจ NAME โจ
kea-admin โ a shell script for managing Kea databases ๐
๐ธ SYNOPSIS ๐ธ
kea-admin [command] [backend] [-h database_host] [-P database_port] [-u
database_username] [-p [database_password]] [-n database_name] [-d
script_directory] [-v] [-x extra_argument [-x extra_argument ...]] [-4
| -6] [-i input_file] [-o output_file] [-y]
๐ฆ DESCRIPTION ๐ฆ
so kea-admin is a shell script and she is literally the database maintenance girlie. what does she do? glad you asked:
- database initialization โจ
- database version checking โจ
- database schema upgrading โจ
that's the whole vibe. she's not doing your taxes, she's doing your schema. periodt.
๐ ARGUMENTS ๐
๐ command
this tells the servers what to actually do, and ngl it can only be one of these:
db-initโ initializes a brand new database schema. super useful when you're doing a fresh Kea install. the database gets initialized to the latest version supported by the version of the software being installed. fresh start, clean slate, main character energy.db-versionโ reports the database backend version number. โ ๏ธ heads up bestie: this is not necessarily equal to the Kea version number, because every backend has its own versioning scheme. they're all doing their own thing. respect it.db-upgradeโ conducts a database schema upgrade. this is the one you call when you're upgrading Kea. glow-up time. ๐lease-dumpโ dumps the contents of the lease database (for MySQL or PostgreSQL backends) into a CSV (comma-separated values) text file. ๐๏ธ (support for the Cassandra backend has been deprecated, rip.) the first line of the file has the column names. you can use this to switch from a database backend over to a memfile backend, and it also slaps as a diagnostic tool because it gives you the lease data in a portable form. ๐ง there are mandatory arguments you MUST use with this command: either-4or-6has to be specified, and either-oor--outputhas to be provided. no skips.lease-uploadโ uploads leases from a CSV (comma-separated values) text file into a MySQL or a PostgreSQL lease database. the CSV file needs to be in memfile format. ๐ mandatory args again, bestie: either-4or-6must be specified, and either-ior--inputmust be provided.stats-recountโ recounts lease statistics for a MySQL or PostgreSQL database. she's counting. respectfully. ๐
๐ backend
this specifies the backend type. currently allowed backends are: memfile, mysql, and pgsql. cql has been deprecated (gone but not forgotten ๐๏ธ).
โญ OPTIONS โญ
-h|--hosthostname โ specifies the hostname when connecting to a database. the default value islocalhost. ๐-i|--inputinput_file โ specifies the CSV (comma-separated values) text file with the leases to be uploaded. this one is required forlease-upload. ๐ฅ-P|--portport โ specifies the port when connecting to a database. if you don't specify it, whatever default value the database client chooses gets used. not our call, it's the client's. ๐คท-u|--userusername โ specifies the username when connecting to a database. the default value iskeatest. ๐ชช-p|--passwordpassword โ specifies the password when connecting to a database. if you give only-por--password, the user gets prompted for a password. if you don't specify it at all, theKEA_ADMIN_DB_PASSWORDenvironment variable is checked for a value and used if it exists. otherwise the default value of1234is used. ๐ (yes,1234. it said what it said.)-n|--namedatabase-name โ specifies the name of the database to connect to. the default value iskeatest. ๐-d|--directoryscript-directory โ specifies the override scripts directory. that script gets used during upgrades, database initialization, and possibly other operations. the default value is(prefix)/share/kea/scripts/. ๐-o|--outputoutput_file โ specifies the file the lease data will be dumped to. required forlease-dump. ๐ค-v|--versionโ displays the Kea version. ๐-Vโ displays the extended Kea version. extra. extended. elevated. ๐-4โ directskea-admintolease-dumpthe DHCPv4 leases. incompatible with the-6option. ๐ซ-6โ directskea-admintolease-dumpthe DHCPv6 leases. incompatible with the-4option. ๐ซ-x|--extraโ specifies an extra argument to pass to the database command tool, e.g. to invokemysqlwith the--sslargument. this can be repeated to pass more than one argument. โ ๏ธ quotes are not preserved, and you should avoid commands containing spaces. fr fr, keep it simple.-y|--yesโ assume yes on overwriting temporary files. she's not gonna ask. ๐ซก
๐ DOCUMENTATION ๐
Kea comes with an extensive Kea Administrator Reference Manual that covers literally all aspects of running the Kea software โ compilation, installation, configuration, configuration examples, and much more. Kea also features a Kea Messages Manual, which lists every possible message 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 https://kea.readthedocs.io. ๐
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) โ intended for Kea users ๐ซถ - kea-dev (
kea-dev at lists.isc.org) โ 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. ๐ผ
๐ SEE ALSO ๐
kea-dhcp4(8), kea-dhcp6(8), kea-dhcp-ddns(8), kea-ctrl-agent(8), keactrl(8), perfdhcp(8), kea-netconf(8), Kea Administrator Reference Manual.
๐ AUTHOR ๐
Internet Systems Consortium
ยฉ๏ธ COPYRIGHT ยฉ๏ธ
2019-2025, Internet Systems Consortium
and that's the whole page bestie!! you made it to the end, iconic behavior honestly ๐
this was Kea version 3.0.4, dated Oct 05, 2026 โ mwah, slay, go init a database or something ๐
โจ
๐ฆ where this page comes from
- fedora 43: kea 3.0.4-1.fc43 ยท MPL-2.0 AND BSL-1.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms