WAS v8.5 > Reference > Jython script library

Application administration scripts

The scripting library provides script procedures to automate the application configurations. This topic provides usage information for scripts that start and stop applications. We can run each script individually or combine procedures to create custom automation scripts for the environment.

Each application management script procedure is located in the app_server_root/scriptLibraries/application/V70 directory. Use the following script procedures to start and stop applications:


startApplicationOnSingleServer

This script starts an application on a single server.

To run the script, specify the application name, node name, and server name arguments, as defined in the following table:

startApplicationOnSingleServer argument descriptions. Run the script to start an application on a server.

Argument Description
appName Name of the application to start.
nodeName Name of the node on which the application is deployed.
serverName Name of the application server on which the application is deployed.

Syntax

Example usage


startApplicationOnAllDeployedTargets

This script starts an application on all deployed nodes.

To run the script, specify the application name and node name arguments, as defined in the following table:

startApplicationOnAllDeployedTargets argument descriptions. Run the script to start an application on all deployable targets.

Argument Description
appName Name of the application to start.
nodeName Name of the node on which the application is deployed.

Syntax

Example usage


startApplicationOnCluster

This script starts an application on a cluster.

To run the script, specify the application name and cluster name arguments, as defined in the following table:

startApplicationOnCluster argument descriptions. Run the script to start an application on a cluster.

Argument Description
appName Name of the application to start.
clusterName Name of the cluster on which the application is deployed.

Syntax

Example usage


stopApplicationOnSingleServer

This script stops an application on a single server.

To run the script, specify the application name, node name, and server name arguments, as defined in the following table:

stopApplicationOnSingleServer argument descriptions. Run the script to stop an application on a server.

Argument Description
appName Name of the application to stop.
nodeName Name of the node on which the application is deployed.
serverName Name of the application server on which the application is deployed.

Syntax

Example usage


stopApplicationOnAllDeployedTargets

This script stops an application on all deployed nodes.

To run the script, specify the application name, cell name, and node name arguments, as defined in the following table:

stopApplicationOnAllDeployedTargets argument descriptions. Run the script to stop an application on all deployment targets.

Argument Description
appName Name of the application to stop.
nodeName Name of the node on which the application is deployed.

Syntax

Example usage


stopApplicationOnCluster using wsadmin.sh

This script stops an application on a cluster.

To run the script, specify the application name and cluster name arguments, as defined in the following table:

stopApplicationOnCluster argument descriptions. Run the script to stop an application on a cluster.

Argument Description
appName Name of the application to stop.
clusterName Name of the cluster on which the application is deployed.

Syntax

Example usage


Related


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


Reference:

Application installation and uninstallation scripts
Application query scripts
Application update scripts
Application export scripts
Application deployment configuration scripts


+

Search Tips   |   Advanced Search