Analyzing custom post_olb_script script failure in CA Spectrum
search cancel

Analyzing custom post_olb_script script failure in CA Spectrum

book

Article ID: 94154

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Custom post_olb_script has failed, it is a general error message. To understand what went wrong with the script execution, this document provides some suggestions.


You can perform a DDM database backup at any time using the ddm_save or ddm_backup tools. However, you can also have the DDM database backed up automatically using the Online Backup feature. Online Backup uses the post_olb_script for this.

If a problem occurs during post_olb_script execution, you may want to review:

  1. $SPECROOT/SS/DDM/ARCHMGR.OUT (Archive Manager log)

  2. $SPECROOT/SS-DB-Backup/ddm_backup.log (log of ddm_backup, which is executed by the post_olb_script to run the DDM backup)


If the above logs do not provide an idea of what went wrong, another option is to manually run the post_olb_script, and see what it returns.

Environment

Spectrum: Any version

Resolution

To manually run the post_olb_script, you need to do the following:

  1. Open a bash -login. In Windows, Start->Run, write: bash -login, and press enter. In Linux, just open a terminal, and change the directory (cd) to $SPECROOT/

  2. run: cd custom/CsScript

  3. run: ./post_olb_script ../../SS-DB-Backup/<ss_db_filename>.SSdb <Compression enabled> <BackupID> <TIME>

    Each parameter is documented in post_olb_script itself
#      $1 - ss_db_filename (without .gz extension, if compressed)
#               ie. E:/Spectrum/SS-DB-Backup/db_19990702_1638.SSdb
#      $2 - Compression enabled, ie. COMPRESS or NOCOMPRESS
#      $3 - BackupID, ie. 56
#      $4 - TIME in yyyymmdd_HHMM format, ie. 19990702_1638

 

Example:

export SPECROOT=/usr/Spectrum          (for Linux) 

cd $SPECROOT

./post_olb_script ../../SS-DB-Backup/db_19990702_1638.SSdb COMPRESS 56 19990702_1638


     If the post_olb_script fails, the error message could provide a hint of the problem. For instance, the following is a possible error message:

./post_olb_script: line 61: D:/Spectrum/SS-DB-Backup/ddm_backup.log: Permission denied 


     This indicates a permissions issue with the D:/Spectrum/SS-DB-Backup/ddm_backup.log file, as the cause of the failure.

Additional Information