sagcc add repository fixes
Adds a fix repository in Command Central.
Syntax
Command Central syntax:
Using an input data file for all repository types:
sagcc add repository fixes name=repo_name
--input | i filename.zip [description="description"] [options]
Using arguments for a master repository:
sagcc add repository fixes master name=repo_name
[description="description"] [options]
Using arguments for an image repository:
sagcc add repository fixes name=repo_name type=image
location=URL [description="description"] [options]
sagcc add repository fixes image name=repo_name
[--input | i filename.zip | location=URL]
[description=“description”] [options]
Using arguments for a 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=productId_list | productId_version_list | INSTALLED]
[nodeAlias=node_alias]
[artifacts=fixId_list | fixId_version_list | LATEST | ALL]
[description=“description”] [options]
Not supported by
Platform Manager.
Arguments and Options
Argument or Option | Description |
name=repo_name | Required. The name of the fix repository to add. |
type=image | Required. The fix repository is of type image. If the location URL starts with “file:///”, this parameter is optional. |
location=URL | Required for an image repository. 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. |
|
--input | -i filename.zip | 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. |
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. You must specify at least one product repository that Command Central uses to filter the fixes available in the source repositories. |
[products=productId list | productId_version list | INSTALLED]
| Optional. A list of IDs of the products for which to include fixes in the mirror repository. Valid values: productId_list - a list of product IDs product Id version_list - a list of product IDs with the product version INSTALLED - include fixes for all installed products |
[nodeAlias=node_alias] | Optional. Specifies the alias name of the Platform Manager to 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=fixId_list | fixId_version_list | LATEST | ALL]
| Optional. A list of the IDs of the fixes from the source repositories to include in the mirror repository. Valid values: fixId_list - a list of fix IDs fixId_list_version - a list of fix IDs with the fix version LATEST - include only the latest fixes ALL - include all available fixes |
[description=“description”] | Optional. A description for the repository. |
[options] | Optional. The command allows all options supported by the Command Line Interface. For a description of the options, see Common Options. |
Usage Notes
When creating a fix mirror repository, you must specify the product repositories or a list of 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. However, you can leave out the list of product repositories or products in the following cases:
When the
sourceRepos parameter 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
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 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