Command Central 10.15 | Using the Command Line Interface | Inventory Commands | sagcc list inventory products
 
sagcc list inventory products
Lists information about products. 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:
*To list products for a specified installation:
sagcc list inventory products  [nodeAlias]  [options]
*To list products that match specified search criteria:
sagcc list inventory products  [searchCriteria] [start=from_number]                
[size=count] [options]
*Platform Manager syntax:
sagcc list inventory products  [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.
Optional. Specifies the alias name of the installation for which you want to retrieve product information.
You can view a list of installations and their aliases using sagcc list landscape nodes.
If you do not specify an alias name nor search criteria, the command lists all products in all installations that Command Central manages.
[searchCriteria]
Command Central only.
Optional. Narrows down the list of returned products to only those that match the search criteria you specify. For more information, see Specifying Search Criteria for Inventory Commands.
[start=from_number]
Command Central only.
Optional. Limits the results the command returns to those starting at the specified number in the results.
For example, if you want to return information for the 5th through the 8th products in the results, use start=5 size=4.
[size=count]
Command Central only.
Optional. Limits the number of results you want returned.
For example, if you specify size=1, the command returns information for only one product.
[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.
Examples When Executing on Command Central
*To list all products that the Command Central with host name “rubicon” and port “8090” manages, using the authorization of the user with user name “Administrator” and password “manage”, and have the information returned to the output file “productlist” in XML format:
sagcc list inventory products --format xml --output productlist                
--server http://rubicon:8090/cce --username Administrator                
--password manage
*To list the same products as the first example above, but restrict the number of returned products to only 5:
sagcc list inventory products size=5 --format xml --output productlist                
--server http://rubicon:8090/cce --username Administrator                
--password manage
*To list products that are version 9.12 or later and also contain “Platform” in their display name and return the output to the console in JavaScript Object Notation format:
sagcc list inventory products productVersion=9.12*                
productDisplayName=*Platform* --format json --password secret
Because the {--server | -s} and {--username | -u} options are not specified, the command uses the default server and user name. For more information, see server and username. The command specifies “secret” for the user’s password.
*To list the 10th through the 15th products in the results and return the output to the console in XML format:
sagcc list inventory products start=10 size=6 --format xml                
--password secret
Because the {--server | -s} and {--username | -u} options are not specified, the command uses the default server and user name. For more information, see server and username. The command specifies “secret” for the user’s password.
Example When Executing on Platform Manager
To list information about the products that are 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 returned to the console in XML format:
sagcc list inventory products --format xml --username Administrator                
--password manage --server http://rubicon2:8092/spm