scripting
The wsadmin
Jython scripting library provides a set of procedures to automate the
most common application server administration operations.
Info
Library location¶
The script library code is located in the
${APP_SERVER_ROOT}/scriptLibraries
directory. Within this directory, the
scripts are organized into subdirectories according to functionality.
For example, the ${APP_SERVER_ROOT}/scriptLibraries/application/V70
subdirectory contains procedures that perform application management tasks
that are applicable to Websphere Application Server v7.0 and later.
Add scripts to the library¶
To automatically load your own Jython scripts (*.py
) when the wsadmin
tool
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.
The scripting library consists of the following automation scripts:
AdminApplication
: Use it to install, uninstall, and update your applications with various options.AdminAuthorizations
: Use it to configure authorization groups.AdminBLA
: Use it to configure, administer and deploy Business Level Applications (BLA).AdminClusterManagement
: Use it to manage server clusters.AdminJ2C
: Use it to create and configure Java 2 Connector (J2C) resource adapters.AdminJDBC
: Use it to manage data sources and Java Database Connectivity (JDBC) providers.AdminJMS
: Use it to configure and manage your Java Messaging Service (JMS) configurations.AdminLibHelp
: Use it to list each available script library, display information for specific script libraries, and to display information for specific script procedures.AdminNodeGroupManagement
: Use it to manage node groups.AdminNodeManagement
: Use it to manage Nodes.AdminResources
: Use it to configure mail, URL, and resource settings.AdminServerManagement
: Use it to configure classloaders, Java™ virtual machine (JVM) settings, Enterprise JavaBeans (EJB) containers, performance monitoring, dynamic cache, and so on.AdminUtilities
: Use it to configure trace, debugging, logs, and performance monitoring.
For more info see the official documentation.