I need to control dhcp address renew actions on Linux in my application written in C. I am trying to find the best way to retrieve this information from the system. So far I have actually come up with only one way - parsing the system logs and looking for address renewal information. However, this way is very inefficient. I can try to improve this by redirecting the logs from dhclient to a separate file and check only this one file. But it still seems to be a poor solution. Do you have any idea how to retrieve this information in a better way in C or bash? Thank you very much for any hints.
-
1Trigger an action when dhcp logs. See unix.stackexchange.com/q/87223/64699stark– stark2021-07-09 14:28:39 +00:00Commented Jul 9, 2021 at 14:28
-
2Here's something it seems: stackoverflow.com/questions/579783/…LMC– LMC2021-07-09 20:12:21 +00:00Commented Jul 9, 2021 at 20:12
Add a comment
|