Intercepting console messages without disabling the console

Intercepting console messages without disabling the console

Post by Brett Macki » Tue, 28 Feb 1995 12:53:58



I want to monitor a console on HP-UX 9.04 system without rendering
the console unusable. Currently HP-UX 9.04 does have a facility to
capture MOST messages via syslog but unfortunately some UNIX programs
and third party applications write directly to /dev/console. These
are the nasties I need to capture.

Any help would be greatly appreciated......

 
 
 

Intercepting console messages without disabling the console

Post by STOCKHOLDING CORPORATION OF INDIA LT » Fri, 03 Mar 1995 19:09:31



>I want to monitor a console on HP-UX 9.04 system without rendering
>the console unusable. Currently HP-UX 9.04 does have a facility to
>capture MOST messages via syslog but unfortunately some UNIX programs
>and third party applications write directly to /dev/console. These
>are the nasties I need to capture.

>Any help would be greatly appreciated......

I,too, would like some info.
--
-------------------------------------------------------------------------------

Systems Co-ordinator                  | Phone : +91-22-20454811/2045483
Stock Holding Corporation of India Ltd| Fax : +91-22-2027211/2027202

 
 
 

Intercepting console messages without disabling the console

Post by Ian Johnsto » Wed, 08 Mar 1995 11:17:15




> >I want to monitor a console on HP-UX 9.04 system without rendering
> >the console unusable. Currently HP-UX 9.04 does have a facility to
> >capture MOST messages via syslog but unfortunately some UNIX programs
> >and third party applications write directly to /dev/console. These
> >are the nasties I need to capture.

> >Any help would be greatly appreciated......

> I,too, would like some info.
> --

On a HP 9000/800 its is easy.  Just connect a printer to your second
console port and away you go.  This will give lots of paper that might
not be suitable.  What we did was to connect the second console port to
a terminal server.  This then allowed remote access to the console when
the machine was in single user mode.  The second port is an output device
only unless control is switched across.  This prevents two people having
input to the console at the same time.  Once you have connected the port
to a terminal server you can also then write some TCP/IP programs to
connect to the terminal server and monitor the data.
With a 700 series machine I have no idea but I suspect something can be
done.   What about changing the name of /dev/console to something else
and then creating a named pipe called /dev/console and have a program
reading from the named pipe do the monitoring you require.  It would also
pass the info onto the real /dev/console.  I haven't actually tried this
but I would be interested in giving it a try.

Ian J

 
 
 

1. How to present console messages without a console window?


Look at "xconsole".  It does nothing but display (redirected) console
output.  More specifically: it does NOT run a shell.  Should come as
part of OpenWindows.  Try "man xconsole".

You can run it along with other X programs at login time.

                        William LeFebvre
                        Decision and Information Sciences
                        Argonne National Laboratory

2. Openlook - how do I save my desktop ??

3. intercepting console messages

4. Diffs to the Frequently Asked Questions postings

5. shl on console hangs on console message

6. lock-deamon

7. Why don't console message appear in my ``console'' window?

8. more and xterms

9. Disable messages appear on the console

10. How to disable system log messages appearing on consoles..

11. how to disable console boot messages

12. disable console message

13. messages on console: got a messages (-1, 0x2018)