Command Central 10.11 | Using the Command Line Interface | Stacks and Layers Commands | sagcc create stacks auto
 
sagcc create stacks auto
Generates product stacks with layers automatically from existing environments managed by one Command Central. You can also use the command to generate product stacks only for a specific environment, or only for product installations that have the same release version. Command Central compares the existing installations and:
*Includes in a generated stack only installations that have equal:
*Operating systems
*Release versions
*Installation directory location and name
*Platform Manager port number and protocol (HTTP or HTTPS). If an installation does not match all of the criteria, Command Central includes that installation in a separate stack.
*Includes in a generated run-time layer only the products from the existing installations that have equal run-time component IDs. If a run-time component ID does not match the IDs of the other run-time components in the layer, Command Central includes the run-time component in a separate layer.
Syntax
*Command Central syntax:
sagcc create stacks auto [environment=env_alias] [release=version]
[stackPrefix=stackPrefix] [options]
*Not applicable to Platform Manager.
Arguments and Options
Argument or Option
Description
[environment=env_alias]
Optional. The alias of the environment, for which to generate stacks and layers.
If you do not specify an environment or do not include this argument, Command Central generates stacks and layers for all environments.
[release=version]
Optional. The release version of the nodes for which to generate stacks and layers. For example, 10.7
Use this argument to filter by version the installations that you want to include in the generated stacks. If you do not specify a release version or do not include this argument, Command Central generate stacks and layers for all release versions in the existing installations.
[stackPrefix=stackPrefix]
Optional. Specifies a prefix to add to the names of the generated stacks. By default, the names of the generated stacks are "Stack1", "Stack2", ... "StackN". Use this argument to add a unique prefix to the names of all generated stacks.
[options]
Optional. The command allows all options supported by the Command Line Interface. For a description of the options, see Common Options.
Limitations
Command Central does not automatically:
*Generate the database layers. You must add the required database layers to the generated stacks.
*Include the local installation in the generated stacks. Command Central is typically installed in a different installation directory from the installations that it manages and is not included in the product stacks.
*Add the same installation in more than one stack. If an existing installation is already in a product stack, whether generated automatically or created from scratch, you cannot add the installation to another stack.
Examples
To create stacks and layers for all environments and installations that the local Command Central manages:
sagcc create stacks auto
To create a stack for the installations with version "10.5" in all environments that the local Command Central manages:
sagcc create stacks auto release=10.5
To create stacks for the installations with version "10.5" in the "Dev" environment and add the "stable" prefix to the names of all generated stacks:
sagcc create stacks auto environment=Dev release=10.5 stackPrefix=stable