1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries tagged sitesummary
</title>
5 <description>Entries tagged sitesummary
</description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
10 <title>Sitesummary tip: Listing MAC address of all clients
</title>
11 <link>http://people.skolelinux.org/pere/blog/Sitesummary_tip__Listing_MAC_address_of_all_clients.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Sitesummary_tip__Listing_MAC_address_of_all_clients.html
</guid>
13 <pubDate>Fri,
14 May
2010 21:
10:
00 +
0200</pubDate>
15 <p
>In the recent Debian Edu versions, the
16 <a href=
"http://wiki.debian.org/DebianEdu/HowTo/SiteSummary
">sitesummary
17 system
</a
> is used to keep track of the machines in the school
18 network. Each machine will automatically report its status to the
19 central server after boot and once per night. The network setup is
20 also reported, and using this information it is possible to get the
21 MAC address of all network interfaces in the machines. This is useful
22 to update the DHCP configuration.
</p
>
24 <p
>To give some idea how to use sitesummary, here is a one-liner to
25 ist all MAC addresses of all machines reporting to sitesummary. Run
26 this on the collector host:
</p
>
28 <blockquote
><pre
>
29 perl -MSiteSummary -e
'for_all_hosts(sub { print join(
" ", get_macaddresses(shift)),
"\n
"; });
'
30 </pre
></blockquote
>
32 <p
>This will list all MAC addresses assosiated with all machine, one
33 line per machine and with space between the MAC addresses.
</p
>
35 <p
>To allow system administrators easier job at adding static DHCP
36 addresses for hosts, it would be possible to extend this to fetch
37 machine information from sitesummary and update the DHCP and DNS
38 tables in LDAP using this information. Such tool is unfortunately not
39 written yet.
</p
>