Page 1 of 1

Script to Report DHCP CLient Changes

Posted: Tue Feb 23, 2021 5:38 pm
by anav
hi the logging tools are not very specific in terms of pinpointing when dhcp client leases change etc.
I would like the router to be able to email a log item but the logging rules are like a sledgehammer, while
I only need a pencil so to speak.

Thus looking for a a short script that will meet the following basic requirements.
Most of you can do this in your sleep I presume.
I note that the data is often found in dhcp, info or interface, info

a. IF keyword "joe" is found in log settings dhcp,info
b. email that log entry to

To get to something like:
if keywords Joe OR harry are found in log settings dhcp,info OR interface,info
then email that logging entry to