How do you auto generate daily idx and msg files

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf How do you auto generate daily idx and msg files

  • Creator
    Topic
  • #53351
    Rebecca Lovejoy
    Participant

      Cloverleaf idx and msg files saving in folder on a daily basis.  These files should be auto generated for each day.  Can’t figure out how to configure for this.

      Appreciate any feedback.

      Rebecca Lovejoy

    Viewing 7 reply threads
    • Author
      Replies
      • #77376
        Gary Atkinson
        Participant

          On 5.8 there an auto save option much like the process history log save option.  If you are on an earlier version there is perl script in the contrib directory that works will.  I think its called hcicyclesavemsg or something like that.  You can set it up to work from cron.

        • #77377
          Peter Heggie
          Participant

            Something like this will work:

            45 00 * * * setroot /hci/cis5.8/integrator; /usr/bin/ksh -c ‘eval `/hci/cis5.8/integrator/sbin/hcisetenv -root ksh /hci/cis5.8/integrator `;hcicyclesavemsgs -d -c -o 15’ >/tmp/cycle.b.savmsg..log 2>&1

            – our installation path is /hci/cis5.8; substitute yours if different

            – the script hcicyclesavemsgs is in /hci/cis5.8/integrator/contrib which is in the PATH for userid hci.

            We run this for each site, four times a day. It makes assumptions about where the archived smat files will be stored  (in ..//exec/processes//Inboundsave or /Outboundsave

            Peter Heggie
            PeterHeggie@crouse.org

          • #77378
            Keith McLeod
            Participant

              I f you have not used hcicyclesavemsgs before, you may need to check the path at the beginning of that file lcoated in the contrib directory.  I beleive it still has somehitng like a 3.52 path at the beginning of the file.

              Also your thread name limitation is 15 out of the box.  If you want longer you would need to modify the format contained in hciconnstatus….

            • #77379
              Gary Atkinson
              Participant

                ..and I just remembered one thing about that perl script.  The way the regex is written to find the thread name from Netconfig is a bit weird.  If you have two thread names that have the same/similar name, like conn_1_test and conn_1_prod, then only one thread name will be picked up.  I found this out the hard way along with the 15 character limit  ðŸ˜³

              • #77380
                Rebecca Lovejoy
                Participant

                  Thank you all for your help, we are v5.7.  I have the hcicyclesavemsgs file in contrib but nothing said about how to implement the script. Crontab(where do you configure for this)?

                  More detail would be great and thank you again.

                • #77381
                  Gary Atkinson
                  Participant

                    create a file, like crontab_entry.  Then to run “crontab crontab_entry” from the unix prompt.  This put what you have in the file into cron memory.  I like to create a file incase someone gets fancy and messes up with crontab -e or just runs crontab with no filename  ðŸ™„

                  • #77382
                    Rebecca Lovejoy
                    Participant

                      Not Unix, windows cmd line

                    • #77383
                      Gary Atkinson
                      Participant

                        I don’t know if it works on windows.  I used it on a unix box.  Try setting it up as a schedule task.  You try using a batch file.

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