Actually, this is fairly easy to do with the available tools at hand... cd
to /etc, then issue the command:

find . -type f ­exec grep ­l 192.168.2.1 {} \;

Where you substitute the IP address you want to look for for the 192.
address above. This will list all the files in or below the /etc directory
which contain the IP address. Then you can go about editing them. To do the
whole thing automatically, you could tie the list of files produced to a sed
command to change the IP address, but generally, I prefer to do things one
step at a time, only giving myself small guns at any time to aim at my foot.

Also, at least some of these changes can be put online without requiring a
boot, as the IP address of our clones change before we¹ve re-booted them.
I¹d have to go back to the code to see where the address change gets
implemented....

-- 
   .~.    Robert P. Nix             Mayo Foundation
   /V\    RO-OE-5-55              200 First Street SW
 / ( ) \  507-284-0844           Rochester, MN 55905
^^-^^   ----- 
"In theory, theory and practice are the same, but     ³Join the story...
Ride Ural.²
 in practice, theory and practice are different."




On 1/15/08 7:00 PM, "Gary Detro" <[EMAIL PROTECTED]> wrote:

> 
> I found a module from LaffyComputers.com a couple of years ago.   It is
> freeware and is call rpl.   you pass it the parameter you want it to find and
> then there are options to autochange everything or selectively change, it also
> has an option to recursively parameter to search sub-directories.
>  
> 
> Thanks, Gary L. Detro
> Senior IT Specialist 1177 S. Belt Line Rd; Coppell, TX 75019
> Internal Mail Stop: 77-01-3001O; Coppell, TX
> Phone: 469-549-8174 (t/l 603-8174); Fax: 469-549-8235 (t/l 603-8235)
> Send me an email [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> IBM Global Solution Center <http://w3.ibm.com/support/stss/gesc.html>
> <http://www.ibm.com/ondemand>
> 
>  
> 
> 
> Warren Taylor <[EMAIL PROTECTED]>
> Sent by: Linux on 390 Port <[email protected]> 01/15/2008 04:54 PM
> Please respond to
> Linux on 390 Port <[email protected]>
> To 
> [email protected]
> cc
> Subject 
> IP address changed, how do I update rhel4 to match?
> 
> 
> 
> 
> anyone know how to updae vm/linux to reflect our new IP address?
> 
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> <http://www.marist.edu/htbin/wlvindex?LINUX-390>
> 
> 



----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

<<image.jpg>>

<<image.jpg>>

Reply via email to