<refentry>
<refentryinfo>
- <date>Feb 1, 2015</date>
+ <date>June 20, 2015</date>
</refentryinfo>
<refmeta>
<arg><option>-f <replaceable class="parameter">finish-file</replaceable></option></arg>
<arg><option>-v</option></arg>
<arg><option>-V</option></arg>
+ <arg><option>-W</option></arg>
<arg><option>-d</option></arg>
<arg><option>-h</option></arg>
</cmdsynopsis>
</para></listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>-W</option></term>
+ <listitem><para>
+ Display the configuration report.
+ </para></listitem>
+ </varlistentry>
+
<varlistentry>
<term><option>-h</option></term>
<listitem><para>
#include <exceptions/exceptions.h>
#include <dhcpsrv/csv_lease_file4.h>
#include <dhcpsrv/csv_lease_file6.h>
+#include <dhcpsrv/memfile_lease_mgr.h>
#include <dhcpsrv/memfile_lease_storage.h>
#include <dhcpsrv/lease_mgr.h>
#include <dhcpsrv/lease_file_loader.h>
opterr = 0;
optind = 1;
- while ((ch = getopt(argc, argv, ":46dvVp:x:i:o:c:f:")) != -1) {
+ while ((ch = getopt(argc, argv, ":46dvVWp:x:i:o:c:f:")) != -1) {
switch (ch) {
case '4':
// Process DHCPv4 lease files.
std::cout << getVersion(true) << std::endl;
exit(EXIT_SUCCESS);
+ case 'W':
+ // Display the configuration report and exit.
+ std::cout << isc::detail::getConfigReport() << std::endl;
+ exit(EXIT_SUCCESS);
+
case 'd':
// Verbose output.
verbose_ = true;
version_stream << VERSION;
if (extended) {
- version_stream << std::endl << EXTENDED_VERSION;
+ version_stream << std::endl << EXTENDED_VERSION << std::endl
+ << "database: " << isc::dhcp::Memfile_LeaseMgr::getDBVersion();
}
return (version_stream.str());