You can configure deployment environments using the wsadmin interface.
This capability allows you to configure multiple deployment environments
unattended on a deployment manager using a script.
Before you begin
You must enter the commands on the deployment
manager on which you are configuring deployment environments.
Required security role for this task: When
security and role-based authorization are enabled, you must log in
to the administrative console as an administrator or operator to perform
this task.
About this task
After
you have imported or created deployment environments on a deployment
manager, you can configure the deployment environments using the
generateDeploymentEnv command.
Procedure
- Enter the wsadmin environment.
- Enter the generateDeploymentEnv command
for each topology you are configuring.
Example
The following command configures topologies eastEnvironment
and westEnvironment on host myDmgr.
wsadmin -connType SOAP -host myDmgr -port 8879
> $AdminTask generateDeploymentEnv -topologyName eastTopology
> $AdminTask generateDeploymentEnv -topologyName westTopology
> $AdminConfig save
Note: When you are running with administrative
security enabled, you will be prompted for a user ID and password
after the system processes the wsadmin command.
What to do next
Save the configured deployment environments. From the command
line, you can enter
$AdminConfig save.