You can create deployment environment definitions using
the wsadmin command. You can use the wsadmin command
to create the same deployment environment as you can create from the
administrative console. This capability allows you to run the administrative
task to create a new definition with all the default values based
on an existing configuration.
Before you begin
You must be at the deployment manager from which you are
creating deployment environment definitions.
Required security role for this task: When
security and role-based authorization are enabled, you must use a
userid and password with administrator or operator authority to perform
this task.
About this task
This task creates a deployment environment definition
that is based on a specific pattern and uses the wsadmin command.
Procedure
- Open a command window.
The wsadmin command can be found at either the <ESB>/profiles/<dmgr
profile>/bin directory, or the <ESB>/bin directory.
- At the command prompt, enter the wsadmin command
to enter the wsadmin environment.
- Use the createDeploymentEnvDef command
to create the deployment environment definition with a specific name
for a particular runtime and pattern.
Note: If administrative
security is on, you will be prompted for a user ID and password, if
you do not supply it in the command.
Example
This example creates a deployment environment definition
for single cluster pattern on a
WebSphere® ESB runtime
myDepEnv on the host myDmgr with administrative security enabled:
wsadmin -connType SOAP
-host myDmgr -port 8879 > $AdminTask -createDeploymentEnvDef { -topologyName
topOne -topologyPattern singleCluster -topologyRuntime WESB}
Note: If
you disable administrative security, you do not need to provide a
user ID and password.