[opensuse-autoinstall] autoyast log files
Dear all, Just a quick question: Once a system is installed via autoyast, does it leave a log file of what was done and what failed afterwards. I had a look in /root but saw nothing obvious. Does it log on the server? Regards, S -- Simon Loewenthal/Tele2 GSM: +31 6 2000 5427 [ -d . ] || echo 'Oh!' ******** IMPORTANT NOTICE ******** This e-mail (including any attachments) may contain information that is confidential or otherwise protected from disclosure and it is intended only for the addressees. If you are not the intended recipient, please note that any copying, distribution or other use of information contained in this e-mail (and its attachments) is not allowed. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message (including any attachments) from your system. Please note that e-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be subject of unauthorized interception or other interference without the knowledge of sender or recipient. Tele2 only send and receive e-mails on the basis that Tele2 is not responsible for any such computer viruses, corruption or other interference or any consequences thereof. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Simon Loewenthal/NL/Tele2 schrieb:
Dear all,
Just a quick question: Once a system is installed via autoyast, does it leave a log file of what was done and what failed afterwards. I had a look in /root but saw nothing obvious. Does it log on the server?
Regards, S
Hi Simon, take a look at /var/log/YaST2/ and /var/adm/autoinstall/. The output of an autoinstall post-script, for example, would be at /var/adm/autoinstall/logs/<name-of-the-script>. Regards, Oliver -- Oliver Schweikert Software Development HORIBA Europe Automation Division GmbH Zabergäustr. 3 73765 Neuhausen (Germany) Tel: +49 7158-933-413 Fax: +49 7158-933-613 Email: oliver.schweikert@horiba.com Geschäftsführer: Thomas E. Ehmann, Yuichi Muroga, Takashi Nagano Amtsgericht Stuttgart, HRB 213200 -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Wed, Oct 7, 2009 at 17:27, Simon Loewenthal/NL/Tele2 <simon.loewenthal@klunky.co.uk> wrote:
Dear all,
Just a quick question: Once a system is installed via autoyast, does it leave a log file of what was done and what failed afterwards. I had a look in /root but saw nothing obvious. Does it log on the server?
/var/log/YaST2/y2log /var/adm/autoinstall/* tty, 686f6c6d -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Great, thank-you to both of you. 686f6c6d wrote:
On Wed, Oct 7, 2009 at 17:27, Simon Loewenthal/NL/Tele2 <simon.loewenthal@klunky.co.uk> wrote:
Dear all,
Just a quick question: Once a system is installed via autoyast, does it leave a log file of what was done and what failed afterwards. I had a look in /root but saw nothing obvious. Does it log on the server?
/var/log/YaST2/y2log /var/adm/autoinstall/*
tty, 686f6c6d
-- Simon Loewenthal/Tele2 GSM: +31 6 2000 5427 ******** IMPORTANT NOTICE ******** This e-mail (including any attachments) may contain information that is confidential or otherwise protected from disclosure and it is intended only for the addressees. If you are not the intended recipient, please note that any copying, distribution or other use of information contained in this e-mail (and its attachments) is not allowed. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message (including any attachments) from your system. Please note that e-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be subject of unauthorized interception or other interference without the knowledge of sender or recipient. Tele2 only send and receive e-mails on the basis that Tele2 is not responsible for any such computer viruses, corruption or other interference or any consequences thereof. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
I had this in the autoyast.xml: </users> <post-scripts config:type="list"> <script> <location>http://t2nl-app200:/export/postinstall/scripts/ntp.conf.sh</location> </script> </post-scripts> </profile> I grepped through the /var/log/YaST2/y2log-1 and found this line "post-scripts":[$["location":"http://t2nl-app200:/export/postinstall/scripts/ntp.conf.sh"]], So, it did something with it. Yet, the file the script was meant to create is not there. The ntp.conf.sh contained: # cat ntp.conf.sh cp -f /etc/ntp.conf /etc/ntp.conf.original.autoyast cat > /etc/ntp.conf << EOF server 127.127.1.0 fudge 127.127.1.0 stratum 10 driftfile /var/lib/ntp/drift/ntp.drift logfile /var/log/ntp keys /etc/ntp.keys trustedkey 1 requestkey 1 server 10.254.26.3 iburst restrict 10.254.26.2 restrict time.versatel.com EOF chmod 640 /etc/ntp.conf chown root:ntp /etc/ntp.conf Unsure where else I should check for error messages. Simon Loewenthal/NL/Tele2 wrote:
Great, thank-you to both of you.
686f6c6d wrote:
On Wed, Oct 7, 2009 at 17:27, Simon Loewenthal/NL/Tele2 <simon.loewenthal@klunky.co.uk> wrote:
Dear all,
Just a quick question: Once a system is installed via autoyast, does it leave a log file of what was done and what failed afterwards. I had a look in /root but saw nothing obvious. Does it log on the server?
/var/log/YaST2/y2log /var/adm/autoinstall/*
tty, 686f6c6d
-- Simon Loewenthal/Tele2 GSM: +31 6 2000 5427 [ -d . ] || echo 'Oh!' ******** IMPORTANT NOTICE ******** This e-mail (including any attachments) may contain information that is confidential or otherwise protected from disclosure and it is intended only for the addressees. If you are not the intended recipient, please note that any copying, distribution or other use of information contained in this e-mail (and its attachments) is not allowed. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message (including any attachments) from your system. Please note that e-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be subject of unauthorized interception or other interference without the knowledge of sender or recipient. Tele2 only send and receive e-mails on the basis that Tele2 is not responsible for any such computer viruses, corruption or other interference or any consequences thereof. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Hi <location>http://t2nl-app200:/export/postinstall/scripts/ntp.conf.sh</location> I think you should remove the : after app200 above. Seems like a leftover from some nfs location. HTH //Andreas
On 10/8/2009 at 15:21, Simon Loewenthal/NL/Tele2 <simon.loewenthal@klunky.co.uk> wrote: I had this in the autoyast.xml:
</users> <post-scripts config:type="list"> <script>
<location>http://t2nl-app200:/export/postinstall/scripts/ntp.conf.sh</location> </script> </post-scripts> </profile>
I grepped through the /var/log/YaST2/y2log-1 and found this line
"post-scripts":[$["location":"http://t2nl-app200:/export/postinstall/scripts /ntp.conf.sh"]],
So, it did something with it. Yet, the file the script was meant to create is not there. The ntp.conf.sh contained: # cat ntp.conf.sh cp -f /etc/ntp.conf /etc/ntp.conf.original.autoyast cat > /etc/ntp.conf << EOF server 127.127.1.0 fudge 127.127.1.0 stratum 10 driftfile /var/lib/ntp/drift/ntp.drift logfile /var/log/ntp keys /etc/ntp.keys trustedkey 1 requestkey 1 server 10.254.26.3 iburst restrict 10.254.26.2 restrict time.versatel.com EOF chmod 640 /etc/ntp.conf chown root:ntp /etc/ntp.conf
Unsure where else I should check for error messages.
Simon Loewenthal/NL/Tele2 wrote:
Great, thank-you to both of you.
686f6c6d wrote:
On Wed, Oct 7, 2009 at 17:27, Simon Loewenthal/NL/Tele2 <simon.loewenthal@klunky.co.uk> wrote:
Dear all,
Just a quick question: Once a system is installed via autoyast, does it leave a log file of what was done and what failed afterwards. I had a look in /root but saw nothing obvious. Does it log on the server?
/var/log/YaST2/y2log /var/adm/autoinstall/*
tty, 686f6c6d
-- Simon Loewenthal/Tele2 GSM: +31 6 2000 5427 [ -d . ] || echo 'Oh!'
******** IMPORTANT NOTICE ******** This e-mail (including any attachments) may contain information that is confidential or otherwise protected from disclosure and it is intended only for the addressees. If you are not the intended recipient, please note that any copying, distribution or other use of information contained in this e-mail (and its attachments) is not allowed. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message (including any attachments) from your system. Please note that e-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be subject of unauthorized interception or other interference without the knowledge of sender or recipient. Tele2 only send and receive e-mails on the basis that Tele2 is not responsible for any such computer viruses, corruption or other interference or any consequences thereof.
-- 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
Ahh. You are right. Typo. Andreas Taschner wrote:
Hi
<location>http://t2nl-app200:/export/postinstall/scripts/ntp.conf.sh</location>
I think you should remove the : after app200 above. Seems like a leftover from some nfs location.
HTH //Andreas
On 10/8/2009 at 15:21, Simon Loewenthal/NL/Tele2
<simon.loewenthal@klunky.co.uk> wrote:
I had this in the autoyast.xml:
</users> <post-scripts config:type="list"> <script>
<location>http://t2nl-app200:/export/postinstall/scripts/ntp.conf.sh</location> </script> </post-scripts> </profile>
I grepped through the /var/log/YaST2/y2log-1 and found this line
"post-scripts":[$["location":"http://t2nl-app200:/export/postinstall/scripts /ntp.conf.sh"]],
So, it did something with it. Yet, the file the script was meant to create is not there. The ntp.conf.sh contained: # cat ntp.conf.sh cp -f /etc/ntp.conf /etc/ntp.conf.original.autoyast cat > /etc/ntp.conf << EOF server 127.127.1.0 fudge 127.127.1.0 stratum 10 driftfile /var/lib/ntp/drift/ntp.drift logfile /var/log/ntp keys /etc/ntp.keys trustedkey 1 requestkey 1 server 10.254.26.3 iburst restrict 10.254.26.2 restrict time.versatel.com EOF chmod 640 /etc/ntp.conf chown root:ntp /etc/ntp.conf
Unsure where else I should check for error messages.
Simon Loewenthal/NL/Tele2 wrote:
Great, thank-you to both of you.
686f6c6d wrote:
On Wed, Oct 7, 2009 at 17:27, Simon Loewenthal/NL/Tele2 <simon.loewenthal@klunky.co.uk> wrote:
Dear all,
Just a quick question: Once a system is installed via autoyast, does it leave a log file of what was done and what failed afterwards. I had a look in /root but saw nothing obvious. Does it log on the server?
/var/log/YaST2/y2log /var/adm/autoinstall/*
tty, 686f6c6d
-- Simon Loewenthal/Tele2 GSM: +31 6 2000 5427 [ -d . ] || echo 'Oh!'
******** IMPORTANT NOTICE ******** This e-mail (including any attachments) may contain information that is confidential or otherwise protected from disclosure and it is intended only for the addressees. If you are not the intended recipient, please note that any copying, distribution or other use of information contained in this e-mail (and its attachments) is not allowed. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message (including any attachments) from your system. Please note that e-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be subject of unauthorized interception or other interference without the knowledge of sender or recipient. Tele2 only send and receive e-mails on the basis that Tele2 is not responsible for any such computer viruses, corruption or other interference or any consequences thereof.
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
-- Simon Loewenthal/Tele2 GSM: +31 6 2000 5427 [ -d . ] || echo 'Oh!' ******** IMPORTANT NOTICE ******** This e-mail (including any attachments) may contain information that is confidential or otherwise protected from disclosure and it is intended only for the addressees. If you are not the intended recipient, please note that any copying, distribution or other use of information contained in this e-mail (and its attachments) is not allowed. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message (including any attachments) from your system. Please note that e-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be subject of unauthorized interception or other interference without the knowledge of sender or recipient. Tele2 only send and receive e-mails on the basis that Tele2 is not responsible for any such computer viruses, corruption or other interference or any consequences thereof. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Thursday 08 October 2009 Simon Loewenthal/NL/Tele2 wrote:
I had this in the autoyast.xml:
</users> <post-scripts config:type="list"> <script>
<location>http://t2nl-app200:/export/postinstall/scripts/ntp.conf.sh</locat ion> </script> </post-scripts> </profile>
all kind of scripts have to be in the <scripts> section. See the examples: http://www.suse.de/~ug/autoyast_doc/createprofile.scripts.html <post-scripts> is not under <profile> but under <scripts> which is under <profile> -- 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
Hi all, Its been a while since I addressed my autoyast server, because I had to move it to another location and set things up again. So back to post-installs: I mended some typographical errors in the directives below, and installed once more. However, yast eventually gave a nice blue screen after it had rebooted. It has these tabs: Help Back Abort Next, but not much else, and these are locked up. When I remove these portions of the directive the install process completes: <interpreter>shell</interpreter> <filename>ntp.conf.sh</filename> The current post install directive reads as this, <post-scripts config:type="list"> <script> <location>http://t2nl-app205/scripts/ntp.conf.sh</location> <interpreter>shell</interpreter> <filename>ntp.conf.sh</filename> </script> ...& the contents of ntp.conf.sh on the http server reads, (it is /tmp/ntp.conf for test purposes) cat > /tmp/ntp.conf << EOF server 127.127.1.0 fudge 127.127.1.0 stratum 10 driftfile /var/lib/ntp/drift/ntp.drift logfile /var/log/ntp keys /etc/ntp.keys trustedkey 1 requestkey 1 server 10.254.26.3 iburst restrict 10.254.26.2 restrict time.versatel.com EOF chmod 640 /tmp/ntp.conf chown root:ntp /tmp/ntp.conf Uwe Gansert wrote:
on Thursday 08 October 2009 Simon Loewenthal/NL/Tele2 wrote:
I had this in the autoyast.xml:
</users> <post-scripts config:type="list"> <script>
<location>http://t2nl-app200:/export/postinstall/scripts/ntp.conf.sh</locat ion> </script> </post-scripts> </profile>
all kind of scripts have to be in the <scripts> section. See the examples: http://www.suse.de/~ug/autoyast_doc/createprofile.scripts.html <post-scripts> is not under <profile> but under <scripts> which is under <profile>
-- Simon Loewenthal/Tele2 GSM: +31 6 2000 5427 [ -d . ] || echo 'Oh!' ******** IMPORTANT NOTICE ******** This e-mail (including any attachments) may contain information that is confidential or otherwise protected from disclosure and it is intended only for the addressees. If you are not the intended recipient, please note that any copying, distribution or other use of information contained in this e-mail (and its attachments) is not allowed. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message (including any attachments) from your system. Please note that e-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be subject of unauthorized interception or other interference without the knowledge of sender or recipient. Tele2 only send and receive e-mails on the basis that Tele2 is not responsible for any such computer viruses, corruption or other interference or any consequences thereof. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
PS. I found this in the y2log-1 file: "post-scripts":[$["location":"http://t2nl-app205/scripts/ntp.conf.sh"]] This was the only reference in the file for ntp.conf S. Simon Loewenthal/NL/Tele2 wrote:
Hi all,
Its been a while since I addressed my autoyast server, because I had to move it to another location and set things up again. So back to post-installs:
I mended some typographical errors in the directives below, and installed once more. However, yast eventually gave a nice blue screen after it had rebooted. It has these tabs: Help Back Abort Next, but not much else, and these are locked up. When I remove these portions of the directive the install process completes: <interpreter>shell</interpreter> <filename>ntp.conf.sh</filename>
The current post install directive reads as this,
<post-scripts config:type="list"> <script> <location>http://t2nl-app205/scripts/ntp.conf.sh</location> <interpreter>shell</interpreter> <filename>ntp.conf.sh</filename> </script>
...& the contents of ntp.conf.sh on the http server reads, (it is /tmp/ntp.conf for test purposes) cat > /tmp/ntp.conf << EOF server 127.127.1.0 fudge 127.127.1.0 stratum 10 driftfile /var/lib/ntp/drift/ntp.drift logfile /var/log/ntp keys /etc/ntp.keys trustedkey 1 requestkey 1 server 10.254.26.3 iburst restrict 10.254.26.2 restrict time.versatel.com EOF chmod 640 /tmp/ntp.conf chown root:ntp /tmp/ntp.conf
Uwe Gansert wrote:
on Thursday 08 October 2009 Simon Loewenthal/NL/Tele2 wrote:
I had this in the autoyast.xml:
</users> <post-scripts config:type="list"> <script>
<location>http://t2nl-app200:/export/postinstall/scripts/ntp.conf.sh</locat ion> </script> </post-scripts> </profile>
all kind of scripts have to be in the <scripts> section. See the examples: http://www.suse.de/~ug/autoyast_doc/createprofile.scripts.html <post-scripts> is not under <profile> but under <scripts> which is under <profile>
-- Simon Loewenthal/Tele2 GSM: +31 6 2000 5427 [ -d . ] || echo 'Oh!' ******** IMPORTANT NOTICE ******** This e-mail (including any attachments) may contain information that is confidential or otherwise protected from disclosure and it is intended only for the addressees. If you are not the intended recipient, please note that any copying, distribution or other use of information contained in this e-mail (and its attachments) is not allowed. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message (including any attachments) from your system. Please note that e-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be subject of unauthorized interception or other interference without the knowledge of sender or recipient. Tele2 only send and receive e-mails on the basis that Tele2 is not responsible for any such computer viruses, corruption or other interference or any consequences thereof. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Friday 30 October 2009 Simon Loewenthal/NL/Tele2 wrote:
PS. I found this in the y2log-1 file:
"post-scripts":[$["location":"http://t2nl-app205/scripts/ntp.conf.sh"]]
This was the only reference in the file for ntp.conf
that's okay. You have to look into y2log and not y2log-1 for post-scripts logging. Currently I have no explanation why removing "interpreter" and "filename" makes it work for you. I'd need the logs and the profile. -- 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: "Rebellion" by Agonoize -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (5)
-
686f6c6d
-
Andreas Taschner
-
Oliver Schweikert
-
Simon Loewenthal/NL/Tele2
-
Uwe Gansert