Software AG Command Central 10.2 | Command Central Developer Reference | Using the Command Line Interface | Inventory Commands | sagcc list inventory assets
 
sagcc list inventory assets
Lists assets that are either installed on the specified installation, or match the specified search criteria.
Important: The assets inventory commands are a preview feature that is subject to change in the future. This preview has limited functions and is not intended for use in a production environment. If you want to provide feedback for this preview feature, go to the Command Central area in the Software AG TechCommunity.
Syntax
*Command Central syntax:
*To list all assets for all installations:
sagcc list inventory assets [options]
*To list assets installed on a specified installation:
sagcc list inventory assets  nodeAlias
[options]
*To list assets that match specified search criteria:
sagcc list inventory assets  [searchAttribute1=value1...] [start=from_number]                
[size=count] [options]
*Platform Manager syntax:
sagcc list inventory assets  [options]
Arguments and Options
Argument or Option
Description
nodeAlias
Command Central only.
Specifies the alias name of the installation for which you want to retrieve asset information.
You can view a list of installations and their aliases using sagcc list landscape nodes.
[searchAttribute1=value1...]
Command Central only.
Optional. Narrows down the list of returned assets to only those that match the search criteria you specify. For information about the search criteria the command supports and how to specify them, see the table in 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 run-time assets 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 asset.
[options]
Optional. The command allows all options supported by the Command Line Interface. For a description of the options, see Common Options.
Usage Notes
If you do not specify an alias name, nor search criteria, the command lists information for all assets in all installations that Command Central manages.
Examples When Executing on Command Central
*To list all assets in the installation with alias name "local" and have the information returned to the output file “assets” in XML format:
sagcc list inventory assets local --format xml --output assets
*To restrict the number of returned assets to only 5:
sagcc list inventory assets size=5 --format xml --output assets                
--server http://rubicon:8090/cce --username Administrator                
--password manage
*To list the 10th through the 15th assets in the results and return the output to the console in XML format:
sagcc list inventory assets start=10 size=6 --format xml                
--password secret
*To list assets and use search criteria to narrow the results to only those that are installed in the installation with alias name “sag01” and return the output to the console in JavaScript Object Notation format:
sagcc list inventory assets nodeAlias=sag01                
--format json --password secret
*To list assets and use search criteria to narrow the results to only those that are installed in the installation with alias names “sag01” or “sag03” and return the output to the console in xml format:
sagcc list inventory assets logicalOperator=OR nodeAlias=sag01                 
nodeAlias=sag03 --format xml --password secret
*To list assets with name "Fibonachi" for the runtime of type "IS", installed on the "local" node:
sagcc list inventory assets nodeAlias=local name=Fibonachi runtimeType=IS
Example When Executing on Platform Manager
To list all assets on 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 assets --format xml                
--server http://rubicon2:8092/spm --username Administrator                
--password manage

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release