Saved Messages

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Saved Messages

  • Creator
    Topic
  • #47718
    David Harrison
    Participant

      Cloverleaf 5.2 on Solaris8 with Veritas clustering

      I’ve just gone live with an ordercomms interface which is generating inbound and outbound saved message files on all threads. I intend to reduce the number of files once I am confident that all is well. The problem is that these files grow very quickly. Is there a way I can cycle them automatically without taking the interfaces down?

      Thanks,

      Dave

    Viewing 9 reply threads
    • Author
      Replies
      • #56528
        David Caragay
        Participant

          We run a cron script that cycles and compresses our saved message files on a nightly basis.  Since you can run the cycle save via the command line it works out well.  

          Example: hcicmd -p pacs_prod -c ‘stentor_prod save_cycle in’

        • #56529
          David Harrison
          Participant

            I’ve tried something like that but when you do any hci command in cron you get all sorts of environment errors. How do you set the required environment variables in cron?

          • #56530
            Dennis Pfeifer
            Participant

              00 17 * * * /usr/bin/ksh -c ‘export QUOVADX_INSTALL_DIR=/quovadx/qdx5.3; /myexecutable’ >> /tmp/myexecutable.log 2>&1

            • #56531
              Mark Thompson
              Participant

                We are on AIX, but this may work for Sun also:

                We put FPATH=… and QUOVADX_INSTALL_DIR=… in our /etc/environment file.  (Actually our 5.3 installation did most of this.)

                Our crontab entries look like

                0 3 * * * setroot; scriptname

                If the script needs to run for a particular site (other than the default site), we use

                0 3 * * * setroot; setsite mysite; scriptname

                - Mark Thompson
                HealthPartners

              • #56532
                Anonymous
                Participant

                  The install adds thses lines to the /etc/environment file:

                  # begin HCIenv 5.3

                  FPATH=/hci/quovadx/qdx5.3/integrator/kshlib

                  QUOVADX_INSTALL_DIR=/hci/quovadx/qdx5.3

                  # end HCIenv 5.3

                  If they’re not there for some reason you can add them.

                  Also, the traditional crontab entry that runs setroot first is:

                  59 23 * * * /usr/bin/ksh -c ‘eval `/qdx/quovadx/qdx5.1/integrator/sbin/hcisetenv -root ksh /qdx/quovadx/qdx5.1/integrator mysite`;archiveSmatFiles.htc mysite 30’ >/qdx/quovadx/qdx5.1/integrator/mysite/archiveSmatFiles.log 2>&1

                • #56533
                  David Harrison
                  Participant

                    I

                  • #56534
                    Dennis Pfeifer
                    Participant

                      notice the /sbin/ .. instead of /bin/

                      also .. I’ve gone to the following ..

                      ##52 23 * * * /usr/bin/ksh -c ‘export QUOVADX_INSTALL_DIR=/quovadx/qdx5.3; . ~/.profile; setsite utsw1hub; /quovadx/qdx5.3/integrator/scripts/UTcyclesavemsgs -d’ >/tmp/UTcyclesavemsgs.log 2>&1

                      it pretty much covers everything! ..

                      could also do a setroot if you wish

                      Dennis

                    • #56535
                      David Harrison
                      Participant

                        Dennis,

                        No joy – based upon your example, this is my cron job in hci:

                        38 16 * * * /usr/bin/ksh -c ‘export QUOVADX_INSTALL_DIR=/quovadx/qdx5.2; . ~/.profile; setsite frihlxtrn; /export/home/hci/cycletest’ >/export/home/cloverleaf/logs/testsmat.log 2>&1

                        and this is the error I got:

                        /usr/bin/ksh: setsite:  not found

                        No root is set.

                        ld.so.1: /quovadx/qdx5.2/integrator/bin/hcitcl: fatal: libtcl8.3.so: open failed: No such file or directory

                        Killed

                        Dave

                      • #56536
                        Dennis Pfeifer
                        Participant

                          which setsite

                          set

                          do you see these functions..

                          setroot ()

                          {

                             eval `${QUOVADX_INSTALL_DIR}/integrator/sbin/hcisetenv -root ksh $*`

                          }

                          setsite ()

                          {

                             eval `${QUOVADX_INSTALL_DIR}/integrator/sbin/hcisetenv -site ksh $*`

                          }

                          you should be able to execute these directly .. as Greg did…

                        • #56537
                          David Harrison
                          Participant

                            Dennis,

                            Finally got it to work before taking poison.

                            15 10 * * * QUOVADX_INSTALL_DIR=/quovadx/qdx5.2; export QUOVADX_INSTALL_DIR; /usr/bin/ksh -c ‘eval `/quovadx/qdx5.2/integrator/sbin/hcisetenv -root ksh /quovadx/qdx5.2/integrator frihlxtrn`;/export/home/hci/cycletest’ >/export/home/cloverleaf/logs/testsmat.log 2>&1

                            Thanks,

                            Dave

                        Viewing 9 reply threads
                        • The forum ‘Cloverleaf’ is closed to new topics and replies.