Monitoring lase

 5 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
scott--
New Member
Posts: 1
New Member
    Hello all

    I have a couple of Lawson systems that have been having trouble with lase.

    I'm looking for a good way to automatically verify lase is up and functioning.   Is there a command line program that does some kind of simple lookup that depends on lase?

    Ideally something (pseudo-code)

    $ lawshowuser chbrown

    I could then wrap that in a script and monitor the output.

    Any clever ideas? 

    Thanks

    Scott
    Greg Moeller
    Veteran Member
    Posts: 1498
    Veteran Member
      If you issue a startlase command, it will either start lase or tell you that it is already running? Will that suffice for your use?
      Greg Moeller
      Veteran Member
      Posts: 1498
      Veteran Member
        Oh, also, if lase is not running, startlase will start it AND[\b] tell you that it started..
        ie. If lase is not running your output will look similar to
        lase: security environment 9.0.1.7.181 2010-08-10 04:00:00 (201010) started.

        If lase is running, your output will be similar to:
        Security Environment already started.
        Xin Li
        Veteran Member
        Posts: 133
        Veteran Member
          If your Lawson is on Unix platform, you should be able to use ps -ef|grep lase to check whether lase process exists or not.
          Greg Moeller
          Veteran Member
          Posts: 1498
          Veteran Member
            If you use what Xin Li suggests, make sure you exclude the actual grep command. ps -ef|grep lase|grep -v grep
            EricS
            Veteran Member
            Posts: 80
            Veteran Member
              One of the things that I look for on my AIX platform is $LAWDIR/system/lase.pid. If its not there, I know lase is down and was brought down cleanly. If it is there, it gives me the PID of the lase process. You can ps -ef | grep `cat lase.pid` | grep -v grep