]> pere.pagekite.me Git - homepage.git/commitdiff
New entry about sitesummary.
authorPetter Reinholdtsen <pere@hungry.com>
Fri, 14 May 2010 19:09:18 +0000 (19:09 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Fri, 14 May 2010 19:09:18 +0000 (19:09 +0000)
blog/data/2010-05-14-sitesummary-macs.txt [new file with mode: 0644]

diff --git a/blog/data/2010-05-14-sitesummary-macs.txt b/blog/data/2010-05-14-sitesummary-macs.txt
new file mode 100644 (file)
index 0000000..33af7a2
--- /dev/null
@@ -0,0 +1,28 @@
+Title: Listing MAC address from sitesummary clients
+Tags: english, debian, debian edu
+Date: 2010-05-14 21:10
+
+<p>In the recent Debian Edu versions, sitesummary is used to keep
+track of the machines in the school network.  Each machine will
+automatically report its status to the central server after boot and
+once per night.  The network setup is also reported, and using this
+information it is possible to get the MAC address of all network
+interfaces in the machines.  This is useful to update the DHCP
+configuration.</p>
+
+<p>To give some idea how to use sitesummary, here is a one-liner to
+ist all MAC addresses of all machines reporting to sitesummary.  Run
+this on the collector host:</p>
+
+<blockquote><pre>
+perl -MSiteSummary -e 'for_all_hosts(sub { print join(" ", get_macaddresses(shift)), "\n"; });'
+</pre></blockquote>
+
+<p>This will list all MAC addresses assosiated with all machine, one
+line per machine and with space between the MAC addresses.</p>
+
+<p>To allow system administrators easier job at adding static DHCP
+addresses for hosts, it would be possible to extend this to fetch
+machine information from sitesummary and update the DHCP and DNS
+tables in LDAP using this information.  Such tool is unfortunately not
+written yet.</p>