<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Romain,<br>
<br>
take a look at the chapter "Saving log files" in the FAI guide [1].
If configured, FAI can save all logs to a remote log server via SSH.<br>
<br>
That being said, I find it difficult to define when a host install
process has actually failed. There are often situations where an
install completes successfully, but the following bootup fails
because some minor thing broke during install, e.g. because GRUB
hasn't been set up correctly. And even if the system boots
successfully, maybe a critical component during install failed which
prevents you from logging in remotely.<br>
<br>
So I always check at least the FAI error.log on the log server to
get a quick glimpse if anything went wrong during install. On
automated systems I have mechanisms in place that essentially
perform integrity checks on the newly installed system and that are
capable of fixing select issues like a broken SSH access.<br>
<br>
Cheers,<br>
<br>
<br>
Robert<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="https://fai-project.org/fai-guide/#_a_id_isavelog_a_saving_log_files_task_savelog">https://fai-project.org/fai-guide/#_a_id_isavelog_a_saving_log_files_task_savelog</a><br>
<br>
<br>
<div class="moz-cite-prefix">Am 24.03.22 um 14:45 schrieb Romain
Pelissier:<br>
</div>
<blockquote type="cite"
cite="mid:CAOMp3fbpOkFeBMu3gMJSPMW+BvDMcGmdS+eOmd9jeEWC7txNqA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div class="gmail_default"
style="font-family:verdana,sans-serif">Hello everybody,</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif">Do you know a way to
execute a script on the server (FAI) side after a successful
or unsuccessful client's deployment?</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif">In case of an
unsuccessful attempt, is there a way to get some logs and
attach them to an email for example?</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif">Thanks for any useful
info you can provide about this :)</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif">Romain</div>
</div>
</blockquote>
<br>
</body>
</html>