Hi Hugh,<br><br>We have many machines that we will be building, so we are hoping to automate the process of monitoring the status of the OS.<br><br>Spawning a script and monitoring 'install.log' is an option.  Another thought would be monitoring the anaconda.log.<br>
<br>I notice the log prints the following....<br>anaconda.log:21:22:31 INFO    : moving (1) to step partitionobjinit<br>anaconda.log:21:22:32 INFO    : moving (1) to step autopartitionexecute<br>anaconda.log:21:22:32 INFO    : moving (1) to step partitiondone<br>
anaconda.log:21:22:32 INFO    : moving (1) to step bootloadersetup<br>anaconda.log:21:22:32 INFO    : moving (1) to step networkdevicecheck<br>anaconda.log:21:22:32 INFO    : moving (1) to step reposetup<br>anaconda.log:21:22:34 INFO    : moving (1) to step basepkgsel<br>
anaconda.log:21:22:35 INFO    : moving (1) to step postselection<br>anaconda.log:21:22:44 INFO    : moving (1) to step install<br>anaconda.log:21:22:44 INFO    : moving (1) to step enablefilesystems<br>anaconda.log:21:23:48 INFO    : moving (1) to step migratefilesystems<br>
anaconda.log:21:23:48 INFO    : moving (1) to step setuptime<br>anaconda.log:21:23:49 INFO    : moving (1) to step preinstallconfig<br>anaconda.log:21:23:49 INFO    : moving (1) to step installpackages<br>anaconda.log:21:25:57 INFO    : moving (1) to step postinstallconfig<br>
anaconda.log:21:25:57 INFO    : moving (1) to step writeconfig<br>anaconda.log:21:25:57 INFO    : moving (1) to step firstboot<br>anaconda.log:21:25:57 INFO    : moving (1) to step instbootloader<br>anaconda.log:21:25:59 INFO    : moving (1) to step writeksconfig<br>
anaconda.log:21:25:59 INFO    : moving (1) to step writeregkey<br>anaconda.log:21:25:59 INFO    : moving (1) to step setfilecon<br>anaconda.log:21:25:59 INFO    : moving (1) to step copylogs<br><br>It looks like if I monitor these steps then I might be able to get a better estimate of the installation progress.<br>
<br>What do you think?  Any thought?<br><br>Thanks,<br><br>David<br><br><div class="gmail_quote">On Tue, May 3, 2011 at 8:01 PM, Hugh Brown <span dir="ltr"><<a href="mailto:hbrown@divms.uiowa.edu">hbrown@divms.uiowa.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5"><br>
<br>
On 05/03/2011 04:34 PM, Chun Tat David Chu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
<br>
I am hoping to run a python script in the background during %pre to monitor<br>
the kickstart install status.  My script will periodically send status to a<br>
server somewhere within LAN and report the current installation status.<br>
<br>
Running a python script in %pre and sending status to a remote server is the<br>
easy part but I am not sure what to monitor to retrieve the kickstart<br>
install status.<br>
<br>
One thought I have is to monitor the /mnt/sysimage/root/install.log and<br>
compare the number of packages installed and the number of packages<br>
specified in the ks.cfg and get a rough estimate of the kickstart install<br>
status.<br>
<br>
I am not sure if this is a correct way to do or there's a better to do so.<br>
<br>
Please let me know if you've any suggestion or thought.<br>
<br>
Thanks!<br>
<br>
- David<br>
</blockquote>
<br></div></div>
My memory says that the install.log is actually in /tmp/install.log. After the installation is finished it is copied to /mnt/sysimage/root/install.log.<br>
<br>
For fedora systems, I enabled sshd and require a password:<br>
<br>
sshpw --username=root  XXXXXXXX  --plaintext<br>
<br>
If I want to check status, I ssh in and look.  If I don't, there's a script that will email me when it has finished.<br>
<br>
On RH5 systems, I enabled vnc and would use vncviewer to connect and check progress.<br>
<br>
Otherwise, watching the number of packages installed in install.log works.<br><font color="#888888">
<br>
Hugh</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com" target="_blank">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>
</div></div></blockquote></div><br>