Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Cycle SMAT
Would anyone be willing to share their SMAT cycle script? The one I made no longer works, and I don’t have the time to write a new one. I would really appreciated it.
Thanks,
- Jared Parish
Try this.. It will cycle process log, smat files and compress the .old files. Let me know how it works out.
setroot
setsite [site_name_here]
echo
echo site is:$HCISITE
hcicmd -p [process_name_here] -c ‘. output_cycle’
hcicmd -p [process_name_here] -c ‘[smat_file_name_here] save_cycle in’
hcicmd -p [process_name_here] -c ‘[smat_file_name_here] save_cycle out’
find $HCISITEDIR/exec/processes -name *.old.idx -exec compress -f {} ;
find $HCISITEDIR/exec/processes -name *.old.msg -exec compress -f {} ;
We use the scripts in the attached archiv to create backups of the SMAT files with a timestamp.
There is a Windows and a UNIX version. You’ll have to execute them from cron or scheduled task.
Regards,
Dirk