Archive script for v5.7 needed

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Archive script for v5.7 needed

  • Creator
    Topic
  • #51635
    Matt Estrella
    Participant

      Hello All,

      I have recently upgraded to v5.7 – Windows 2003 and need to reinstall the Cloverleaf archive script that cycles all logs and saves files to an archive directory. Does anyone have a script for this?

      Thanks,

      Matt

    Viewing 2 reply threads
    • Author
      Replies
      • #71058
        Gary Atkinson
        Participant

          There is a built in log history in that version.  Go to site options from the network monitor screen.

        • #71059
          Matt Estrella
          Participant

            Thanks Gary – however, it appears that the process to save the files is based on file size. I would like to have this scheduled to occur once a day regardless of file size.

          • #71060
            Gary Atkinson
            Participant

              we are on Unix, so maybe you can use this as a template to build into a bat file.

              #!/bin/ksh

              #

              #

              # This script performs log file cycle operations for HCI environments

              # specified in “$SCRIPTDIR/hci.profile

              #

              # set -x

              export SCRIPTDIR=/home/hci/.cluster

              export FPATH=/qdx/quovadx/qdx5.5/integrator/kshlib

              #SCRIPTDIR=.

              #

              # Load HCI environment variables

              # (Root, site, processes to start, threads to start)

              #

              . $SCRIPTDIR/hci.profile

              #

              echo

              echo ### Starting Cycle Script ###

              echo

              #

              #

              # echo

              # echo ### Executing $SCRIPTDIR/os.start ###

              # echo

              # $SCRIPTDIR/os.start

              #

              # Start HCI components

              #

              echo

              echo “### Performing cycle actions for root $ASE_HCI_ROOT ###”

              echo

              SITE_LIST=”clinical”

              for site in $SITE_LIST; do

              echo SITE:$site

                     # Setroot to the proper root/site

                     setroot $HACMP_HCI_ROOT $site

                      plist=`grep process $HACMP_HCI_ROOT/$site/NetConfig | awk ‘{print $2}’`

                     #plist=`eval echo $”HACMP_HCI_PROCESSES_$site”`

                     for pname in $plist; do

                             if [ “$pname” = “transcription” ] ; then

                                     echo “### Skipped cycle on ‘transcription'”

                             else

                                     echo “### Do cycle on $pname ###”

                                     hcicmd -p $pname -c ‘. output_cycle’

                             fi

                     done

              done

              #

              echo

              echo “### HCI Cycle script complete ###”

              echo

              #

              exit 0

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