Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DHCP lease report?

In order to document the number of users on our network, I would like to have a report on the number of DHCP leases provided on a daily or monthly basis.
The data is listed in the “DHCP Server Log”, but no reporting tool to extract the information from it.

Is it possible to include this info in the “Executive Report”?
Or to extract it from the log files otherwise?


Jens Jakob, Dansk Centralbibliotek for Sydslesvig
UTM 9.112-12


This thread was automatically locked due to age.
Parents
  • Configure and enable SSH access via WebAdmin then use the ssh client of your liking to access the UTM.

    From the command line the logs can be processed or sent off-UTM for processing on another host.

    This example counts the unique MAC addresses (based on a pattern) in eached gzipped log file in /varlog/dhcpd (requires root to access the archived logs):
    for LOGFILE in `find /var/log/dhcpd/ -name \*.log.gz | sort` ; do echo -n $LOGFILE\  ; zcat $LOGFILE | grep -o '[0-9a-f]\{2\}\(:[0-9a-f]\{2\}\)\{5\}' | sort -u | wc -l ; done


    Certainly much more than just that could be done and there is more than one way to do anything.
Reply
  • Configure and enable SSH access via WebAdmin then use the ssh client of your liking to access the UTM.

    From the command line the logs can be processed or sent off-UTM for processing on another host.

    This example counts the unique MAC addresses (based on a pattern) in eached gzipped log file in /varlog/dhcpd (requires root to access the archived logs):
    for LOGFILE in `find /var/log/dhcpd/ -name \*.log.gz | sort` ; do echo -n $LOGFILE\  ; zcat $LOGFILE | grep -o '[0-9a-f]\{2\}\(:[0-9a-f]\{2\}\)\{5\}' | sort -u | wc -l ; done


    Certainly much more than just that could be done and there is more than one way to do anything.
Children
No Data
Share Feedback
×

Submitted a Tech Support Case lately from the Support Portal?