Spherus.biz Home          

Automation & Scripting

The WebSphere Application server supports a feature rich scripting framework. This is implemented using either JACL or Jython. As the products have evolved, more focus has be placed on Jython. This is the scripting language of choice.

To invoke the command line interface you need to execute the wsadmin.sh script. This script can be run in either connected or disconnected mode. A running server process is required for connected mode. By default the wsadmin will try to connect to process associated with the profile used to launch it. If there is no server process available, it will switch to disconnected mode.

Example of launching wsadmin:

 
<WAS_PROFILE_HOME>/bin/wsadmin.sh -lang jython
 

This will start wsadmin while using Jython.

Click here for a full list of options and explanations.

Once you have launched wsadmin, there are five command objects available to perform administrative tasks:

  • AdminControl: Use to run operational commands.
  • AdminConfig: Use to run configurational commands to create or modify WebSphere Application Server configurational elements.
  • AdminApp: Use to administer applications.
  • AdminApp: Use to run administrative commands.
  • Help: Use to obtain general help.

Click on the links above for more details on each command.

Here is a simple Tutorial on how to create a set of configuration scripts written in Jython