[WHEREAMI] syntax for testdhcp
Andrew McMillan
andrew at catalyst.net.nz
Sat Sep 30 14:41:27 NZST 2006
On Thu, 2006-09-28 at 23:11 +0200, Dot Deb wrote:
> I could not find syntax description for some functionality I
> found in 'man detect.conf' example.
>
> I'm referring to
> testdhcp restart dhcp
>
> - what restart actually do?
> - in whichsituation it is expected to be useful?
We don't want to actually run DHCP multiple times, so we start / restart
the DHCP client before testing for specific IP addresses.
'*.*.*.*' is an alias for 'restart', and generally it should be done
before testing for a specific IP address. Sometimes we might make the
DHCP server actually stop after doing the testing, in which case we
would have to start it. A restart just does a stop / start inside, so
it's OK to use restart in that case as well.
There are a variety of DHCP clients, and not all of them support 'get a
new DHCP address right now' other than through stop / start of their
scripts.
The code for those tests is all under /usr/share/whereami/, which are
all perl or shell scripts.
Cheers,
Andrew.
-------------------------------------------------------------------------
Andrew @ Catalyst .Net .NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St
DDI: +64(4)803-2201 MOB: +64(272)DEBIAN OFFICE: +64(4)499-2267
Facts do not cease to exist because they are ignored. -- Aldous Huxley,
"Proper Studies", 1927
-------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.catalyst.net.nz/pipermail/whereami-discuss/attachments/20060930/207837f1/attachment.pgp
More information about the whereami-discuss
mailing list