Command Central 10.15 | Using the Command Line Interface | Repository Commands | sagcc update repository products
 
sagcc update repository products
Updates product repository details, such as user credentials, location, and description.
For mirror repositories, the command adds the new products specified in the artifacts argument to the mirror repository, but does not remove existing products or product versions.
Syntax
*Command Central syntax:
*Master and image repositories:
sagcc update repository products {master | image} repo_name 
[credentials=credAlias
[location=image_filename | repositoryURL]       
[description="description"] [options]
*Mirror repositories:
sagcc update repository products mirror repo_name 
[sourceRepos=repo_name1,repo_name2...repo_nameN]
[location=repositoryURL
[artifacts=productId1,productId2...productIdN
[platforms=OS_Id1,OS_Id2...OS_IdN
[username=username] [password=password
[description="description"] [options]
*Not supported by Platform Manager.
Arguments and Options
Argument or Option
Description
repo_name
Required. The name of the repository that you want to update.
--input | i filename.xml
Required. An XML file that contains repository data, such as repository name, description, and location.
[credentials=credAlias]
Optional. The alias of the COMMON-CREDENTIALS configuration instance that has the details for accessing the product 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.
[location=image_file | repositoryURL]
Optional. The name of the image file or valid URL to the new location of the image file referenced by the repository.
For mirror repositories, the only valid value is [location=repositoryURL]

[sourceRepos=repo_name1,repo_name2...repo_nameN]

Optional. A list of the source repositories from which to update the mirror repository.

[artifacts=productId1,productId2...productIdN]
Optional. A list of IDs of the products from the source repositories that you want to update in the mirror repository.

[platforms=OS_Id1,OS_Id2...OS_IdN]
Optional. A list of the IDs of the operating systems of the products included in the mirror repository.
If you do not specify a list of operating system IDs or you omit this parameter, Command Central uses the default platform of the Platform Manager to which the mirror repository is added.
[description="description"]
Optional. The new description of 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 installing products on nodes version 9.12 or lower from a mirror repository, if you change the credentials of the Platform Manager on which the mirror repository is stored, you must also update the mirror repository credentials. Use the sagcc update repository products command to update the mirror repository credentials.
Example When Executing on Command Central
*To change the location of the file “image.zip”referenced by the repository with name “repo1”:
sagcc update repository products image repo1 location=file:///vmtest/image.zip
*To update the local mirror repository with name “webMethods-9.9_EUR_Local” with the five new products listed in the artifacts argument for three different platforms:
sagcc update repository products mirror webMethods-9.9_EUR_Local 
platforms=LNXAMD64,W64,OSX artifacts=DatabaseComponentConfigurator,
integrationServer,NUMRealmServer,TES,MwsProgramFiles
*To update the local mirror repository with name “webMethods-9.9_US_Local” with all artifacts from the source repositories associated with this mirror repository, after creating or modifying the repository:
sagcc update repository products mirror webMethods-9.9_US_Local” artifacts=all
*To update the user name and password for the local mirror repository with name “webMethods-9.12_EUR_local”:
sagcc update repository products mirror webMethods-9.12_EUR_local username=sum
password=secret