cancel
Showing results for 
Search instead for 
Did you mean: 

Dots in consola's messages

Carme Torca
Super Advisor

Dots in consola's messages

Hi,

Is there any way to remove the dots that come out of the console boot messages from a hp-ux when it starts?
The messages are like this:


Start multicast routing daemon ...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

............................................................ N/A
Start router discover protocol daemon .................................................................................

Start RARP protocol daemon ...................................................................................
Starting mail daemon .


Thaks a lot of,
Carmen.
Users are not too bad ;-)
2 REPLIES
Matti_Kurkela
Honored Contributor

Re: Dots in consola's messages

When HP-UX starts up/shuts down (or changes to a different runlevel, the /sbin/rc script first calls all the required /sbin/rc?.d/* scripts with the argument "start_msg" or "stop_msg" as appropriate, and stores the messages in an array. The script also notes the length of the longest message, and adds extra dots to the other messages to make them all the same length.

After collecting the messages, /sbin/rc runs the required /sbin/rc?.d/* scripts with the argument "start" or "stop" as appropriate, one by one. Before running each script, it displays the stored message, and after the script has completed, it appends the OK / N/A / FAIL result information to the end.

You get multiple consecutive lines of dots if one of your startup scripts displays anything other than a short one-line message when called with argument "start_msg" or "stop_msg".

If your startup script outputs nothing at all when called with argument "start_msg" or "stop_msg", you'll get a line that contains only dots.

For example, the generic SysVinit startup/shutdown script that comes with BMC Patrol (a commercial system monitoring software) does not understand these HP-UX-specific arguments, and produces a multi-line error message. This causes the "multiple lines of dots" effect... Once you've made sure all your startup/shutdown scripts produce only a single line of output when called with argument "start_msg" or "stop_msg", you should get a nice output where the OK / N/A / FAIL result information is in a straight column at the right edge of a regular 80-character terminal display.

Attached is an inittest.sh script that can be used to test all the init scripts for HP-UX start_msg/stop_msg feature support. When you run it (as root), it should display a series of lines like "Testing /sbin/rc?.d/<scriptname>". Any other output indicates an error, and should be pretty self-descriptive.

MK
MK
Bill Hassell
Honored Contributor

Re: Dots in consola's messages

Here's a similar script to check start/stop messages. It will show the length of every message in the /sbin/rc*.d directories. Add the option -v and it will also show the message in "" format to see exactly what the message has (including multiple lines, not good). To just see the problems, run with -q for quiet. You can also specify the smallest (-s) size permitted and the largest (-l).


Bill Hassell, sysadmin