Automate Revision Update for SFX 4
Tags: sfx 4 backup clean up server_admin_util revision update rev-up Check for broken symbolic links 00code00
Last Updated: Oct 21, 2011 06:06
- Description
Automate Revision Update for SFX 4
Here is a set of shell scripts to automate revision update for sfx 4.
With weekly SFX knowledge base updates we have found it convenient to run this on our test server every Tuesday and on our production server every
Friday. The results on the test server are checked before Friday to ensure the update went as planned.
The script(s) perform a backup of sfx4, clean up the tmp directory up to 28th of the previous month, clean up the sfx user log directories and dbsscratch directories, run the revision update, check for broken links and email the results. The scripts use server_admin_util for cleanup and link
checking.
We have the script running in RedHat EL 5.4 64 bit physical servers and under VMWare.
This script is also an example of how to automate the sfx server_admin_util to run from a cron job.The sfx_revup script runs the following steps.
bkr4 remove previous mysql hot copy directories
bks4 creates mysql hot copy backup files
bkt4 creates a backup tar file of the mysql hot copy files and a tar file of the sfx4 tree
For sfx global :-
sfx_a_2_1 Clean /exlibris/sfx_ver/sfx4_1/tmp/
For sfx global and local :-
sfx_a_2_4 Clean /exlibris/sfx_ver/sfx4_1/$USER/logs/
sfx_a_2_5 Clean /exlibris/sfx_ver/sfx4_1/$USER/dbs/scratch/
Runs the revision update then
either :-
sfx_a_2_6 Check for broken symbolic links (previous menu option before change to 7)
or :-
sfx_a_2_7 Check for broken symbolic links
Emails a notification to one email address.
Emails log files to another email address. - Author: Laszlo Gercsov
- Additional author(s):
- Institution: University of New South Wales
- Year: 2011
- License: BSD style
- Short description: Use, modification and distribution of the code are permitted provided the copyright notice, list of conditions and disclaimer appear in all related material.
- Link to terms: [Detailed license terms]
- Skill required for using this code:
Choose one of the following: basic, intermediate, advanced, expert. Please also add your choice as a tag at the bottom of the page.
State
Stable
Programming language
Text...
Software requirements
RHEL 5
Screen captures
Place your screen shot here...
Author(s) homepage
http://
Download
Attach the code file(s) to this page and link to them here.
Page attachments management can be reached from the top-right menu - 'attachments' after page save.
Working example
http://
Using the following Ex Libris open interfaces
Text...
Changes
Version 1.2 ....
Text...
Version 1.1 ....
Text...
...
Text...
Release notes
Text...
Installation instructions
copy the bk* scripts to /exlibris/backup and edit bks4 replacing $pass with the mysql user passwords for each user.
Copy the sfx* scripts to the directory /exlibris/kbupdt.
Edit the sfx_revup script and change the email addresses "alert@myu.edu" and "eresources@myu.edu".
If your admin util menu has "Check for broken symbolic links" as option 2.6 then edit /exlibris/kbupdt to use sfx_a_2_6 instead of sfx_a_2_7.
Check the application usernames and paths in the scripts to ensure that they match your installation.
Create cron jobs as required eg.
# sfx kbupdate Tuesday
37 05 * * 2 /bin/csh -f /exlibris/kbupdt/sfx_revup > /exlibris/sfx_ver/sfx4_1/tmp/kbup_sfx_revup_log_today 2>&1
TO DO list
Text...
Known issues
The log files get large >600M in sfx4_1/tmp
Comments
Text...

