Creating recovery scripts for TrueSight Capacity Optimization and Gateway Server

To create recovery scripts for TrueSight Capacity Optimization and Gateway Server, perform the following tasks:

TrueSight Capacity Optimization Gateway Server - TrueSight Capacity Optimization Recovery logic

To create the TrueSight Capacity Optimization and Gateway Server Recovery scripts perform the following recovery scripts:

  1. In Gateway Server Status, run the GeneralManagerLite and execute the following command:
    GeneralManagerLite.pl -c <Console Name> [-o <Output Directory > 
    -p <General Manager Port> -l -d -i <Manager run text to ignore>]
  2. To view the nodes with CPU Utilization in BMC TrueSight Capacity Optimization for the last 30 days, run the following command:

    BCOstatus.pl -s <BCO Input SQL file> -d <Oracle DSN> 
    -u <BCO Oracle username> -p <BCO Oracle password>
  3. To view a combined status for TrueSight Capacity Optimization and Gateway Server, run the following command:

    BCO_BPAtimeAnalysis.pl -g 
    <BPA Root Output Directory> -b <BCO input file>
  4. To recover BMC TrueSight Capacity Optimization using vis files, run the following command:

    BCORecover.pl -g <BPA Root Output Directory> -d 
    <Oracle DSN> -u <BCO Oracle username> -p 
    <BCO Oracle password> -v <BPA vis file directory> 
    (-t <Number per day of top vis file errors to recover> 
    -m <Manager Run List> -l <Number of Days to recover> | -e <Exact date>)

Required Environment Variables

These environment variables are required to create the recovery scripts:

  • BEST1_HOME=/usr/adm/best1_7.5.10 or /usr/adm/best1_9.0.00
  • ORACLE_HOME

Recovery Script example

A few recovery scripts examples are listed below:

$BEST1_HOME/bgs/scripts/GeneralManagerLite.pl -d -c sunlab20 -p 10129 -o /tmp/dima/sunlab20

$BEST1_HOME/bgs/scripts/BCOStatus.pl -s BCOLast30Days.sql -d BCO45 -u cpit_own -p cpit_own

$BEST1_HOME/bgs/scripts/BCO_BPAtimeAnalysis.pl -g /tmp/dima/sunlab20 -b BCOLast30Days.csv

$BEST1_HOME/bgs/scripts/BCORecover.pl -g /tmp/dima/sunlab20 d BCO45 -u cpit_own -p cpit_own -v /bmc/wal_qa/qa_data/9.0.00/SE9000/SOLARIS/VIS/

Where to go from here

Recovering data using the vis files parser

Was this page helpful? Yes No Submitting... Thank you

Comments