Dhcpd-plugin

From LinuxMCE
Revision as of 15:16, 18 May 2006 by Wikiadmin (Talk | contribs)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007. In general any information should apply to LinuxMCE. However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.
It's a very simple script, it continuosly greps /var/log/syslog looking for DHCPREQUEST/DHCPACK lines.

When finding one of those it tries to find out if it's a new device (not already added and not one of the ignored). Then it sends DCE Event #53(New Mac Address Detected) with params #5(MAC) and #28(IP) to DCERouter.

As far as I know then it's processed somewhere in General_Info_Plugin (asking for device type, room and other such stuff), after that it creates device with status set to **RUN_CONFIG**.

After that somebody else will run the configuration script specified in DeviceTemplate. Something like:

/usr/pluto/bin/configure_snom3xx.pl -d  47-i 192.168.80.253 -m 00:04:13:24:25:e9

That script is responsable to correctly configure Snom320, so it could be used almost imediatly.