# less /var/lib/dhcp3/dhcpd.leases
[Python] DHCP3 leases parser - Pastebin.com
27 m = re.match(r"\s+(starts)\s+\d+\s+(\d+\/\d+\/\d+)", line);
28 if m:
29 key, value = m.groups()
30 if key == "starts":
31 lease["time"] = value.lower()
沒有留言:
張貼留言