sagcc update inventory components attributes
Updates the value that matches an existing search attribute for a run-time component.
Syntax
-
Command Central syntax:
sagcc update inventory components attributes node_alias componentid [attribute=value] [{--input | -i} filename{.xml|.json}] [options] - Not supported by Platform Manager.
Arguments and Options
| Argument or Option | Description |
|---|---|
node_alias
|
Required. Specifies
the alias name of the installation for which you want to update component
information.
You can view a list of installations and their aliases using sagcc list landscape nodes. |
componentid
|
Required. Specifies
the ID of the run-time component for which you want to update the value of a
search attribute.
You can determine the IDs for run-time components using sagcc list inventory components. |
[attribute=value]
|
Optional. The name of the search attribute and the new matching value for the property. |
[{--input | -i} filename{.xml|.json}]
|
Optional. Identifies
an input file that contains the update data for the search attribute.
You retrieve attribute data for the
For more information, see input. |
[options]
|
Optional. The command supports all options supported by Command Central. For a description of the options, see Common Options. |
Usage Notes
You can execute the command either with the
[attribute=value],
or the
[{--input | -i}
filename{.xml|.json}] argument, but not with both arguments in the
same command.
Examples When Executing on Command Central
-
To change the existing value of a search property with name “group” to the new value “Production” for the run-time component that has the component ID “OSGI-SPM” and is installed on the installation with the alias name “sag01”:
sagcc update inventory components attributes sag01 OSGI-SPM group=Production --password secret - To update the value of a search property,
using the property data from the attributes.xml file, for the run-time
component that has the component ID “OSGI-CCE” and is installed on the
installation with the alias name “sag01”:
sagcc update inventory components attributes sag01 OSGI-CCE -i c:\inputs\attributes.xml --password secret - To update a search property with name
“group”, using the property data from the attributes.xml file, for the run-time
component that has the component ID “OSGI-SPM” and is installed on the
installation with the alias name “sag01”:
sagcc update inventory components attributes sag01 OSGI-SPM group -i c:\inputs\attributes.xml --password secret
Because the
{--username | -u}
option is not specified, the command uses the default user name. For more
information, see
username.
The command specifies “secret” for the user’s password.