sagcc get inventory components attributes
Retrieves the attribute value matching a search attribute for a run-time component. To retrieve data for all search attributes for a run-time component, use the sagcc list inventory components attributes command.
Syntax
-
Command Central syntax:
sagcc get inventory components attributes node_alias componentid [attribute] [options] - Not supported on Platform Manager.
Arguments and Options
| Argument or Option | Description |
|---|---|
node_alias
|
Required. Specifies
the alias name of the installation for which you want to retrieve 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 retrieve search
attribute data.
You can determine the IDs for run-time components using sagcc list inventory components. |
[attribute]
|
Optional. The name of
the search attribute whose matching value you want to retrieve.
When you do not specify a value for the attribute argument, the command lists all attributes for a run-time component and their matching values. |
[options]
|
Optional. The command supports all options supported by Command Central. For a description of the options, see Common Options. |
Example When Executing on Command Central
-
To retrieve the value for a search attribute with name “group” for the run-time component that has component ID “OSGI-SPM” and is installed on the installation with the alias name “sag01”:
- To include the name “group” and value
“AB” of the search attribute with headers in the output:
sagcc get inventory components attributes sag01 OSGI-SPM group -p secretOutput:Name Value group AB -
To include only the value of the “group” attribute, for example “AB”, without any headers in the output:
sagcc get inventory components attributes sag01 OSGI-SPM group properties=value includeHeaders=false -p secret
- To include the name “group” and value
“AB” of the search attribute with headers in the output:
- To retrieve all search attributes and their
matching values for the run-time component that has component ID “OSGI-SPM” and
is installed on the installation with the alias name “sag01”, and has two
search attributes “group” and “tenantId”:
sagcc get inventory components attributes sag01 OSGI-SPM -p manageOutput:Name Value group AB tenantId 1234
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.