3 # note that this will only work on the machine with the dhcp server, and
4 # it only works with our range for unassigned, unknown machines, which is
5 # from 240 through 249.
6 logfile="/var/log/messages"
7 if [ ! -s "$logfile" ]; then
8 # a simple fail over that's not guaranteed to work.
9 logfile="/var/log/syslog"
11 tail -n 2000 "$logfile" | grep -i "dhcp.*2[4-5][0-9]" | less