Re: [nv-l] loadhosts CLI
2004-02-11 13:53:04
thanks Paul,
what with each device being entered possiblyh aving a different subnet I went this route:
foreach $value (@array)
{
($name,$ip,$subnet,$descrip,$unkown,$type,$division,$state,$city,$temp1,$temp2) = split (/\|/,$value);
print LOADER "loadhosts -m $subnet <<EOF\n";
print LOADER "$ip $name\n";
print LOADER "EOF\n";
}
that way if each device has a different subnet it will be placed properly.
thanks for the advice however
Chris
|
|
|