Home

 

Developing automation scripts

Scripting is a non-graphical alternative that you can use to configure and manage a WebSphere Application Server. The WebSphere administrative scripting tool, wsadmin, is a non-graphical command interpreter environment that allows you to run administrative operations on a server in a scripting language.

There are five wsadmin objects available when you use scripts:

AdminControl. This is used to run operational commands.

AdminConfig. This is used to run configuration commands to create or modify WebSphere Application Server configuration elements.

AdminApp. This is used to administer applications.

AdminTask. This is used to run administrative commands.

Help. This is used to obtain general help.

The WebSphere administrative scripting program, wsadmin, supports two scripting languages: Java Tcl (Jacl) and Java Python (Jython).

With the Version 6.1 release of WebSphere Application Server, IBM announced the start of the deprecation process for the Jacl syntax associated with wsadmin.

In this chapter, we describe how to create a Jython project and Jython script, how to edit the Jython script, and how to run it.

ibm.com/redbooks