Application administration scripts
The scripting library provides multiple script procedures to automate the application configurations. This page 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...
$WAS_HOME/scriptLibraries/application/V70Use the following script procedures to start and stop applications:
- startApplicationOnSingleServer
- startApplicationOnAllDeployedTargets
- startApplicationOnCluster
- stopApplicationOnSingleServer
- stopApplicationOnAllDeployedTargets
- stopApplicationOnCluster
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:
Table 1. startApplicationOnSingleServer argument descriptions
Argument Description appName Name of the application to start. nodeName Name of the node on which the application is deployed. serverName Name of the appserver on which the application is deployed.
Syntax
AdminApplication.startApplicationOnSingleServer(appName, nodeName, serverName)Example usage
AdminApplication.startApplicationOnSingleServer("myApp", "myNode", "myServer")
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:
Table 2. startApplicationOnAllDeployedTargets argument descriptions
Argument Description appName Name of the application to start. nodeName Name of the node on which the application is deployed.
Syntax
AdminApplication.startApplicationOnAllDeployedTargets(appName, nodeName)Example usage
AdminApplication.startApplicationOnAllDeployedTargets("myApp", "myNode")
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:
Table 3. startApplicationOnCluster argument descriptions
Argument Description appName Name of the application to start. clusterName Name of the cluster on which the application is deployed.
Syntax
AdminApplication.startApplicationOnCluster(appName, clusterName)Example usage
AdminApplication.startApplicationOnCluster("myApp", "myCluster")
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:
Table 4. stopApplicationOnSingleServer argument descriptions
Argument Description appName Name of the application to stop. nodeName Name of the node on which the application is deployed. serverName Name of the appserver on which the application is deployed.
Syntax
AdminApplication.stopApplicationOnSingleServer(appName, nodeName, serverName)Example usage
AdminApplication.stopApplicationOnSingleServer("myApp", "myNode", "myServer")
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:
Table 5. stopApplicationOnAllDeployedTargets argument descriptions
Argument Description appName Name of the application to stop. nodeName Name of the node on which the application is deployed.
Syntax
AdminApplication.stopApplicationOnAllDeployedTargets(appName, nodeName)Example usage
AdminApplication.stopApplicationOnAllDeployedTargets("myApp", "myNode")
stopApplicationOnCluster
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:
Table 6. stopApplicationOnCluster argument descriptions
Argument Description appName Name of the application to stop. clusterName Name of the cluster on which the application is deployed.
Syntax
AdminApplication.stopApplicationOnCluster(appName, clusterName)Example usage
AdminApplication.stopApplicationOnCluster("myApp", "myCluster")
Related tasks
Use the script library to automate the application serving environment
Automating application configurations using the scripting library
Related
Application installation and uninstallation scripts
Application query scripts
Application update scripts
Application export scripts
Application deployment configuration scripts