Scripts for the primary DHCP server of an Intel lab management tool (LMT). The tool tracks lab boards and their reservations in IBM Rational ClearQuest and builds the DHCP configuration from that data.
dhcp.plgenerates/etc/dhcpd.conffromtemplates/dhcpd.confand the board records in ClearQuest, including PXE boot details, and keeps a last good copy inbackup.freeips.pl,all.plandproblem.plreport free IP addresses, all boards and boards with problems.src/servicescan.cpp(built asmain) scans the lab subnets with threads;scan.shruns it for each subnet.notifierscripts email users when reservations begin or end, sync reservations and send reports, using the HTML templates inemail.LMTCommon.pm,LMTEmailer.pmandLMTShared.pmhold the shared settings, email and ClearQuest connection code.boardslists the boards for each lab area.
- Perl with ClearQuest's CQPerl, MIME::Lite and File::Slurp
- C++ with pthreads for the scanner
- ISC DHCP server
The scripts expect to live in /scripts and read their settings from
/scripts/config.ini. They are usually run from cron. See
EC-SI-LMT-DHCP-SECONDARY
for the secondary server.
Licensed under the Apache License 2.0. See LICENSE.
