Spherus.biz Home          
WebSphere Application Server wsadmin.sh AdminTask
The AdminTask object provides access administration and configuration commands. These commands are more user friendly and task-oriented. This is an alternate way of managing the environment.

Some of the more usefull functions are:

  • createCluster
  • createCoreGroup
  • createSIBDestination
  • deleteCluster
  • listDatasources

The list of commands is generated dynamically when wsadmin is first launched. It will vary between product versions.

To execute the commands use the following:

JACL

 
$AdminContol <commandName>
 

Jython

 
AdminContol.<commandName>()
 

An example of creating a Server Cluster

JACL

 
$AdminTask createCluster {-clusterConfig {-clusterName cluster1 -preferLocal true}}
 

Jython

 
AdminTask.createCluster('[-clusterConfig [-clusterName cluster1 -preferLocal true]]')
 

For more details please refer to the IBM WebSphere Application Server InfoCentre