sagcc get inventory products
Retrieves information about a specified product. Information about a product can include:
Display name
ID for the product
Product code
Product version
Date and time the product was installed
Syntax
Command Central syntax:
sagcc get inventory products nodeAlias productId [options]
Platform Manager syntax:
sagcc get inventory products productId [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 |
[nodeAlias] | Command Central only. Required. Specifies the alias name of the installation for which you want to retrieve product information. If you do not specify an alias name, the command lists all products in all installations that Command Central manages. |
productId | Required. Specifies the product ID of the product for which you want to retrieve product information. |
[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 product that has the ID “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 products sag01 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 product that has the ID “SPM” and is managed by the Platform Manager with host name “rubicon2” and port “8092”, and have the output returned to the console in XML format:
sagcc get inventory products SPM --server http://rubicon2:8092/spm
--format 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.