Logging everything that is available from a given DHCP server is easy.
Just create an /etc/dhcp/eventhook script that grabs all the interesting
things using dhcpinfo and write them out to a file format you like with
appropriate time stamps.
Something based off this simple for loop should do what you want:
for option in $(nawk '/^#/ { next } /^$/ { next } {print $1}'
/etc/dhcp/inittab) ; do
value="$(/sbin/dhcpinfo $option 2> /dev/null)"
echo "$option"="$value"
done
--
Darren J Moffat
_______________________________________________
networking-discuss mailing list
[email protected]