now I see the trick. How did you get data about MAC adresses ? Do companies provide such info ? Do tou have to conatct them ?
There are two way to do this that come to mind:
1. Boot an operating system on them (running the kick start CD up to the point where it detects the network is good enough) and using system specific commands to find out what the network card's MAC address is (with the kick start CD, after the network modules are loaded you should be able to switch to the second console [pressing Alt+F2], and type ifconfig eth0
which should display some stuff about the network card. I didn't try this myself, but that's what I would do if I had to.
2. Start the diskless machine. It will ask for boot configuration via DHCP. This will get logged in /var/log/syslog on the Core with something like "DHCPDISCOVER" + "DHCPOFFER" (a full DHCP transaction has two more entries, but a diskless won't confirm it's IP unless it gets TFTP data too). The MAC address is listed there.
The "discover" entry looks like this:dhcpd: DHCPDISCOVER from 00:30:59:01:e3:9a via eth1
(where the italic entry is the computer's MAC address)
Where in code/scripts does this checkup happen ?
The script that sets up the network boot environment is /usr/pluto/bin/Diskless_Setup.sh on the Core. This gets run at every boot, but can be run manually too.
Plans are to switch the MD logic so they get configured from the Core, not our central server, and when I do that I may need to run the script after you add a new MD to the Core so you don't have to do the dreaded reboot everytime.
[I think I'll file a bug report as to not allow Guest posting
This time I forgot to login]