Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information. For this task, the wsadmin scripting client must be connected to the deployment manager server in a network deployment environment.
You can use the wsadmin AdminConfig and AdminApp objects to make changes to the WebSphere Application Server configuration. The purpose of this article is to illustrate the relationship between the commands used to change the configuration and the files used to hold configuration data. This discussion assumes that you have a network deployment installation, but the concepts are very similar for a WebSphere Application Server installation.
set n1 [$AdminConfig getid /Node:mynode/]
n1 = AdminConfig.getid('/Node:mynode/')
where:
set | is a Jacl command |
n1 | is a variable name |
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
getid | is an AdminConfig command |
Node | is the object type |
mynode | is the name of the object that will be modified |
set serv1 [$AdminConfig create Server $n1 {{name myserv}}]
serv1 = AdminConfig.create('Server', n1, [['name', 'myserv']])
serv1 = AdminConfig.create('Server', n1, '[[name myserv]]')
where:
set | is a Jacl command |
serv1 | is a variable name |
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
create | is an AdminConfig command |
Server | is an AdminConfig object |
n1 | evaluates to the ID of host node specified in step number 2 |
name | is an attribute |
myserv | is the value of the name attribute |
$AdminConfig modify $serv1 {{stateManagement {{initialState STOP}}}}
AdminConfig.modify(serv1, [['stateManagement', [['initialState', 'STOP']]]])
AdminConfig.modify(serv1, '[[stateManagement [[initialState STOP]]]]')
where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
modify | is an AdminConfig command |
serv1 | evaluates to the ID of host node specified in step number 3 |
stateManagement | is an attribute |
initialState | is a nested attribute within the stateManagement attribute |
STOP | is the value of the initialState attribute |
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object