<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi, community,</p>
<p>I want to delete a lease, for example, this one below instead of
waiting eight hours. What is the correct way to do it? I mean, I
do not want to screw the DHCP service up. So, could someone give
me some advice to approach this task? Thanks a lot.</p>
<p>
<blockquote type="cite"><span style="color: rgb(0, 0, 0);
font-family: Inconsolata, monospace; font-size: 16.64px;
font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
0.15px; orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);
text-decoration-thickness: initial; text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;">/var/lib/dhcp/dhcpd.leases</span></blockquote>
</p>
<p>
<blockquote type="cite">lease DIR-IP-X.X.X.X {<br>
starts 3 2022/06/08 10:42:28;<br>
ends 3 2022/06/08 18:42:28;<br>
tstp 3 2022/06/08 18:42:28;<br>
cltt 3 2022/06/08 10:42:28;<br>
binding state active;<br>
next binding state free;<br>
rewind binding state free;<br>
hardware ethernet DIR-MAC-X:X:X:X;<br>
uid "\001\304\015\2264\243\376";<br>
set agent-id = "DIR-IP-X.X.X.X";<br>
set hstnm = "EG8145X6";<br>
set clhw = "DIR-MAC-X:X:X:X";<br>
set clip = "DIR-IP-X.X.X.X";<br>
set cllt = "28800";<br>
set hsttype = "pc";<br>
set tech = "gpon";<br>
set clrid = "34:38:35:37:35:34:34:33:44:33:42:46:45:31:41:37";<br>
set clcid =
"4d:41:44:52:49:44:5f:30:31:20:78:70:6f:6e:20:30:2f:31:31:2f:30:2f:31:33:3a:34:2e:32:2e:32:30:30:25";<br>
option agent.circuit-id "XXXXX_01 xpon 0/11/0/13:4.2.200%";<br>
option agent.remote-id "48575443D3BFE1A7";<br>
client-hostname "EG8145X6";<br>
on expiry {<br>
set clip =<br>
binary-to-ascii (10, 8, ".", leased-address) ;<br>
execute ("/opt/fos/bin/push_ip_lease",
"--transaction=expiry",<br>
concat ("--leased-address=", clip));<br>
}<br>
on release {<br>
set clip =<br>
binary-to-ascii (10, 8, ".", leased-address) ;<br>
execute ("/opt/fos/bin/push_ip_lease",
"--transaction=release",<br>
concat ("--leased-address=", clip));<br>
}<br>
}<br>
</blockquote>
Best,<br>
</p>
</body>
</html>