Hi,

Timestamps on all lines would be desirable. This would assist determining if something should hang... or shoddy network connectivity makes things really slow...

Darren Kenny perorated, on or about 12/08/10 02:54:
Hi,

As part of the migration for AI to the CUD architecture, we are looking at at
how best to provide some progress information to the console, and I would like
to get peoples feedback on whether this meets their requirements or not.

The amount of information would be minimal, it's primarily to let people know
that an AI install is in progress, and that it's still working or has failed,
etc. Detailed logging is already being provided in the install log should that
be desired.

The current proposed solution is to provide a customized log handler that can
direct specific output to stderr, and the SMF service will in turn direct
stderr to the device /dev/sysmsg which will then direct any text output to the
console, and any auxiliary console devices.

This text would of course then be merged with any other text output to the
console - including the login: prompt.

My current assumption is that people won't be logging into the console usually
unless they have something specific to do - at the moment this tends to be to
check if the AI install service is actually running...

So if we output a couple of new-lines, and then start the logging, it would
look something like:

Successful Install:

     login:

     Starting Automated Installation at<DATE>
     - Device Driver Updates for Live Environment
     - Discovering Targets
     - Selecting Target(s)
     - Instantiating Target(s)
     - Beginning Transfer Phase(s)
       - Installing from IPS ................... Done
       - Copying files ...... Done
     - Transfers completed
     - Applying Initial Target Configuration .... Done
     - Installing Device Driver Updates to new Boot Environment ... Done
     - Updating Boot Archive
     - Transferring Logs to new Boot Environment
     Automated Installation Completed Successfully at<DATE>
     Rebooting...

Failed Install:

     login:

     Starting Automated Installation at<DATE>
     - Device Driver Updates for Live Environment
     - Discovering Targets
     - ERROR: Failed to locate any suitable targets, further information
       is available in the log at : /var/run/install_log
     Automated Installation Failed at<DATE>

If someone was to want to still log in, then they can, by pressing RETURN,
which will result in the login: prompt being shown again.

It's not currently planned, but we could consider ceasing the logging to the
console once someone has logged in so as th not cause more noise there.

Does this sound like a runner to people, or do people feel that more is
required?

Thanks,

Darren.

_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

--
~~~~~~~~\o/~~~~~~~~
Cheers,
Jon.
{-%]
========
If you always do what you've always done, you'll always get what you've always 
gotten.
- Anon.
--------
When someone asks you, "Penny for your thoughts," and you put your two cents 
in, what happens to the other penny?
- G. Carlin (May 12, 1937 - June 22, 2008)

<<attachment: jon_aimone.vcf>>

_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to