WAS v8.5 > Script the application serving environment (wsadmin)

Use the script library to automate the application serving environment using wsadmin.sh

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 are 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 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 we launch wsadmin. To automatically load our own Jython scripts (*.py) when wsadmin 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.

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.

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

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

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

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


Subtopics


Reference:

Server settings configuration scripts
Server configuration scripts
Server query scripts
Server administration 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


+

Search Tips   |   Advanced Search