#!/bin/sh -u
DBDIR=$SAHOME/sadb/machines.db

for h in 0 1 2 3 4
do
    for d in 0 1 2 3 4 5 6 7 8 9
    do
    	for e in 0 1 2 3 4 5 6 9
    	do
    	    echo kk$h$d$e kk$h$d$e
    	done
    done
done | ./sadbmk $DBDIR/key

fill() {
    column=$1
    shift
    values="$@"

    ../sadbcmd/machines | (
    while :
    do
	for v in $values
	do
	    read host || exit
	    echo $host $v
	done
    done ) |./sadbmk $DBDIR/$column
}

fill domain hemma kk tn cap gbg sala
fill arch sun4 pc sun3 hp powerpc i386 i486 i586
fill os ix386 sunos hpux 
fill user "lasse" "marie;lasse" "edtrolu;lasse" "tre"
