Topic
6 replies Latest Post - ‏2012-05-15T09:44:59Z by Tibor_B
robinsguk
robinsguk
46 Posts
ACCEPTED ANSWER

Pinned topic Log messages breaking in to console session

‏2012-05-11T09:09:02Z |
Hello,

When I console on to my AIX LPARs which are running the Systems Director agent I get a constant stream of messages e.g.:

AIX Version 6
Copyright IBM Corporation, 1982, 2011.
Console login: root 6619262 1 0 10:03:23 - 0:00 bin/nonstop_aix @/var/opt/tivoli/ep/runtime/nonstop/config/nonstop.properties
root 6684922 1 0 10:03:22 - 0:00 bin/nonstop_aix @/opt/ibm/director/lwi/runtime/nonstop/config/nonstop.properties
root 11534472 6815908 0 10:06:24 - 0:00 grep nonstop_aix
root 6619262 1 0 10:03:23 - 0:00 bin/nonstop_aix @/var/opt/tivoli/ep/runtime/nonstop/config/nonstop.properties
root 6684922 1 0 10:03:22 - 0:00 bin/nonstop_aix @/opt/ibm/director/lwi/runtime/nonstop/config/nonstop.properties
root 11075624 6815908 0 10:06:34 - 0:00 grep nonstop_aix
root 6619262 1 0 10:03:23 - 0:00 bin/nonstop_aix @/var/opt/tivoli/ep/runtime/nonstop/config/nonstop.properties
root 6684922 1 0 10:03:22 - 0:00 bin/nonstop_aix @/opt/ibm/director/lwi/runtime/nonstop/config/nonstop.properties
root 9830592 6815908 0 10:06:44 - 0:00 grep nonstop_aix
root 6619262 1 0 10:03:23 - 0:00 bin/nonstop_aix @/var/opt/tivoli/ep/runtime/nonstop/config/nonstop.properties
root 6684922 1 0 10:03:22 - 0:00 bin/nonstop_aix @/opt/ibm/director/lwi/runtime/nonstop/config/nonstop.properties
root 11075632 6815908 0 10:06:54 - 0:00 grep nonstop_aix
root 6619262 1 0 10:03:23 - 0:00 bin/nonstop_aix @/var/opt/tivoli/ep/runtime/nonstop/config/nonstop.properties

As you can see this happens even before I log in.

How can I stop these messages breaking in to my console session?
Thanks
Glenn
Updated on 2012-05-15T09:44:59Z at 2012-05-15T09:44:59Z by Tibor_B
  • SystemAdmin
    SystemAdmin
    6907 Posts
    ACCEPTED ANSWER

    Re: Log messages breaking in to console session

    ‏2012-05-12T16:35:43Z  in response to robinsguk
    Hi,

    Which AIX 6.1 release do you use ?

    
    oslevel -s
    
    • robinsguk
      robinsguk
      46 Posts
      ACCEPTED ANSWER

      Re: Log messages breaking in to console session

      ‏2012-05-12T16:41:02Z  in response to SystemAdmin
      6.1 TL7
      • SystemAdmin
        SystemAdmin
        6907 Posts
        ACCEPTED ANSWER

        Re: Log messages breaking in to console session

        ‏2012-05-12T17:54:00Z  in response to robinsguk
        I think the start/stop script of cas agent is bugged.
        There may be a line which output is not redirected and causes output to console :

        /var/opt/tivoli/ep/runtime/nonstop/bin/cas_src.sh
        ...
        /usr/bin/ps -ef | grep nonstop_aix
        ...

        Correct the line to redirect output :

        
        root# stopsrc -s cas.agent root# vi /var/opt/tivoli/ep/runtime/nonstop/bin/cas_src.sh root# startsrc -s cas.agent
        


        /usr/bin/ps -ef | grep nonstop_aix >> $CAS_SRC_LOG
        or
        /usr/bin/ps -ef | grep nonstop_aix > /dev/null 2>&1
        • robinsguk
          robinsguk
          46 Posts
          ACCEPTED ANSWER

          Re: Log messages breaking in to console session

          ‏2012-05-13T13:19:19Z  in response to SystemAdmin
          That's better but not completely.

          I amended the file as you'd indicated.

          This has reduced the number of messages. I now get:

          The LWI Nonstop Profile is already running.
          The LWI Nonstop Profile is already running.
          The LWI Nonstop Profile is already running.
          The LWI Nonstop Profile is already running.
          The LWI Nonstop Profile is already running.
          The LWI Nonstop Profile is already running.
          The LWI Nonstop Profile is already running.

          There's a 10 second gap between each message.
          Glenn
          • SystemAdmin
            SystemAdmin
            6907 Posts
            ACCEPTED ANSWER

            Re: Log messages breaking in to console session

            ‏2012-05-13T17:44:55Z  in response to robinsguk
            The following shell is called in /var/opt/tivoli/ep/runtime/nonstop/bin/cas_src.sh and is responsible of "LWI Nonstop Profile" startup.

            ...
            /var/opt/tivoli/ep/runtime/nonstop/bin/installnonstop.sh -start >> $CAS_SRC_LOG
            ...

            Try to find why LWI Nonstop Profile is still trying to be started as it is already running, and/or maybe the startup shell output isn't redirected to logfile.
  • Tibor_B
    Tibor_B
    41 Posts
    ACCEPTED ANSWER

    Re: Log messages breaking in to console session

    ‏2012-05-15T09:44:59Z  in response to robinsguk
    Hi,
    might it be syslog issue? We have following line in /etc/syslog.conf:

    # *.debug /dev/console

    So I presume, that it is possible to direct some messages to console. Though, when I tried to confirm this behavior with:

    echo test > /dev/console

    i did not get what I expected - it should have printed "test" in my terminal...