Koozali.org: home of the SME Server

Name-value params for "hostentries"

RuwanJ

Name-value params for "hostentries"
« on: May 18, 2002, 12:23:23 AM »
Hi,

I am trying to enter a lot of hostnames/MacAddr/Ipaddress into  dns/dhcp
using a shell script like this.


#!/bin/bash
for n in cat entries.txt
do
/etc/e-smith/web/functions/hostentries $n
done

WHERE "entries.txt" contains

Entry = mainsvr1 InternalIP = 10.10.10.1 MACAddress = 00:4E:FE:6D:3B:2A
Entry = mainsvr2 InternalIP = 10.10.10.2 MACAddress = 00:4E:FE:6D:3B:2B
Entry = mainsvr3 InternalIP = 10.10.10.3 MACAddress = 00:4E:FE:6D:3B:2C
Entry = mainsvr4 InternalIP = 10.10.10.4 MACAddress = 00:4E:FE:6D:3B:2D


Does anyone know where I can find the documentation for all the commands in /etc/e-smith/web/functions/ ?

TIA,

-R