Archiving data by using TrueSight Server Automation jobs

Use the run_archival_from_om.nsh script to archive data by using TrueSight Server Automation jobs. The run_archival_from_om.nsh script uses archival settings, such as archive directory location and retention period for domains, that you configure by using the TrueSight Server Automation - Data Warehouse console. This script is included in the Inventory-Templates.zip file, which is located in the <TSSA-DWInstallationDirectory>/Contents directory.

Note

On SQL Server 2012, the archival process fails with the following error message: Error = [Microsoft][SQL Server Native Client 11.0]Warning: BCP import with a format file will convert empty strings in delimited columns to NULL.

Workaround: This error occurs due to a limitation in SQL Server 2012. To resolve the issue, install SQL Server 2012 SP1.

Before you begin

Before you archive the reports data warehouse data, ensure that the following prerequisites are met:

MultiExcerpt named prerequisiteArchiveRestore was not found -- Please check the page name and MultiExcerpt name used in the MultiExcerpt-Include macro

To run the archival process by using TrueSight Server Automation jobs 

  1. Extract the contents of the content_installer.zip file to a directory of your choice on the TrueSight Server Automation Application Server. 
  2. Run the content installer.
    The script is added to TrueSight Server Automation as a Network Shell
     script. 
  3. Create a Network Shell Script Job for the run_archival_from_om.nsh script by performing the following steps:
    1. Log in to the TrueSight Server Automation console.

    2. Navigate to the Depot/BladeLogic Reports Scripts/Run BDSSA Archival folder.

    3. Right-click Run BDSSA Archival Script and select the NSH Script Job option.
      The New NSH Script Job wizard starts.
    4. In the Name field, enter name of the NSH Script Job.
    5. In the Save in field, enter the path where you want to save the job, and click Next
    6. In the Targets pane, select the report servers on which you want to run the archival process, and click Next.
    7. In the Parameters pane, set the ETL_HOME parameter as the directory in which the ETL-related files (extract, transform, and load) are located. 
      The default location is <TSSA-DWInstallationDirectory>/shared/odi/bin. Enter the path in NSH format.

      Using existing jobs

      If you want to run ETL or archive data by using the existing TrueSight Server Automation jobs, the following fields need to be modified:

      Script nameField/Parameter
      run_archival_from_omETL_HOME, Target Server
      Run ETL from OM Script ETL_HOME, Target Server


    8. Click Next
    9. In the Default Notifications pane, configure job run notifications, and click Next.
    10. In the Schedules panel, schedule the job if required, and click Finish.
      The job is created in the location that you specified in step 5.

    You can use this job to run the archival process on the specified servers. You can execute the job for a one-time run or you can create a schedule for the job. 
  4. Run the job against the target report server.

For more information about the options available while creating an NSH Script Job, see Creating Network Shell Script Jobs Open link  in the TrueSight Server Automation documentation.

Note

When you run the archival process by using a TrueSight Server Automation job, the messages are written to the <TSSA-DWInstallationDirectory>/logs/archival.log file. When you run the archival process by using the console, the messages are written to the <TSSA-DWInstallationDirectory>/logs/bds-ui.log file.  

Related topics

Archiving data by using the console
Rerunning a failed archival or restore session 
Stopping an archival or restore process

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

Comments