It's been a while but as far as I remember in redhat (clefos should be similar), for single user mode (so no network) you can do a "#cp vi vmsg" combo. When the zipl screen shows up you have a few seconds to type in your choice with additional kernel parameters. So you can do for example #cp vi vmsg 0 1 (0 for first choice from the list and 1 for single user mode). If you feel that single user mode is not good for your task, then I am sure there are other options you could use via "vi vmsg" (BTW, the "vi" at this point has nothing to do with linux vi program. it stands for "virtual input" AFIK). But sounds like this should work just fine for you.
After you get into the single user mode, sed is a good option to do what you want Changing IP address with sed in the ifcfg script is pretty easy. For example sed -i 's/10.15.15.7/10.25.25.8/' ./ifcfg-filename without "-i" it would just print what it would do without saving "s" is for "substitute" and then you have a string you want to change and your destination string Other thoughts Can you just link that minidisk to another running zlinux, bring it online, mount it and get whatever you want or even update that icfg script at that point? That's what I usually do. It might get slightly more difficult if you have the same root VG name everywhere but there are workarounds for tha too. Also, sometimes when I work with a clone and I want to change the IP address so it doesn't mess anything already live, I would boot it without a network interface being coupled to a virtual switch. Then I would update the network scripts (with sed since ssh of course would not be available). thanks Gregory On Thu, Jul 22, 2021 at 8:55 AM Frank M. Ramaekers <[email protected]> wrote: > I need to recover some files from a FLASHCOPY backup of my ClefOS > instance. I'm currently in the process of restoring these to different > disk locations. > > My questions are: > > 1) How can I bring this new zLinux (VM) up in maintenance mode to > change the IP address (in /etc/sysconfig/network-scripts) > > 2) What method can I use (sed?) to change these ip address since vi > doesn't work very well on the VM console for zLinux > > After I do these, I should be able to bring it up normally and retrieve > the programs/scripts/data that I need? > > Other thoughts? > > Frank Ramaekers Jr. | Systems Senior Administrator | CIS Mainframe Services > Unisys | O-(512) 387-3949 | M-(254) 214-1820 | > [email protected]<mailto:[email protected]> > > [unisys_logo]<http://www.unisys.com/> > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all devices. > [Grey_LI]<http://www.linkedin.com/company/unisys> [Grey_TW] < > http://twitter.com/unisyscorp> [Grey_GP] < > https://plus.google.com/+UnisysCorp/posts> [Grey_YT] < > http://www.youtube.com/theunisyschannel> [Grey_FB] < > http://www.facebook.com/unisyscorp> [Grey_Vimeo] <https://vimeo.com/unisys> > [Grey_UB] <http://blogs.unisys.com/> [Grey_Weibo] < > https://weibo.com/unisyschina> > > > ---------------------------------------------------------------------- > This message contains information which is privileged and confidential and > is solely for the use of the intended recipient. If you are not the > intended recipient, be aware that any review, disclosure, copying, > distribution, or use of the contents of this message is strictly > prohibited. If you have received this in error, please destroy it > immediately and notify us at [email protected]. > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO LINUX-390 or > visit > http://www2.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://www2.marist.edu/htbin/wlvindex?LINUX-390
