Table of Contents

Search

  1. Preface
  2. Introduction
  3. Getting Started with Repository Manager
  4. Validating Metadata
  5. Promoting Changes Between Repositories
  6. Importing Design Objects
  7. Exporting Repositories
  8. Common Warehouse Model Support
  9. Appendix A: Design Objects Reference
  10. Appendix B: Change List Reference
  11. Appendix C: MetCommand Reference

Promoting Changes from the Command Line

Promoting Changes from the Command Line

To promote changes to a repository from the command line, use the
MetCommand
utility that is included in the MDM Hub Resource Kit. A repository is also known as an Operational Reference Store (ORS).
Before you promote changes to a target repository, export the source repository to a change list XML file. Also, ensure that the Resource Kit is installed in the MDM Hub environment. Run the commands to promote changes to a repository from the command line.
  1. Edit the
    SiperianConnection.properties
    file in the following location:
    <Resource Kit installation directory>/samples/MetCommand/source/resources/properties
    Ensure that the application server connection property values match the application server configuration.
  2. From a command line, change to the
    MetCommand
    directory, which is in the following location:
    <Resource Kit installation directory>/samples/MetCommand
  3. To create a change list, run the following command:
    metcommand -createChangeList -sourceXmlFilename "<Source repository change list XML file name>" -targetOrsId "<Target repository ID>" -outputFilename "<Change list XML file name>" -propertiesFilename "<Resource Kit installation directory>/samples/MetCommand/source/resources/properties/SiperianConnection.properties"
    The process to create the change list compares the source repository change list with the target repository metadata and generates a change list for the target repository.
  4. To validate the change list, run the following command:
    metcommand -validateChangeList -sourceXmlFilename "<Change list XML file name>" -targetOrsId "<Target repository ID>" -propertiesFilename "<Resource Kit installation directory>/samples/MetCommand/source/resources/properties/SiperianConnection.properties"
  5. To apply the change list to the target repository, run the following command:
    metcommand -applyChangeList -sourceXmlFilename "<Change list XML file name>" -targetOrsId "<Target repository ID>" -propertiesFilename "<Resource Kit installation directory>/samples/MetCommand/source/resources/properties/SiperianConnection.properties"
  6. To validate the target repository metadata, run the following command:
    metcommand -validateMetadata -targetOrsId "<Target repository ID>" -propertiesFilename "<Resource Kit installation directory>/samples/MetCommand/source/resources/properties/SiperianConnection.properties"

0 COMMENTS

We’d like to hear from you!