+

Search Tips   |   Advanced Search

Use the script library to automate the application serving environment

The script library provides Jython script procedures to assist in automating the environment. Use the sample scripts to manage applications, resources, servers, nodes, and clusters. We can also use the script procedures as examples to learn the Jython syntax.

The Jython script library provides a set of procedures to automate the most common application server administration functions. For example, we can use the script library to easily configure servers, applications, mail settings, resources, nodes, business-level applications, clusters, authorization groups, and more. We can run each script procedure individually, or combine several procedures to quickly develop new scripts.

The scripting library provides a set of procedures to automate the most common application server administration functions. There are three ways to use the Jython script library.

Each script from the script library directory automatically loads when you launch wsadmin.sh. To automatically load our own Jython scripts (*.py) when wsadmin.sh starts, create a new subdirectory, and save existing automation scripts in the app_server_root/scriptLibraries directory. Each script library name must be unique and cannot be duplicated.

Avoid trouble: Do not edit the script procedures in the script library. To customize script library procedures, save the modified scripts to a new subdirectory to avoid overwriting the library.gotcha

To automatically load Jython scripts (*.py) that are not located in the app_server_root/scriptLibraries directory when wsadmin.sh starts, set the wsadmin.script.libraries system property to the script location. For example, if the script libraries are saved in the temp directory on a Windows operating system, the following example sets the script path in the wsadmin tool:

To load multiple directories, specify each directory in the system property separated by a semicolon (;):

The script library provides automation scripts for the following application server administration functions:


What to do next

Determine which scripts to use to automate the environment, or create custom scripts using assembly tools.


Subtopics

  • Server settings configuration scripts
  • Server configuration scripts
  • Server query scripts
  • Server administration scripts
  • Cluster configuration scripts
  • Cluster query scripts
  • Cluster administration scripts
  • Node administration scripts
  • Node group configuration scripts
  • Application installation and uninstallation scripts
  • Application query scripts
  • Application update scripts
  • Application export scripts
  • Application deployment configuration scripts
  • Application administration scripts
  • J2C query scripts
  • J2C configuration scripts
  • JMS configuration scripts
  • JMS query scripts
  • JDBC configuration scripts
  • JDBC query scripts
  • Resource configuration scripts
  • Authorization group configuration scripts
  • Business-level application configuration scripts
  • Utility scripts