Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-17-2008, 02:09 PM   #1
Registered: Nov 2005
Posts: 91

Rep: Reputation: 17
persist OMAPI host declarations

I have a dhcp server that is locked down so that only known hosts can obtain an IP address. I need to be able to (remotely through a script) add and remove hosts on the server with minimal impact.

I could just rebuild the host declarations in the dhcpd.conf file, upload the modified version over ftp and restart the dhcpd daemon, but I feel that leaves an awful lot of room for error (file corruption). Instead I've been looking at OMAPI which lets me add, delete and modify leases and hosts on the server without shutting it down. When I create a new host, the host declaration is written to the dhcpd.leases file (not the .conf file). This works very well....until the server restarts, at which point all the host declarations in the leases file are wiped.

Now I don't anticipate the server going down all that often, but this is a provisioning server for a network of cable modems. If the network loses power at 1 am, I need it to pop back up and resume normal operation without me having to resend the host list to the server.

Does anyone know of a way to prevent the service from deleting those declarations when it rotates the lease file? Is there a setting somewhere that I'm missing or do I need to investigate another option?
Old 06-17-2008, 04:05 PM   #2
Registered: Nov 2005
Posts: 91

Original Poster
Rep: Reputation: 17
I found the solution to my problem and since it is kind of obscure, I'll share it.

When using omapi to add a new host object to the dhcp server, you CANNOT name the host if you want the declaration to persist.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SCSI-3 Persist Reservation using cciss driver merry Linux - Hardware 2 05-22-2007 01:47 PM
dhcp.conf problem: host fixed-address declarations ignored lslade Linux - Server 0 03-05-2007 01:47 PM
TCP persist timer experiment using nc mohtasham1983 Linux - Networking 1 03-02-2007 04:00 PM
How do I persist MTU change? shame Linux - Networking 2 09-27-2006 05:30 PM
HELP: running process in bg and logout and persist... woes :S kevingpo Fedora 1 09-09-2005 01:10 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration