<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Bertrand,</p>
    <p>I'm pretty sure that the utilization is displayed properly.</p>
    <p>You attached the below statistic output from Kea:<br>
      <br>
      ```<br>
    </p>
    <p>[ { "arguments": { "result-set": { "columns": [ "subnet-id",
      "total-addresses", "cumulative-assigned-addresses",
      "assigned-addresses", "declined-addresses" ], <br>
      "rows": [ [ 200, 6, 5, 0, 0 ], [ 201, 15, 0, 0, 0 ] ],
      "timestamp": "2023-06-13 07:36:46.830289" } }, "result": 0,
      "text": "stat-lease4-get[all subnets]: 2 rows found" } ]</p>
    <p>```</p>
    <p>It shows the subnet 200 has:</p>
    <p>- 6 total addresses<br>
      - 5 cumulative assigned addresses<br>
      - 0 assigned addresses<br>
      - 0 declined addresses<br>
      <br>
      The "cumulative assigned addresses" term means (from Kea ARM):</p>
    <p>> Cumulative number of addresses that have been assigned<br>
      > since server startup. It is incremented each time an address<br>
      > is assigned and is not reset when the server is reconfigured.</p>
    <p>The current (momentary) state of the DHCP server is described by
      the "total-addresses", "assigned-addresses", and
      "declined-addresses".<br>
      The utilization is calculated as: ("assigned-addresses" /
      "total-addresses") * 100% .</p>
    <p>The number of assigned addresses is zero in all subnets from your
      screenshots. The expected utilization is zero percent in every
      case.<br>
    </p>
    <p>Hint: you can display the raw subnet statistic values by hovering
      a mouse pointer on the subnet bar.</p>
    <p>Is my explanation sufficient for you? Do you agree the
      utilization presented by Stork is correct?</p>
    <p>Regards,<br>
      Slawek<br>
    </p>
    <div style="color: #cccccc;background-color: #1f1f1f;font-family: 'Fira Code', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Mono', 'monospace', monospace;font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color: #569cd6;">
</span></div></div>
    <div class="moz-cite-prefix">On 13/06/2023 10:51, Buclin, Bertrand
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:DS0PR02MB9023D13DB1B2DE4CB3A6D4BDCC55A@DS0PR02MB9023.namprd02.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:"Times New Roman \(Body CS\)";
        panose-1:2 11 6 4 2 2 2 2 2 4;}@font-face
        {font-family:Menlo;
        panose-1:2 11 6 9 3 8 4 2 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}p.p1, li.p1, div.p1
        {mso-style-name:p1;
        margin:0cm;
        font-size:10.5pt;
        font-family:Menlo;
        color:black;}p.p2, li.p2, div.p2
        {mso-style-name:p2;
        margin:0cm;
        font-size:10.5pt;
        font-family:Menlo;
        color:black;}span.s1
        {mso-style-name:s1;}span.apple-converted-space
        {mso-style-name:apple-converted-space;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:none;
        mso-fareast-language:EN-US;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">HI Stork team,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Looks like the Stork
            server GUI (version 1.10 and 1.11, at least; not checked on
            prior versions, agent version 1.10 and 1.11 too showing the
            same behavior; KEA 2.2) is not displaying properly the
            utilization of IPv4 subnets. The Kea Control Agent is
            showing its receiving and responding to the API call
            properly (log entries trimmed to relevant stuff only):<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="p1"><span class="s1">DEBUG
            [kea-ctrl-agent.http/594970.140579578214272]
            HTTP_CLIENT_REQUEST_RECEIVED_DETAILS detailed information
            about well-formed request</span><span
            class="apple-converted-space"> </span></p>
        <p class="p1"><span class="s1">received from</span></p>
        <p class="p1"><span lang="EN-US">…<o:p></o:p></span></p>
        <p class="p2"><span class="s1">{"command":"stat-lease4-get","service":["dhcp4"]}</span></p>
        <p class="MsoNormal"><span lang="EN-US">…<o:p></o:p></span></p>
        <p class="p1"><span class="s1">DEBUG
            [kea-ctrl-agent.http/594970.140579578214272]
            HTTP_SERVER_RESPONSE_SEND_DETAILS detailed information about
            response sent to</span></p>
        <p class="MsoNormal"><span lang="EN-US">…<o:p></o:p></span></p>
        <p class="p1"><span class="s1">[ { "arguments": { "result-set":
            { "columns": [ "subnet-id", "total-addresses",
            "cumulative-assigned-addresses", "assigned-addresses",
            "declined-addresses" ],</span><span
            class="apple-converted-space"> </span></p>
        <p class="p1"><span class="s1">"rows": [ [ 200, 6, 5, 0, 0 ], [
            201, 15, 0, 0, 0 ] ], "timestamp": "2023-06-13
            07:36:46.830289" } }, "result": 0, "text":
            "stat-lease4-get[all subnets]: 2 row</span></p>
        <p class="p1"><span class="s1">s found" } ]</span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">But the Stork GUI shows:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-ligatures:none"
            lang="EN-US"><img style="width:7.375in;height:1.0312in"
              id="Picture_x0020_1"
              src="cid:part1.kXXKrDdM.lDc1AyOb@isc.org" alt="A
              screenshot of a calculator
              Description automatically generated with medium
              confidence" class="" width="708" height="99"></span><span
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">It is showing the
            subnets (200 and 201), with the right number of total
            addresses, but it is not displaying the
            cumulative-assigned-addresses (should be 5 for the top
            subnet, and 83% utilization).
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">On Ipv6 subnets, I get
            something similar:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="p1"><span class="s1">{"command":"stat-lease6-get","service":["dhcp6"]}<o:p></o:p></span></p>
        <p class="p1"><span class="s1">2023-06-13 08:34:55.149 INFO</span><span
            class="apple-converted-space"> 
          </span><span class="s1">[kea-ctrl-agent.auth/594970.140579578214272]
            HTTP_CLIENT_REQUEST_AUTHORIZED received HTTP request
            authorized for 'stork-agent'</span><o:p></o:p></p>
        <p class="p1"><span class="s1">2023-06-13 08:34:55.149 INFO</span><span
            class="apple-converted-space"> 
          </span><span class="s1">[kea-ctrl-agent.commands/594970.140579578214272]
            COMMAND_RECEIVED Received command 'stat-lease6-get'</span><o:p></o:p></p>
        <p class="MsoNormal"><span lang="EN-US">…<o:p></o:p></span></p>
        <p class="p1"><span class="s1">2023-06-13 08:34:55.241 DEBUG
            [kea-ctrl-agent.http/594970.140579578214272]
            HTTP_SERVER_RESPONSE_SEND_DETAILS detailed information about
            response sent</span><o:p></o:p></p>
        <p class="p1"><span class="s1"><span lang="FR-CH">…<o:p></o:p></span></span></p>
        <p class="p1"><span class="s1">[ { "arguments": { "result-set":
            { "columns": [ "subnet-id", "total-nas",
            "cumulative-assigned-nas", "assigned-nas", "declined-nas",
            "total-pds", "cumulative-a</span><o:p></o:p></p>
        <p class="p1"><span class="s1">ssigned-pds", "assigned-pds" ],
            "rows": [ [ 200, 281474976710656, 0, 0, 0, 256, 0, 0 ], [
            201, 281474976710656, 55, 0, 0, 0, 0, 0 ], [ 202,
            281474976710656, 0,</span><o:p></o:p></p>
        <p class="p1"><span class="apple-converted-space"> </span><span
            class="s1">0, 0, 0, 0, 0 ], [ 999901, 281474976710656, 0, 0,
            0, 0, 0, 0 ] ], "timestamp": "2023-06-13 08:34:55.240818" }
            }, "result": 0, "text": "stat-lease6-get[all sub</span><o:p></o:p></p>
        <p class="p1"><span class="s1">nets]: 4 rows found" } ]<o:p></o:p></span></p>
        <p class="p1"><span class="s1"><o:p> </o:p></span></p>
        <p class="p1"><span class="s1"><span lang="FR-CH">And Stork GUI
              shows :<o:p></o:p></span></span></p>
        <p class="p1"><span lang="FR-CH"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-ligatures:none"
            lang="FR-CH"><img style="width:10.3958in;height:1.2916in"
              id="Picture_x0020_2"
              src="cid:part2.oSBZ0pD2.Ey7CfBBD@isc.org" alt="A
              screenshot of a calculator
              Description automatically generated with medium
              confidence" class="" width="998" height="124"></span><span
            lang="FR-CH"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="FR-CH"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">It should show the 55
            addresses assigned in the bottom subnet. It can show the 256
            PD prefixes available in the top one, so clearly, it is
            receiving the API response and doing something with it.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal"><b><span
                style="color:#2F5597;mso-ligatures:none" lang="EN-US">Bertrand
                Buclin<o:p></o:p></span></b></p>
        </div>
        <p class="MsoNormal"><span
            style="color:black;mso-ligatures:none" lang="EN-US">AT&T</span></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
    </blockquote>
  </body>
</html>