Re: [webmin-l] [EXTERNAL] Re: Webmin DHCP module does not show all leases in dhcpd.leases file

"Jamie Cameron" <[email protected]> Wed, 14 Jun 2023 05:14:50 +0000
Newsgroups gmane.comp.web.webmin.general
Message-ID <01110188b853f61f-ed4d3366-8670-49b8-a6eb-0286ccdef3d1-000000@us-west-1.amazonses.com>
This is a multi-part message in MIME format.

--bound1686719688
Content-Type: multipart/alternative; boundary="altsbound1686719688"
Content-Transfer-Encoding: 7bit


--altsbound1686719688
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable



Thanks for those! Does the 159.218.43.117 lease appear when you click on List Active Leases on the main page of the DHCP server module? There's also a button on that page to show expired leases as well..  

On 13/Jun/2023 04:59 Buchanan, Ted <[email protected]> wrote ..    Hi Jamie, thank you for responding.  I have copied from the terminal 4 leases from the /var/lib/dhcp/dhcpd.leases file -- the first 2 leases (159.218.146.157 and 159.218.147.8) were taken from non-contiguous sections of the lease file and are visible when in Webmin I click on the 159.218.144.0 network and then click the List leases button.  The next 2 leases (159.218.43.117 and 159.218.42.219) were copied from the same dhcpd.leases file and are not visible in the Webmin lease listing.  Below that I have copied the appropriate sections from the /etc/dhcp/dhcpd.conf file.  I can not say exactly when this problem made itself known or what change may have triggered it.  Thank you for any direction you can give.  lease 159.218.
 146.157 {  starts 2 2023/06/13 10:56:13;  ends 2 2023/06/13 11:56:13;  cltt 2 2023/06/13 10:56:13;  binding state active;  next binding state free;  rewind binding state free;  hardware ethe
 rnet 04:27:28:81:76:ba;  uid "\001\004'(\201v\272";  set vendor-class-identifier =3D "MSFT 5.0 XBOX";  client-hostname "XBOX";}lease 159.218.147.8 {   starts 2 2023/06/13 10:58:30;   ends 2 2023/06/13 11:58:30;   cltt 2 2023/06/13 10:58:30;   binding state active;   next binding state free;   rewind binding state free;   hardware ethernet 00:7c:2d:87:e1:3d;   uid "\001\000|-\207\341=3D";   client-hostname "Samsung"; }lease 159.218.43.117 {  starts 6 2023/04/08 21:58:43;  ends 6 2023/04/29 21:58:43;  tstp 6 2023/04/29 21:58:43;  cltt 4 2023/04/13 20:06:50;  binding state free;  hardware ethernet 50:9a:4c:53:8e:5f;  uid "\001P\232LS\216_";  set vendor-class-identifier =3D "MSFT 5.0";}lease 159.218.42.219 {  starts 1 2022/10/03 10:14:07;  ends 1 2022/10/03 16:14:15;  tstp 1 2022/10/03 16:14:
 15;  cltt 1 2022/10/03 10:14:07;  binding state free;  hardware ethernet 6c:2b:59:d2:22:2c;  uid "\001l+Y\322\",";}=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D# #### vlan 42 (WAB)subnet 159.218.42.0 netmask 255.255.255.0 {        authoritative;        option broadcast-address 159.218.42.255;        option subnet-mask 255.255.255.0;        option routers 159.218.42.254;        range 159.218.42.138 159.218.42.169;        range 159.218.42.199 159.218.42.230;        }# #### vlan 43 (Business Students)subnet 159.218.43.0 netmask 255.255.255.0 {        option broadcast-address 159.218.43.255;        option subnet-mask 255.255.255.0;        option routers 159.218.43.254;        max-lease-time 1814400;        default-lease-time 1814400;        range 159.218.43.30 159.218.43.249;        }# #### vlan 144 (VU Streaming)subnet 159.218.144.0 netmask 255.255.248.0 {        option broadcast-address 159.218.14
 4.255;        option subnet-mask 255.255.248.0;        option routers 159.218.144.254;        authoritative;        dynamic-bootp-lease-length 3600;        max-lease-time 3600;        defaul
 t-lease-time 3600;        range 159.218.144.10 159.218.144.246;        range 159.218.145.5 159.218.145.249;        range 159.218.146.5 159.218.146.249;        range 159.218.147.5 159.218.147.249;        range 159.218.148.5 159.218.148.249;        range 159.218.149.5 159.218.149.249;        range 159.218.150.5 159.218.150.249;        range 159.218.151.5 159.218.151.249;        }   On Mon, Jun 12, 2023 at 6:24=E2=80=AFPM Jamie Cameron <[email protected]> wrote:  

Can you send a sample of the dhcpd.leases file that contains the leases that aren't showing up? The issue may be that Webmin isn't parsing the file properly.. 

On 12/Jun/2023 11:05 Buchanan, Ted <[email protected]> wrote ..   I'm running Oracle Enterprise Linux 8.8 as a DHCP server with ISC DHCP version 4.2.6-46 (from the Oracle distribution).  I'm running webmin-2.021 to help with the administration of this server.  Everything used to work/display just fine but suddenly, when trying to list the dynamic leases within a subnet, I get the message, "The DHCPd lease file /var/lib/dhcpd/dhcpd.leases does not contain any leases that are active at the current time."  If I click on the List all active and expired leases button, I get the message "The DHCPd lease file /var/lib/dhcpd/dhcpd.leases does not contain any leases."  Clearly, when I use a text editor on the /var/lib/dhcpd/dhcpd.leases file, all the leases exist, new clients receive new IP addres
 ses and existing ones are able to renew successfully.  The leases that _DO_ show up are from wireless subnets or subnets not directly connected to our campus.  I'm not the only one who admin
 isters this server/service so the Webmin module is really helpful and currently missed.  Any suggestions for troubleshooting and correcting this issue.  Everything in the /etc/dhcp/dhcpd.conf file agrees with the current operation.  Thank you. --   Ted BuchananSenior Systems Administrator - Vincennes [email protected]      - Forwarded by the Webmin mailing list at [email protected] To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list  --   Ted BuchananSenior Systems Administrator - Vincennes [email protected]   

--altsbound1686719688
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p>Thanks for those! Does the 159.218.43.117 lease appear when you click on List Active Leases on the main page of the DHCP server module? There's also a button on that page to show expired leases as well..&nbsp;</p>
  <p>On 13/Jun/2023 04:59 Buchanan, Ted &lt;[email protected]&gt; wrote ..
</p>
  <blockquote type=3D"cite"> 
    <div dir=3D"ltr">
      <div>Hi Jamie, thank you for responding.&nbsp; I have copied from the terminal 4 leases from the /var/lib/dhcp/dhcpd.leases file -- the first 2 leases (159.218.146.157 and 159.218.147.8) were taken from non-contiguous sections of the lease file and are visible when in Webmin I click on the 159.218.144.0 network and then click the List leases button.&nbsp; The next 2 leases (159.218.43.117 and 159.218.42.219) were copied from the same dhcpd.leases file and are not visible in the Webmin lease listing.&nbsp; Below that I have copied the appropriate sections from the /etc/dhcp/dhcpd.conf file.&nbsp; I can not say exactly when this problem made itself known or what change may have triggered it.&nbsp; Thank you for any direction you can give.<br /></div>
      <div><br /></div>
      <div>lease 159.218.146.157 {<br />&nbsp; starts 2 2023/06/13 10:56:13;<br />&nbsp; ends 2 2023/06/13 11:56:13;<br />&nbsp; cltt 2 2023/06/13 10:56:13;<br />&nbsp; binding state active;<br />&nbsp; next binding state free;<br />&nbsp; rewind binding state free;<br />&nbsp; hardware ethernet 04:27:28:81:76:ba;<br />&nbsp; uid &quot;\001\004'(\201v\272&quot;;<br />&nbsp; set vendor-class-identifier =3D &quot;MSFT 5.0 XBOX&quot;;<br />&nbsp; client-hostname &quot;XBOX&quot;;<br />}<br /><span style=3D"font-family: monospace;"><span style=3D"color: #000000; background-color: #ffffff;">lease 159.218.147.8 {
</span><br /> &nbsp;starts 2 2023/06/13 10:58:30;
<br /> &nbsp;ends 2 2023/06/13 11:58:30;
<br /> &nbsp;cltt 2 2023/06/13 10:58:30;
<br /> &nbsp;binding state active;
<br /> &nbsp;next binding state free;
<br /> &nbsp;rewind binding state free;
<br /> &nbsp;hardware ethernet 00:7c:2d:87:e1:3d;
<br /> &nbsp;uid &quot;\001\000|-\207\341=3D&quot;;
<br /> &nbsp;client-hostname &quot;Samsung&quot;;
<br />}<br /></span><br />lease 159.218.43.117 {<br />&nbsp; starts 6 2023/04/08 21:58:43;<br />&nbsp; ends 6 2023/04/29 21:58:43;<br />&nbsp; tstp 6 2023/04/29 21:58:43;<br />&nbsp; cltt 4 2023/04/13 20:06:50;<br />&nbsp; binding state free;<br />&nbsp; hardware ethernet 50:9a:4c:53:8e:5f;<br />&nbsp; uid &quot;\001P\232LS\216_&quot;;<br />&nbsp; set vendor-class-identifier =3D &quot;MSFT 5.0&quot;;<br />}<br />lease 159.218.42.219 {<br />&nbsp; starts 1 2022/10/03 10:14:07;<br />&nbsp; ends 1 2022/10/03 16:14:15;<br />&nbsp; tstp 1 2022/10/03 16:14:15;<br />&nbsp; cltt 1 2022/10/03 10:14:07;<br />&nbsp; binding state free;<br />&nbsp; hardware ethernet 6c:2b:59:d2:22:2c;<br />&nbsp; uid &quot;\001l+Y\322\&quot;,&quot;;<br />}<br />=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br /># #### vlan 42 (WAB)<br />subnet 159.218.42.0 netmask 255.255.255.0 {<br />&nbsp; &nbsp; &nbsp; &nbsp; authoritativ
 e;<br />&nbsp; &nbsp; &nbsp; &nbsp; option broadcast-address 159.218.42.255;<br />&nbsp; &nbsp; &nbsp; &nbsp; option subnet-mask 255.255.255.0;<br />&nbsp; &nbsp; &nbsp; &nbsp; option routers 159.218.42.254;<br />&nbsp; &nbsp; &nbsp; &nbsp; range 159.218.42.138 159.218.42.169;<br />&nbsp; &nbsp; &nbsp; &nbsp; range 159.218.42.199 159.218.42.230;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br /># #### vlan 43 (Business Students)<br />subnet 159.218.43.0 netmask 255.255.255.0 {<br />&nbsp; &nbsp; &nbsp; &nbsp; option broadcast-address 159.218.43.255;<br />&nbsp; &nbsp; &nbsp; &nbsp; option subnet-mask 255.255.255.0;<br />&nbsp; &nbsp; &nbsp; &nbsp; option routers 159.218.43.254;<br />&nbsp; &nbsp; &nbsp; &nbsp; max-lease-time 1814400;<br />&nbsp; &nbsp; &nbsp; &nbsp; default-lease-time 1814400;<br /
 >&nbsp; &nbsp; &nbsp; &nbsp; range 159.218.43.30 159.218.43.249;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br /># #### vlan 144 (VU Streaming)<br />subnet 159.218.144.0 netmask 255.255.248.0 {<br /
 >&nbsp; &nbsp; &nbsp; &nbsp; option broadcast-address 159.218.144.255;<br />&nbsp; &nbsp; &nbsp; &nbsp; option subnet-mask 255.255.248.0;<br />&nbsp; &nbsp; &nbsp; &nbsp; option routers 159.218.144.254;<br />&nbsp; &nbsp; &nbsp; &nbsp; authoritative;<br />&nbsp; &nbsp; &nbsp; &nbsp; dynamic-bootp-lease-length 3600;<br />&nbsp; &nbsp; &nbsp; &nbsp; max-lease-time 3600;<br />&nbsp; &nbsp; &nbsp; &nbsp; default-lease-time 3600;<br />&nbsp; &nbsp; &nbsp; &nbsp; range 159.218.144.10 159.218.144.246;<br />&nbsp; &nbsp; &nbsp; &nbsp; range 159.218.145.5 159.218.145.249;<br />&nbsp; &nbsp; &nbsp; &nbsp; range 159.218.146.5 159.218.146.249;<br />&nbsp; &nbsp; &nbsp; &nbsp; range 159.218.147.5 159.218.147.249;<br />&nbsp; &nbsp; &nbsp; &nbsp; range 159.218.148.5 159.218.148.249;<br />&nbsp; &nbsp; 
 &nbsp; &nbsp; range 159.218.149.5 159.218.149.249;<br />&nbsp; &nbsp; &nbsp; &nbsp; range 159.218.150.5 159.218.150.249;<br />&nbsp; &nbsp; &nbsp; &nbsp; range 159.218.151.5 159.218.151.249;
 <br />&nbsp; &nbsp; &nbsp; &nbsp; }</div>
    </div><br />
    <div class=3D"gmail_quote">
      <div dir=3D"ltr" class=3D"gmail_attr">On Mon, Jun 12, 2023 at 6:24=E2=80=AFPM Jamie Cameron &lt;<a href=3D"reply_mail.cgi?new=3D1&amp;to=3Djcameron%40webmin%2Ecom" target=3D"_blank">[email protected]</a>&gt; wrote:<br /></div>
      <blockquote class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
        <p>Can you send a sample of the dhcpd.leases file that contains the leases that aren't showing up? The issue may be that Webmin isn't parsing the file properly..</p> 
        <p>On 12/Jun/2023 11:05 Buchanan, Ted &lt;<a href=3D"reply_mail.cgi?new=3D1&amp;to=3Dtbuchanan%40vinu%2Eedu" target=3D"_blank">[email protected]</a>&gt; wrote ..
</p> 
        <blockquote type=3D"cite"> 
          <div dir=3D"ltr">I'm running Oracle Enterprise Linux 8.8 as a DHCP server with ISC DHCP version 4.2.6-46 (from the Oracle distribution).&nbsp; I'm running webmin-2.021 to help with the administration of this server.&nbsp; Everything used to work/display just fine but suddenly, when trying to list the dynamic leases within a subnet, I get the message, &quot;<strong>The DHCPd lease file <tt>/var/lib/dhcpd/dhcpd.leases</tt> does not contain any leases that are active at the current time.&quot;&nbsp; </strong><span>If I click on the List all active and expired leases button, I get the message &quot;</span><strong style=3D"margin-bottom: 0px;">The DHCPd lease file <tt>/var/lib/dhcpd/dhcpd.leases</tt> does not contain any leases.&quot;</strong><span style=3D"margin-bottom: 0px;">&nbsp;
  Clearly, when I use a text editor on the /var/lib/dhcpd/dhcpd.leases 
 file, all the leases exist, new clients receive new IP addresses and existing ones are able to renew successfully.&nbsp; The leases that _DO_ show up are from wireless subnets or subnets not directly connected to our campus.&nbsp; I'm not the only one who administers this server/service so the Webmin module is really helpful and currently missed.&nbsp; Any suggestions for troubleshooting and correcting this issue.&nbsp; Everything in the /etc/dhcp/dhcpd.conf file agrees with the current operation.&nbsp; Thank you.<br /></span> 
            <div><br /><span class=3D"gmail_signature_prefix">-- </span><br /> 
              <div dir=3D"ltr" class=3D"gmail_signature"> 
                <div dir=3D"ltr">Ted Buchanan<br />Senior Systems Administrator - Vincennes University<br /><a href=3D"https://us01.z.antigena.com/l/dqUP8cOmul_TMVZ-c9CL53KECB-ktkSzU6E7GaQmZ7q1_NHLLv4ZTeV8IsnrHrzMnDEEC0h9tHVEduNNeXBWbIHDyhRcdRtElIMmRzoFYDIFNp_EwMISYrohLRiFA3HOIGN8Hi6Hwwae~OuP51J5kKF3BmOVOoieCNiSt~j21pCG~GqPQm" target=3D"_blank">[email protected]</a><br /></div> 
              </div> 
            </div> 
          </div> 
        </blockquote><br /> <br />
-<br />
Forwarded by the Webmin mailing list at <a href=3D"reply_mail.cgi?new=3D1&amp;to=3Dwebadmin%2Dlist%40lists%2Esourceforge%2Enet" target=3D"_blank">[email protected]</a><br />
To remove yourself from this list, go to<br /> <a href=3D"http://lists.sourceforge.net/lists/listinfo/webadmin-list" rel=3D"noreferrer" target=3D"_blank">http://lists.sourceforge.net/lists/listinfo/webadmin-list</a><br /> 
      </blockquote>
    </div><br clear=3D"all" /><br /><span class=3D"gmail_signature_prefix">-- </span><br />
    <div dir=3D"ltr" class=3D"gmail_signature">
      <div dir=3D"ltr">Ted Buchanan<br />Senior Systems Administrator - Vincennes University<br /><a href=3D"reply_mail.cgi?new=3D1&amp;to=3Dtbuchanan%40vinu%2Eedu" target=3D"_blank">[email protected]</a><br /></div>
    </div> 
  </blockquote><br /> <br />

--altsbound1686719688--


--bound1686719688
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--bound1686719688
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-
Forwarded by the Webmin mailing list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list

--bound1686719688--