Date: Tue, 9 Dec 2008 21:12:51 +0300 From: "Odhiambo Washington" <odhiambo@gmail.com> To: "Pieter Donche" <Pieter.Donche@ua.ac.be> Cc: "mail.list freebsd-questions" <freebsd-questions@freebsd.org> Subject: Re: add/change/delete dhcpd.conf entries Message-ID: <991123400812091012s5f9eac91i72724d8d834014b@mail.gmail.com> In-Reply-To: <Pine.GSO.4.63.0812091752270.19005@hmacs.cmi.ua.ac.be> References: <Pine.GSO.4.63.0812091752270.19005@hmacs.cmi.ua.ac.be>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 9, 2008 at 8:19 PM, Pieter Donche <Pieter.Donche@ua.ac.be>wrote:
> In a DHCP server managing fixed IP addresses, one needs to make changes
> often: new people need their Mac address given a IP addres, people leaving
> need to be deleted, people changing an old for a new computer need a Mac
> address change for the same IP, etc...
>
> All this information is recorded in the /usr/local/etc/dhcpd.conf file.
> I know, there is the omapi command shell (/usr/local/bin/omshell) but as
> far as I can see, you can only use it interactively. Or am I wrong?
>
> I would love to have a simple command line tool that allows you to make
> changes to your dhcpd.conf file without needing to use an
> editor or omapi.
>
> e.g. for a new entry, something like:
> # dhcpdmgr -A 175.134.34.128 -c "John.Adams PC" -i "00:34:1A:23:4A:0F"
> 175.134.34
> which would add IP 175.134.34.128 in subnet 175.134.3 for mac address
> 00:34:1A:23:4A:0F with a comment "John.Adams PC"
>
> and with other options for delete (-D), make changes to comment, IP or Mac,
> etc...
>
> Does anyone have such a command line tool?
Webmin will easily allow you to do that!
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"Okay guys. This is Kenya. You pay taxes because you feel philanthropic,
unlike our MPs!"
-- Kenneth Marende, Speaker, 10th Parilament.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?991123400812091012s5f9eac91i72724d8d834014b>
