Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2006 17:03:52 -0400
From:      Robert Huff <roberthuff@rcn.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Re: DHCP   question
Message-ID:  <17646.5176.759355.437455@jerusalem.litteratus.org>
In-Reply-To: <a05210245c113be4a597c@[10.0.0.10]>
References:  <20060823112010.FWCA15709.dukecmmtao03.coxmail.com@dukecmmtao0 3> <a05210245c113be4a597c@[10.0.0.10]>

next in thread | previous in thread | raw e-mail | index | archive | help

Walt Pawley writes:

>  >I need to monitor and record that IP address and initiate a
>  >series of processes if/when the IP address changes.
>  
>  You could schedule a script that uses 'curl' or 'fetch' to
>  acquire the status page from the router and parse the upstream
>  IP address from it and compare it with a saved address.

	How about:

	netstat -rn -f inet | grep default | awk '{print $2}'



					Robert Huff



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17646.5176.759355.437455>