1KEA-ADMIN(8) Kea KEA-ADMIN(8)
2
3
4
6 kea-admin - Shell script for managing Kea databases
7
9 kea-admin [command] [backend] [-u database username]
10 [-p database password] [-n database name]
11 [-d scripts directory] [-4 | -6] [-o output file]
12
14 kea-admin is a shell script which offers database maintenance. In
15 particular, it features database initialization, database version
16 checking and database schema upgrade.
17
19 command
20 Command to be issued to the servers. It can be one of the
21 following:
22
23 lease-init
24 Initializes a new lease database. Useful during first Kea
25 installation. The database is initialized to the latest version
26 supported by the version of the software.
27
28 lease-version
29 Reports lease database version. This is not necessarily equal
30 to Kea version as each backend has its own versioning scheme.
31
32 lease-upgrade
33 Conducts lease database upgrade. This is useful when migrating
34 between old and new Kea versions.
35
36 lease-dump
37 Dumps the contents of the lease database (MySQL and PostgreSQL
38 backends) to text file. The content of the file consists of
39 comma-separated-values (CSV) where each line in the file
40 contains all of the values for a single lease. The first line
41 of file is a header line containing the column names.
42
43 backend
44 Specifies backend type. Currently allowed backends are: memfile,
45 mysql and pgsql.
46
47 -u|--user username
48 Specify the username when connecting to a database. If not
49 specified, the default value of keatest is used.
50
51 -p|--password password
52 Specifies the password when connecting to a database. If not
53 specified, the default value of keatest is used.
54
55 -n|--name database-name
56 Specifies the database name to connect to. If not specified, the
57 default value of keatest is used.
58
59 -d|--directory script-directory
60 Used for override scripts directory. That script is used during
61 upgrades, database initialization and possibly other operations. If
62 not specified, the default value of (prefix)/share/kea/scripts/ is
63 used.
64
65 -o|--output output_file
66 Required for lease-dump, Specifies the file to which the lease data
67 will be dumped.
68
69 -4
70 Directs kea-admin to lease-dump the DHCPv4 leases. Incompatible
71 with the -6 option.
72
73 -6
74 Directs kea-admin to lease-dump the DHCPv6 leases. Incompatible
75 with the -4 option.
76
78 keactrl(8), kea-dhcp4(8), kea-dhcp6(8), kea-dhcp-ddns(8), kea-ctrl-
79 agent(8), keactrl(8), perfdhcp(8), Kea Administrator Guide.
80
82 The Kea software has been written by a number of engineers working for
83 ISC: Tomek Mrugalski, Stephen Morris, Marcin Siodelski, Thomas
84 Markwalder, Francis Dupont, Jeremy C. Reed, Wlodek Wencel and Shawn
85 Routhier. That list is roughly in the chronological order in which the
86 authors made their first contribution. For a complete list of authors
87 and contributors, see AUTHORS file.
88
90 Copyright © 2014-2017 Internet Systems Consortium, Inc. ("ISC")
91
92
93
94ISC Kea 1.3.0 Oct. 27, 2017 KEA-ADMIN(8)