Darren J Moffat wrote:
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
Unless you're proposing that this be added to Solaris for
everyone, I'd classify this as a work around for the problem.
Darren
_______________________________________________
networking-discuss mailing list
[email protected]