Installer 10.15 | Complete Installation and Upgrade Information for Software AG Products | Command Central | Using the Command Line Interface | Repository Commands | sagcc add repository fixes
 
sagcc add repository fixes
Adds a fix repository in Command Central.
Syntax
*Command Central syntax:
*Master repository:
sagcc add repository fixes master name=repo_name location=remote_location
credentials=credAlias[description="description"]  [options]
*Mirror repository:
sagcc add repository fixes mirror name=repo_name 
sourceRepos=repo_name1,repo_name2...repo_nameN 
productRepos=repo_name1,repo_name2...repo_nameN 
[products=product_list] [nodeAlias=node_alias
[artifacts=fix_list] [description=“description”]
*Image repository:
In the following command, you must include either the --input file option or the location argument:
sagcc add repository fixes image name=repo_name 
[--input | i image_file_on_client | location=image_file_on_server
[description=“description”]
*Not supported by Platform Manager.
Arguments and Options
Argument or Option
Description
name=repo_name
Required. The name of the fix repository to add.
[description=“description”]
Optional. A description for the repository.
For master repository
location=remote_location
Required. The URL of the remote master repository.
credentials=credAlias
Required. The alias of the COMMON-CREDENTIALS configuration instance that has the details for accessing the fix repository. If the instance already exists, you can retrieve the alias using sagcc list configuration instances. If the configuration instance does not exist, you must create it with sagcc create configuration data.
For mirror repository

sourceRepos=repo_name1,repo_name2...repo_nameN
Required. A list of the source repositories to include in the new mirror repository.

productRepos=repo_name1,repo_name2...repo_nameN

Required. Select product repositories for which to add fixes in the fix mirror repository. See the Usage Notes for some important details about this argument.

[products=productId_list]
Optional. A list of IDs of the products for which to include fixes in the mirror repository.
[nodeAlias=node_alias]
Optional. Specifies the alias name of the Platform Manager installation in which you want to add the repository. If you do not include this parameter, the repository is added to the local Platform Manager node.

[artifacts=fix_list]
Optional. A list of the names of the fixes from the source repositories to include in the mirror repository.
artifacts=LATEST adds all the latest fixes available in the source repositories.
For image repository
--input | -i image_file_on_client
Required. Identifies an image archive file created with Software AG Installer or Software AG Update Manager. For more information about the --input | i option, see input.
location=image_file_on_server
Required. A valid URL that points to the location where the repository is added. If location points to an installation image file, the image file must exist on the Command Central server. If the image file does not exist, the repository is not created.
Important:
Two repositories cannot point to the same location.
Usage Notes
When creating a fix mirror repository, Software AG recommends that you specify a list of product repositories or products for which to include fixes, because Empower contains a lot of fixes for different releases and Command Central requires a filter through which to select the fixes.
When creating a fix mirror repository, you must consider the following about the [productRepos] argument:
*You can leave out the list of product repositories in the following cases:
*When the sourceRepos argument lists image repositories. In the following example, the mirror repository is created from a single “isImage” image source repository:
sagcc add repository fixes mirror name=Mirror sourceRepos=isImage
*When you list specific artifacts in the artifacts parameter. In the following example, Command Central will add all versions of the “wMFix.integrationServer.DummyForSPM” fix, specified in the artifacts parameter, with all its dependecies:
sagcc add repository fixes mirror name=Mirror1 sourceRepos=Mirror2 
artifacts=wMFix.integrationServer.DummyForSPM
*When you use the productRepos argument, listing specific artifacts in the artifacts argument is not supported. For example the following command is not supported, because it includes the productRepos argument, and the artifacts argument points to the specific artifact "wmFix.integrationServer":
sagcc create repository fixes mirror name=myMir sourceRepos=QARepo
productRepos=webMethods-9.12_MirrorRepo
artifacts=wMFix.integrationServer
However, when artifacts=LATEST, you can use the productRepos and artifacts arguments in the same command. For example, the following command will create a mirror repository with all the latest fixes for all products installed from the "webMethods-9.12_MirrorRepo" product repository:
sagcc create repository fixes mirror name=myMir sourceRepos=QARepo
productRepos=webMethods-9.12_MirrorRepo artifacts=LATEST
Examples When Executing on Command Central
*To upload an image file named “image.zip” from the current directory to Command Central and create a fix repository with name “test” that points to that image:
sagcc add repository fixes image name=test -i image.zip
*To create a mirror repository with name “Mirror1” that contains the latest fixes, selected from Empower, for the products included in the “isImage” and “mwsImage” product image repositories, with all fix dependencies:
sagcc create repository fixes mirror name=Mirror1 sourceRepos=Empower 
productRepos=isImage,mwsImage artifacts=LATEST
*To create a mirror repository with name “Mirror1” that contains fixes selected from Empower for the products installed on the node where the mirror repository is created. You can use this command to create a mirror repository for tested fixes on a specific node.
sagcc create repository fixes mirror name=Mirror1 sourceRepos=Empower 
products=INSTALLED
*To create a mirror repository with name “Mirror1” that contains the latest version of the fixes available on Empower for the product with ID “integrationServer” and version 9.10. The product version is determined from the version of the specified product repository:
sagcc add repository fixes mirror name=Mirror1 sourceRepos=Empower 
productRepos=webMethods-9.10_CC_PI_TR products=integrationServer 
artifacts=LATEST