In article <(E-Mail Removed)>,
Johann Glaser <(E-Mail Removed)> writes:
> Hi!
>
>> man ethers
>
> Thanks, didn't know that. But it doesn't help me.
>
>> Hooking basic system operation to a database seems overkill, unreliable,
>> not smell nice at all
For a read many / write rarely database the
>> unix flat text file map is far better than relying on userspace DBMS.
>
> You are right, but we have a database which is changed with a comfortable
> web interface. It is ugly to need a background script which does the
> changes on the system. And it is not network transparent, where a database
> is.
>
> Any ideas on a DHCP server which looks up MACs in a DBMS?
This type of situation is something I've had to cope with before, but in
a slightly different area: that of users, mail aliases and the delivery
addresses for mail. The key problem was the same though. The data, which
was part of a much larger system with personnel data, was held in an
Oracle DBMS. The basic system operations which needed access to it
wanted flat text files.
The only answer is to satisfy both requirements. It is unreasonable and
impractical to redesign the DBMS to use flat text files, so that
stays as is. It is equally unreasonable to have basic systems operations
reliant on complex DBMS lookups, as others have pointed out. They need
to stay using flat text files.
The solution is then to have something extract the data from the DBMS
and write it into a flat file that the system uses, signalling the
system process to re-read its flat file when it has been done. It needs
to be small, single-purposed, and contain sufficient safety checks to
stop it outputting nonsense information in error situations. I used a
Perl script, which unfortunately could only run once a day because it
took so long (it was a number of years ago). You probably need something
that runs each time a MAC address is changed. I'm not sure precisely
how that would be done, but I believe that basic approach is the only
way to satisfy those two different requirements.
--
Tim Clark