Access Keys:
Skip to content (Access Key - 0)
My Area (Access Key - 2)


Toggle Sidebar
Your Rating: Results: PatheticBadOKGoodOutstanding! 2 rates
Labels:
00code00 00code00 Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Automate Revision Update for SFX 4

Tags: sfx 4 backup clean up server_admin_util revision update rev-up Check for broken symbolic links
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 dbs

    scratch 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.

basic

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...

Page Attachments

File NameCommentSizeNumber of Downloads
bkr40.1 kB21
bkt40.7 kB21
sfx_a_2_60.5 kB21
bks40.1 kB24
sfx_a_2_70.5 kB19
sfx_a_2_50.4 kB20
sfx_revup2 kB29
sfx_a_2_10.5 kB18
sfx_a_2_40.4 kB20

Added by Laszlo Gercsov on Oct 21, 2011 05:56, last edited by Laszlo Gercsov on Oct 21, 2011 06:06

Adaptavist Theme Builder Powered by Atlassian Confluence