Command Central 10.3 | Command Central Developer Reference | Using the Command Line Interface | Inventory Commands | sagcc get inventory components
 
sagcc get inventory components
Retrieves information about a specified run-time component. Information about a run-time component can include:
*Display name
*ID for the run-time component
*ID of the product to which this run-time component belongs
*Run-time component category, which can be one of the following:
*PROCESS for a run-time component that functions on its own. These are referred to as instances in the Web user interface.
*ENGINE for a run-time component that cannot function on its own, but rather run within a PROCESS run-time component. These are referred to as components in the Web user interface.
Syntax
*Command Central syntax:
sagcc get inventory components  node_alias componentid  [options]
*Platform Manager syntax:
sagcc get inventory components  componentid  [options]
                 
 options:                  
[{--accept | -a} content_type]                  
[{--debug | -d}]                  
[{--error | -r} file]                  
[{--format | -f} {tsv args | xml | csv args | json}]                  
[{--log | -l} file]                  
[{--output | -o} file]                  
[{--password | -p} password]                  
[{--quiet | -q}]                  
[{--server | -s} url]                  
[{--username | -u} user_name]
Arguments and Options
Argument or Option
Description
node_alias
Command Central only.
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 information.
You can determine the IDs for run-time components using sagcc list inventory components.
[options]
Optional. Refer to the command syntax for a list of the options the command supports. For a description of the options, see Common Options.
Example When Executing on Command Central
To execute a command on the Command Central server with host name “rubicon” and port “8090” to retrieve information for the run-time component that has the component ID “OSGI-SPM” and is installed on the installation with the alias name “sag01”, and have the output returned to the console in JavaScript Object Notation format:
sagcc get inventory components sag01 OSGI-SPM --server http://rubicon:8090/cce                 
--format json --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.
Example When Executing on Platform Manager
To retrieve information for the run-time component that has the component ID “OSGI-SPM” and is managed by the Platform Manager with host name “rubicon2” and port “8092”, using the authorization of the user with user name “Administrator” and password “manage”, and have the information displayed on the console in XML format:
sagcc get inventory components OSGI-SPM --server http://rubicon2:8092/spm                
--format xml --username Administrator --password manage