nv-l

Re: [nv-l] loadhosts CLI

2004-02-11 13:53:04
Subject: Re: [nv-l] loadhosts CLI
From: "Christopher J Petrina" <cjp8 AT meadwestvaco DOT com>
To: nv-l AT lists.us.ibm DOT com
Date: Wed, 11 Feb 2004 13:46:23 -0500

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
<Prev in Thread] Current Thread [Next in Thread>