[opensuse-autoinstall] Question: yast autoyast command line alternative
Dear all, I wish to create autoinstall files from several SLES and OpenSuse machine. About 40 in total. These systems were installed by someone else in the past. Some would have used autoyast and other would have been installed from an ISO image. I know that I can run the yast autoyast command to clone the system configuration into an .xml file, which I would like to use as a profile in case of system destruction (!). Is there a command line alternative to the yast UI so that I can kick all of these at the same time? Regards, Simon. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Friday 05 February 2010 Simon Loewenthal/NL/Tele2 wrote:
I know that I can run the yast autoyast command to clone the system
Is there a command line alternative to the yast UI so that I can kick all of these at the same time?
you can use "yast2 clone_system" -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Dear Uwe, I've been looking on Google for a day for this command. This makes my life so much easier. Thank-you. I notice that it starts a ASCII UI but I intend to call this via ssh. e.g ssh root@t2prd33 'yast2 clone_system' Is there a parameter I can specify to have it fall back to a dumb tty, or will it attempt to detect this automatically? Simon. Uwe Gansert wrote:
on Friday 05 February 2010 Simon Loewenthal/NL/Tele2 wrote:
I know that I can run the yast autoyast command to clone the system
Is there a command line alternative to the yast UI so that I can kick all of these at the same time?
you can use "yast2 clone_system"
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Friday 05 February 2010 Simon Loewenthal/NL/Tele2 wrote:
I've been looking on Google for a day for this command. This makes my life so much easier. Thank-you.
I notice that it starts a ASCII UI but I intend to call this via ssh. e.g ssh root@t2prd33 'yast2 clone_system' Is there a parameter I can specify to have it fall back to a dumb tty, or will it attempt to detect this automatically?
I did not test it but something like this might do the trick: ssh --batch root@t2prd33 "screen -D -m yast clone_system" but it's untested by me -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug listening to: "Stalkers" by mind.in.a.box -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
A ssh --batch root@t2prd33 "screen -D -m yast clone_system &" should work. - the target system will shortly switch to text mode and then back to graphic ( Looks like a change back and forth from tty7 ) - clone_system tries to install software in case its needed by it. Do not ask me what happens if this fails. - Its takes some time ( in terms of minutes ) and in unattended mode i had crashes of a few machines because of clone_system Note: - You can attach with a "screen -d -RR" to the running YAST process on the target machine. ( Of course you must login first ) - CRTL_A CRTL_D detach from that session. Cheers Hajo -----Original Message----- From: Uwe Gansert [mailto:ug@suse.de] Sent: Friday, February 05, 2010 12:45 PM To: opensuse-autoinstall@opensuse.org Subject: Re: [opensuse-autoinstall] Question: yast autoyast command line alternative on Friday 05 February 2010 Simon Loewenthal/NL/Tele2 wrote:
I've been looking on Google for a day for this command. This makes my life so much easier. Thank-you.
I notice that it starts a ASCII UI but I intend to call this via ssh. e.g ssh root@t2prd33 'yast2 clone_system' Is there a parameter I can specify to have it fall back to a dumb tty, or will it attempt to detect this automatically?
I did not test it but something like this might do the trick: ssh --batch root@t2prd33 "screen -D -m yast clone_system" but it's untested by me -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug listening to: "Stalkers" by mind.in.a.box -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (3)
-
Hans-Joachim Ehlers
-
Simon Loewenthal/NL/Tele2
-
Uwe Gansert