nv-l
[Top] [All Lists]

Re: [nv-l] loadhosts CLI

To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] loadhosts CLI
From: "Christopher J Petrina" <cjp8@meadwestvaco.com>
Date: Wed, 11 Feb 2004 13:46:23 -0500
Delivery-date: Wed, 11 Feb 2004 18:53:04 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com

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>

Archive operated by Skills 1st Ltd

See also: The NetView Web