System information

7 Automatic Cluster Management
not on the CHARM card. The main building blocks of the test script are explained step by
step:
# Start CD-ROM emulation provides a KNOPPIX CD
msbod -i KNOPPIX.iso -t CDROM
The msbod daemon is the interface between the USB controller and the data source of
the provided image. A KNOPPIX live CD provides the operating system for the computer
tests.
# Setups the BIOS CMOS to boot from CD-ROM
sh setupCMOS.sh
# Power on the node
hostPowerOn
The script setupCMOS.sh was already explained in section 7.1.2. It sets up the BIOS
settings which are also called the BIOS CMOS.
# Wait for the KNOPPIX shell prompt
while (terminal --shot -bw | grep -v "root@tty" ) ;
The terminal program provides an alphanumeric representation of the actual screen con-
tent of the host. This content will be inspected for the existence of the shell prompt. If the
shell is available, the CHARM will start the execution of the test programs.
# Get Hardware Information
prgs = "lspci" "more /proc/diskstats" "more /proc/cpuinfo" ...
for program in $prgs
do
crsh.sh $program >> hardware_info.txt
done
With the aid of the CHARM remote shell (crsh.sh is explained in section 7.1.1) programs
are executed on the host system. First, the hardware information will be obtained for the
validation of the expected values. The results of the programs are stored on a file on the
CHARM card. The content of this file will be compared with the expected values. The
hardware test programs like badblocks, memtest or cpuburn are also started with the crsh.sh
script. Afterwards, the script checks the results of the test programs.
7.1.4 Automatic Network Setup
The layout of the HLT cluster was reasonably defined before the cluster nodes were delivered.
Every node has a specific physical location in the counting room. It has to be a mapping
between the logical node and the related computer hardware. A logical node describes
the tasks, the location and the host name. The computer hardware is identified by its
corresponding Ethernet MAC address. To setup the computer cluster, the MAC addresses
98