<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">I'm attempting to put together a process that would report DHCP pool utilization.  Per-subnet numbers are easy via the API:</p>
<p style="margin-top:0;margin-bottom:0"></p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(251, 255, 255);">
<span style="font-variant-ligatures: no-common-ligatures;">"command": "statistic-get-all"</span></p>
<p></p>
</blockquote>
<p></p>
<p style="margin-top:0;margin-bottom:0"></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
I get data in this format:
<p></p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p style="margin-top:0;margin-bottom:0">...</p>
<p style="margin-top:0;margin-bottom:0"></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(251, 255, 255);">
<span style="font-variant-ligatures: no-common-ligatures;">"subnet[152].total-addresses": [ [ 13, "2017-12-27 10:38:52.086719" ] ] }</span></p>
<p></p>
<p style="margin-top:0;margin-bottom:0"></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(251, 255, 255);">
<span style="font-variant-ligatures: no-common-ligatures; font-size: 8pt; font-family: Consolas, Courier, monospace;"><span style="font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">...</span></span></p>
<p></p>
</blockquote>
<p style="margin-top:0;margin-bottom:0"></p>
<p style="margin-top:0;margin-bottom:0"></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(251, 255, 255);">
<span style="font-variant-ligatures: no-common-ligatures; font-size: 8pt; font-family: Consolas, Courier, monospace;"><span style="font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><br>
</span></span></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(251, 255, 255);">
<span style="font-variant-ligatures: no-common-ligatures; font-size: 8pt; font-family: Consolas, Courier, monospace;"><span style="font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">But
 what I'm not finding is a way to derive the actual network information for the subnet (What is the network address? subnet mask? etc...)</span></span></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(251, 255, 255);">
<span style="font-variant-ligatures: no-common-ligatures; font-size: 8pt; font-family: Consolas, Courier, monospace;"><span style="font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><br>
</span></span></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(251, 255, 255);">
<span style="font-variant-ligatures: no-common-ligatures; font-size: 8pt; font-family: Consolas, Courier, monospace;"><span style="font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">For
 my deployment, the intention is to manually number all subnets in my kea-dhcp4.conf file, but in a broader sense it is legitimate to not do so, and have Kea number them automatically on startup.  In the automatic ID assignment scenario, how could I programmatically
 discover the ID-to-subnet assignments?</span></span></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(251, 255, 255);">
<span style="font-variant-ligatures: no-common-ligatures; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;"><br>
</span></p>
<span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;"></span>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(251, 255, 255);">
<span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;">Is anyone else willing to share how they are </span><span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;">monitoring their Kea pool usage?</span></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(251, 255, 255);">
<br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
Duane Wylie<br>
<br>
</div>
</div>
</div>
</div>
</body>
</html>