Rational Build Forge. AutoExpurge System. Version7.1.2andlater



Similar documents
IBM Security QRadar Version (MR1) Checking the Integrity of Event and Flow Logs Technical Note

IBM Enterprise Marketing Management. Domain Name Options for

IBM Enterprise Marketing Management. Domain Name Options for

Tivoli Security Compliance Manager

Lotus Sametime. IBM Lotus Sametime Integration with Microsoft Office and Microsoft Outlook Help. Release 8.5 SC

Platform LSF Version 9 Release 1.2. Migrating on Windows SC

IBM Cognos Controller Version New Features Guide

Remote Supervisor Adapter II. Installation Instructions for Linux Users

Tivoli Endpoint Manager for Security and Compliance Analytics. Setup Guide

IBM Security QRadar Version Installing QRadar with a Bootable USB Flash-drive Technical Note

IBM Security QRadar Version (MR1) Replacing the SSL Certificate Technical Note

IBM Security QRadar Version (MR1) Configuring Custom Notifications Technical Note

IBM Configuring Rational Insight and later for Rational Asset Manager

IBM Security Role and Policy Modeler Version 1 Release 1. Glossary SC

Tivoli Endpoint Manager for Security and Compliance Analytics

IBM Rational Rhapsody NoMagic Magicdraw: Integration Page 1/9. MagicDraw UML - IBM Rational Rhapsody. Integration

IBM SmartCloud Analytics - Log Analysis. Anomaly App. Version 1.2

Packet Capture Users Guide

Getting Started With IBM Cúram Universal Access Entry Edition

Tivoli Endpoint Manager for Configuration Management. User s Guide

Cúram Business Intelligence and Analytics Guide

Patch Management for Red Hat Enterprise Linux. User s Guide

Installing on Windows

Version 8.2. Tivoli Endpoint Manager for Asset Discovery User's Guide

IBM Cognos Controller Version New Features Guide

IBM Security SiteProtector System Migration Utility Guide

IBM Lotus Protector for Mail Encryption. User's Guide

IBM InfoSphere MDM Web Reports User's Guide

Release Notes. IBM Tivoli Identity Manager Oracle Database Adapter. Version First Edition (December 7, 2007)

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

Remote Support Proxy Installation and User's Guide

OS Deployment V2.0. User s Guide

Linux. Managing security compliance

IBM Security QRadar Version Common Ports Guide

Sametime Version 9. Integration Guide. Integrating Sametime 9 with Domino 9, inotes 9, Connections 4.5, and WebSphere Portal

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

Tivoli Endpoint Manager for Patch Management - Windows - User's Guide

IBM VisualAge for Java,Version3.5. Remote Access to Tool API

Tivoli IBM Tivoli Monitoring for Transaction Performance

IBM Security QRadar Version (MR1) Installing QRadar 7.1 Using a Bootable USB Flash-Drive Technical Note

IBM Endpoint Manager Version 9.2. Software Use Analysis Upgrading Guide

Implementing the End User Experience Monitoring Solution

IBM FlashSystem. SNMP Guide

IBM TRIRIGA Application Platform Version Reporting: Creating Cross-Tab Reports in BIRT

Installing on UNIX and Linux

Sterling Supplier Portal. Overview Guide. DocumentationDate:9June2013

IBM TRIRIGA Version 10 Release 4.2. Inventory Management User Guide IBM

IBM Endpoint Manager for OS Deployment Windows Server OS provisioning using a Server Automation Plan

IBM FileNet System Monitor FSM Event Integration Whitepaper SC

IBM Lotus Protector for Mail Encryption

Table 1 shows the LDAP server configuration required for configuring the federated repositories in the Tivoli Integrated Portal server.

Tivoli Security Compliance Manager. Version 5.1 April, Collector and Message Reference Addendum

WebSphere Studio Device Developer. J9 VM Runtime Guide For Red Hat Linux 8.0

IBM Proventia Management SiteProtector. Configuring Firewalls for SiteProtector Traffic Version 2.0, Service Pack 8.1

IBM WebSphere Message Broker - Integrating Tivoli Federated Identity Manager

IBM Spectrum Control Base Edition Version Release Notes

IBM Endpoint Manager for Software Use Analysis Version 9 Release 0. Customizing the software catalog

Backup, Recovery, and Media Services for iseries

Reading multi-temperature data with Cúram SPMP Analytics

IBM Cloud Orchestrator Content Pack for OpenLDAP and Microsoft Active Directory Version 2.0. Content Pack for OpenLDAP and Microsoft Active Directory

IBM Security SiteProtector System Two-Factor Authentication API Guide

Active Directory Synchronization with Lotus ADSync

Disaster Recovery Procedures for Microsoft SQL 2000 and 2005 using N series

IBM Tivoli Service Request Manager 7.1

IBM Security Access Manager for Enterprise Single Sign-On Version 8.2. Help Desk Guide SC

IBM Client Security Solutions. Password Manager Version 1.4 User s Guide

Power Management. User s Guide. User s Guide

IBM Connections Plug-In for Microsoft Outlook Installation Help

Integrating ERP and CRM Applications with IBM WebSphere Cast Iron IBM Redbooks Solution Guide

Software Usage Analysis Version 1.3

IBM Financial Transaction Manager for ACH Services IBM Redbooks Solution Guide

IBM Lotus Protector for Mail Encryption

Installing and using the webscurity webapp.secure client

Sterling Store Inventory Management. Concepts Guide. Release 9.2

Tivoli Endpoint Manager for Patch Management - Windows - User's Guide

IBM Endpoint Manager. Security and Compliance Analytics Setup Guide

IBM Digital Analytics Enterprise Dashboard User's Guide

ERserver. Backup, Recovery, and Media Services for iseries. iseries. Version 5 SC

Big Data Analytics with IBM Cognos BI Dynamic Query IBM Redbooks Solution Guide

IBM License Metric Tool Version 9.0 (includes version 9.0.1, and ) Managing the Software Inventory Guide

IBM XIV Management Tools Version 4.7. Release Notes IBM

IBM Security SiteProtector System Configuring Firewalls for SiteProtector Traffic

Communications Server for Linux

Rapid Data Backup and Restore Using NFS on IBM ProtecTIER TS7620 Deduplication Appliance Express IBM Redbooks Solution Guide

Omnibus Dashboard Best Practice Guide and Worked Examples V1.1

IBM Enterprise Content Management Software Requirements

SmartCloud Monitoring - Capacity Planning ROI Case Study

z/os V1R11 Communications Server system management and monitoring

IBM Tivoli Web Response Monitor

IBM DB2 Data Archive Expert for z/os:

IBM Endpoint Manager for Software Use Analysis Version 9. Scalability Guide. Version 3

Platform LSF Version 9 Release 1.2. Using on Windows SC

DataPower z/os crypto integration

System i. Security. Version 5 Release 4

IBM WebSphere Adapter for PeopleSoft Enterprise Quick Start Tutorials

IBM PowerSC Technical Overview IBM Redbooks Solution Guide

Rational Developer for IBM i (RDI) Distance Learning hands-on Labs IBM Rational Developer for i. Maintain an ILE RPG application using

QLogic 4Gb Fibre Channel Expansion Card (CIOv) for IBM BladeCenter IBM BladeCenter at-a-glance guide

IBM Security AppScan Source for Analysis Version User Guide for OS X

Remote Control Tivoli Endpoint Manager - TRC User's Guide

Transcription:

Rational Build Forge AutoExpurge System Version7.1.2andlater

Note Before using this information and the product it supports, read the information in Notices, on page 11. This edition applies to ersion 7.1.2 of Rational Build Forge and to all subsequent releases and modifications until otherwise indicated in new editions. Copyright IBM Corporation 2011. US Goernment Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

Contents Chapter 1. About the Autoexpurge system............... 1 Chapter 2. Managing jobs and purges by using classes in Rational Build Forge.. 3 Chapter 3. Setting up the AutoExpurge system............... 5 Chapter 4. Running AutoExpurge jobs.. 7 Chapter 5. Viewing job BOMs using the example XSL............ 9 Appendix. Notices.......... 11 Trademarks.............. 13 Copyright IBM Corp. 2011 iii

i A tool for automatically creating records for archied jobs and remoing them from the database

Chapter 1. About the Autoexpurge system The AutoExpurge system proides an automated tool for exporting and remoing files from archied jobs from the IBM Rational Build Forge database. It also proides the means to iew the exported job BOM files in a web browser. The AutoExpurge system is proided in a zip file for you to download: http://public.dhe.ibm.com/software/dw/demos/rautoexpurge/autoexpurge.zip It consists of the following parts: AUTOEXPADAPT.xml. Import this file into Rational Build Forge to create a library and enironment. AutoExpurgeAdaptor.xml.http://public.dhe.ibm.com/software/dw/demos/ rautoexpurge/autoexpurge.zip Create an adaptor and use this XML file to populate the Interface field. Viewing tools directory. Use the example.xsl and ibm_swoosh.jpg files to set up the exported job BOM XML files to be iewed in a web browser. Other executable files (.jar files) and associated material (AutoExpurgeDocs directory). See Setting up the AutoExpurge system to learn how to set up the system. Copyright IBM Corp. 2011 1

2 A tool for automatically creating records for archied jobs and remoing them from the database

Chapter 2. Managing jobs and purges by using classes in Rational Build Forge Assigning jobs to classes allow you to specify how and when to purge completed jobs. This section describes the typical job lifecycle and how it can be modified by using classes (to drie purge schedules) and by using AutoExpurge. Job lifecycle Normally jobs go through the following stages: Queued Running Completed After a job is completed, the system takes no further action on it. the job will stay in the database foreer. You can remoe the completed jobs in two ways: Manually: you could moe jobs to the Archied state or remoe them manually. Purges: by assigning a job to a class and assigning the class to a schedule, you can set up the system to purge completed jobs. Adding purges to the job lifecycle A job class typically corresponds to a type of job. The actions associated with the class are set according to what information you need to keep. The schedule associated with the class depends on how often you want to perform those actions. Depending on what a type of job does, you could hae different needs for archiing and remoing jobs. For example, consider three classes: short: This class could be used for short-lied utility jobs, such as those that send a status email or clean the files on build serers. These builds could be remoed daily. scratch: This class could be used for daily builds of a software system. You would keep these jobs around for a few days in order to inspect them. production: This class could be used for jobs that are kept permanently, for example the production build of a software product. There would be no purge policy for this class. You might not assign a job to this class until it has already run. With Rational Build Forge, you can reassign the class for a job. After the scratch jobs are moed to the archied state, you still need to determine how long to keep them and when to remoe them. In this scenario, you need to remoe them manually. In a larger enironment, an automated way to work with multiple classes of job is needed. Adding AutoExpurge to the job lifecycle AutoExpurge is helpful because it exports and stores the job BOM and remoes files from jobs that hae already had some action performed on them through their class. Classes can hae only one action and it is often desirable to archie jobs as Copyright IBM Corp. 2011 3

the action for a class but not delete the files. Leaing the files allows you to inspect them and compare successie runs of the job. It is possible to use only the Rational Build Forge facilities to manage the short and production classes: short: Create a class and set its actions to remoe all files. Schedule it to run daily. production: Create a class and assign no actions. This class is used to keep a shipped ersion of a product in the system. It has no purge actions or schedule. When you hae run a scratch job that meets the release exit criteria, you manually reassign its class to production. The scratch class needs more attention. You want to keep the jobs around for inspection for a few days, but you also want to remoe them from the system. It might be aluable to keep a record of these jobs. In addition, in a production enironment, there might be many different types of job that run on a daily basis, and these jobs might be segregated by product or product component. They might require different classes that are similar to scratch, both to keep the jobs separate and to reflect different leels of scrutiny that the jobs may require oer time. A single scratch class is used in this document for simplicity. A job can belong to only one class, and one class can hae only one set of action definitions assigned to it. Howeer, this example has two requirements: Moe the jobs from Completed to Archied daily. This task can be accomplished through the class assigned to the job. The purge action consists of moing the job from Completed to Archied. Files are not remoed. This action is scheduled daily. Archie the job BOMs and delete all files according to a schedule. After the job is in the Archied state, you cannot use the class assigned to the job to perform different actions. In this case, you use AutoExpurge to export the job BOMs and delete the files associated with the job. This action is scheduled at a longer interal, perhaps one to two weeks. For the second case, you can use AutoExpurge to identify the classes to work on and to schedule the remoal of files associated with those classes. The rest of this document describes how to set up and use AutoExpurge. Assessing your enironment to determine job remoal policy It is not possible to make general recommendations about what jobs to remoe and what schedule to use. You must do the following assessments: Assess your needs for retaining completed jobs in Rational Build Forge Determine the space requirements for retaining these jobs and assess these requirements against the total space aailable and the database performance when the used space increases. For methods of assessing your needs, see the white paper Rational Build Forge General Maintenance Strategy. To assess the database needs for running Rational Build Forge, use the Database Resource Usage Worksheet in the white paper. 4 A tool for automatically creating records for archied jobs and remoing them from the database

Chapter 3. Setting up the AutoExpurge system This task describes how to import the AutoExpurge project and enironment definitions, and how to set up the AutoExpurgeAdaptor adaptor. Procedure 1. Download and extract the contents of the autoexpurge.zip file. Create a directory home for the AutoExpurge system. This directory will be used by the system as your TOOLS_DIR. Download the archie file from the IBM demos site into that directory and extract its contents. 2. Create a properties directory and properties file. a. Create a directory for the AutoExpurge properties file. The system refers to this directory through the PROPERTIES_DIR ariable. b. In the properties directory, create a text file. The autoexpurgeproperties.txt file is used as an example. The system refers to this file through the PROPERTIES_FILE ariable. 3. Import the AUTOEXPADAPT.xml file into Rational Build Forge. a. Click Administration > Import in the console. b. Import the file. Browse to the location where you extracted the contents of the AutExpurge.zip file. The AUTOEXPADAPT.xml file is in the root directory. Accept all of the defaults for the import action. After importing the file, you hae the following new objects in the Rational Build Forge system: AutoExpurgeAdaptorRunner, a library that performs the job export and remoes archied jobs. AutoExpurgeEnironment, an enironment used by the AutoExpurgeAdaptorRunner project when it runs. 4. Set the ariables in the AutoExpurge enironment. a. Click Enironments in the left menu of the console. b. Click AutoExpurgeEnironment. The list of ariables in the enironment is shown. c. Assign alues to the ariables as follows. PASSWORD: Password for USER_NAME. USER_NAME: User name defined on the console where the AutoExpurge job will run. The user needs appropriate permissions to execute jobs, delete jobs, and export. The Build Engineer access group proided with the product has the necessary permissions. SERVER: Name or IP address of the host where Rational Build Forge is running. BUILD_EXPORT_DIR: Directory to store exported job BOM files. TOOLS_DIR: Directory that you created to store the extracted AutoExpurge files. PROP_DIR: Directory that you created to contain the properties file. PROP_FILE_NAME: File that you created to store the properties that define how AutoExpurge runs. The file is blank now. Copyright IBM Corp. 2011 5

Note: Do not include the.txt extension in the file name you enter here. The example name was autoexpurgeproperties.txt. If you used it, enter autoexpurgeproperties. For information about how to populate AutoExpurge jobs before running them, see Chapter 4, Running AutoExpurge jobs, on page 7. 5. Create the AutoExpurge adaptor. a. Click Projects > Adaptors in the console. b. Click Add Adaptor. c. Specify the name to be AutoExpurgeAdaptor. Leae the following fields set to their defaults: Type=Source, Template= None, and Access=Build Engineer. d. In the Interface field, copy the entire contents of AutoExpurgeAdaptor.xml. It is in the root of the directory you created when you extracted the files from AutoExpurge.zip. 6 A tool for automatically creating records for archied jobs and remoing them from the database

Chapter 4. Running AutoExpurge jobs An AutoExpurge job exports the job BOMs and remoes all files for archied jobs that meet the purge policy that is defined in the properties file. About this task This procedure assumes that you hae done the following tasks: Defined the classes to use (including purge policy) in Rational Build Forge Defined projects that use those classes Run the projects as jobs Allowed the purge schedules that are associated with the classes to run and produce archied jobs for each class You can also manually moe completed jobs for each class to the Archied state. The jobs must use the classes that you use to define AutoExpurge policy. Procedure 1. Define the AutoExpurge policy in the properties file you created. The example file was called autopurgeproperties.txt. Each line in the file associates the name of a class with the number of days between the AutoExpurge purges. For example, using the earlier class examples of short, scratch and production, the file would contain their names and the purge interals (in days) as follows: short=7 scratch=14 The production class does not hae a purge policy because it is set up to be retained permanently. 2. Make the AutoExpurgeRunner library a project. Open the library and use the Selector field to define the selector to use when running the project. The selector must already exist. When the selector is defined, AutoExpurgeRunner is displayed in the projects list rather than the libraries list. 3. Run the AutoExpurgeRunner project. When it runs, it looks for jobs in the Archied state that are older than the days specified in the policy. For each qualifying archied job, it exports the job BOM and remoes all files for the job. Copyright IBM Corp. 2011 7

8 A tool for automatically creating records for archied jobs and remoing them from the database

Chapter 5. Viewing job BOMs using the example XSL After the AutoExpurgeRunner job has run, you can iew the exported job BOMs in a web browser. You must first modify them to use an XSL stylesheet. About this task An XSL transform file named example.xsl is proided in the iewingtools directoy. It is in the root directory where you extracted the contents of AutoExpurge.zip. To use the proided stylesheet to iew exported job BOM XML files, do the following: Procedure 1. Copy example.xsl and ibm_swoosh.jpg from the iewingtools directory into the directory where AutoExpurge exported the job BOMS. 2. Add a stylesheet specification to the top of each XML file you want to iew. The stylesheet specification is as follows: <?xml-stylesheet type=text/xsl" href="example.xsl"?> 3. Use your web browser to open the XML files you want to iew. Example The following image is an example of what is seen when iewing a job BOM. You can customize the example.xsl according to your requirements. Copyright IBM Corp. 2011 9

10 A tool for automatically creating records for archied jobs and remoing them from the database

Appendix. Notices This information was deeloped for products and serices offered in the U.S.A. IBM may not offer the products, serices, or features discussed in this document in other countries. Consult your local IBM representatie for information on the products and serices currently aailable in your area. Any reference to an IBM product, program, or serice is not intended to state or imply that only that IBM product, program, or serice may be used. Any functionally equialent product, program, or serice that does not infringe any IBM intellectual property right may be used instead. Howeer, it is the user's responsibility to ealuate and erify the operation of any non-ibm product, program, or serice. IBM may hae patents or pending patent applications coering subject matter described in this document. The furnishing of this document does not grant you any license to these patents. You can send license inquiries, in writing, to: IBM Director of Licensing IBM Corporation North Castle Drie Armonk, NY 10504-1785 U.S.A. For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property Department in your country or send inquiries, in writing, to: Intellectual Property Licensing Legal and Intellectual Property Law IBM Japan, Ltd. 1623-14, Shimotsuruma, Yamato-shi Kanagawa 242-8502 Japan The following paragraph does not apply to the United Kingdom or any other country where such proisions are inconsistent with local law:international BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Any references in this information to non-ibm Web sites are proided for conenience only and do not in any manner sere as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. Licensees of this program who wish to hae information about it for the purpose of enabling: (i) the exchange of information between independently created Copyright IBM Corp. 2011 11

programs and other programs (including this one) and (ii) the mutual use of the information which has been exchanged, should contact: Intellectual Property Dept. for Rational Software IBM Corporation 5 Technology Park Drie Westford, MA 01886 U.S.A. Such information may be aailable, subject to appropriate terms and conditions, including in some cases, payment of a fee. The licensed program described in this document and all licensed material aailable for it are proided by IBM under terms of the IBM Customer Agreement, IBM International Program License Agreement or any equialent agreement between us. Any performance data contained herein was determined in a controlled enironment. Therefore, the results obtained in other operating enironments may ary significantly. Some measurements may hae been made on deelopment-leel systems and there is no guarantee that these measurements will be the same on generally aailable systems. Furthermore, some measurements may hae been estimated through extrapolation. Actual results may ary. Users of this document should erify the applicable data for their specific enironment. Information concerning non-ibm products was obtained from the suppliers of those products, their published announcements or other publicly aailable sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-ibm products. Questions on the capabilities of non-ibm products should be addressed to the suppliers of those products. All statements regarding IBM's future direction or intent are subject to change or withdrawal without notice, and represent goals and objecties only. COPYRIGHT LICENSE: This information contains sample application programs in source language, which illustrate programming techniques on arious operating platforms. You may copy, modify, and distribute these sample programs in any form without payment to IBM, for the purposes of deeloping, using, marketing or distributing application programs conforming to the application programming interface for the operating platform for which the sample programs are written. These examples hae not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, sericeability, or function of these programs. The sample programs are proided "AS IS", without warranty of any kind. IBM shall not be liable for any damages arising out of your use of the sample programs. Each copy or any portion of these sample programs or any deriatie work, must include a copyright notice as follows: (your company name) (year). Portions of this code are deried from IBM Corp. Sample Programs. Copyright IBM Corp. 2011. If you are iewing this information softcopy, the photographs and color illustrations may not appear. 12 A tool for automatically creating records for archied jobs and remoing them from the database

Trademarks IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and serice names might be trademarks of IBM or other companies. A current list of IBM trademarks is aailable on the Web at www.ibm.com/legal/ copytrade.html. Other company, product, or serice names may be trademarks or serice marks of others. Appendix. Notices 13