I've found ed to be pretty good for editing small files, but a bear at large ones (like rc.config). Perhaps it is bourne more in midunderstanding or maybe also bad memories of edlin.
I've had an opportunity to write a couple of rudimentary cloning scripts that use sed: sed s/oldipaddr/newipaddr/ <rc.config >rc.config.new You can do the same thing for the hostname. On Wednesday 30 October 2002 04:02 pm, you wrote: > Donna, > I update my SuSE guests from a 3270 console, using the ed editor. > Files are /etc/chandev.conf > /etc/modules.con - add alias for eth0 to point to new dasd driver, eg. > alias eth0 qeth > /etc/route.conf > /etc/rc.config - run /sbin/SuSEconfig after changing > run ifconfig or reboot > Betsie Spann > VM Systems Programmer > ----- Original Message ----- > From: "Donna Awald" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, October 30, 2002 11:55 AM > Subject: How do I reconfigure my ETH0 LCS device to a new device address i > n Command Line Mode? > > > I am trying to clone my SLE system running in LPAR mode to another LPAR. > > My > > > lan addresses are different as well as the IP address. I am able to do a > > DFDSS backup of the volumes, restore them to new addresses, IPL from the > > CDROM, update PARMFILE, ZIPL, and IPL successfully on the new DASD and > > LPAR. > > > But I can not configure the network. I am looking for something like the > > NETSETUP command on the boot CDROM. Because I am using a MP3000, and > > the system messages area as my console, I can only use command line > > commands. Does anyone know of a way to re-configure this thru command > > line? Or even booting from CDROM and chroot over to the system? It > > looks like IFCONFIG will help with switching the IP address, but I need > > to change the > > definition > > > of ETH0 to use a new address and port number. > > > > Thanks, > > > > Donna Awald > > Director of Systems Architecture > > Empagio > > "Creating Harmony in Human Resources" > > [EMAIL PROTECTED] > > http://www.empagio.com > > > > (678) 931-3016 (office) > > (678) 931-3001 (Fax) -- Rich Smrcina Sytek Services, Inc. Milwaukee, WI [EMAIL PROTECTED] [EMAIL PROTECTED] Catch the WAVV! Stay for Requirements and the Free for All! Update your S/390 skills in 4 days for a very reasonable price. WAVV 2003 in Winston-Salem, NC. April 25-29, 2003 For details see http://www.wavv.org