The scripting library provides multiple script procedures to automate your application configurations. This topic provides usage information for scripts that start and stop applications. You can run each script individually or combine procedures to create custom automation scripts for your environment.
This script starts an application on a single server.
Argument | Description |
---|---|
appName | Specifies the name of the application to start. |
nodeName | Specifies the name of the node on which the application is deployed. |
serverName | Specifies the name of the application server on which the application is deployed. |
Syntax
AdminApplication.startApplicationOnSingleServer(appName, nodeName, serverName)
Example usage
AdminApplication.startApplicationOnSingleServer("myApp", "myNode", "myServer")
This script starts an application on all deployed nodes.
Argument | Description |
---|---|
appName | Specifies the name of the application to start. |
nodeName | Specifies the name of the node on which the application is deployed. |
Syntax
AdminApplication.startApplicationOnAllDeployedTargets(appName, nodeName)
Example usage
AdminApplication.startApplicationOnAllDeployedTargets("myApp", "myNode")
This script starts an application on a cluster.
Argument | Description |
---|---|
appName | Specifies the name of the application to start. |
clusterName | Specifies the name of the cluster on which the application is deployed. |
Syntax
AdminApplication.startApplicationOnCluster(appName, clusterName)
Example usage
AdminApplication.startApplicationOnCluster("myApp", "myCluster")
This script stops an application on a single server.
Argument | Description |
---|---|
appName | Specifies the name of the application to stop. |
nodeName | Specifies the name of the node on which the application is deployed. |
serverName | Specifies the name of the application server on which the application is deployed. |
Syntax
AdminApplication.stopApplicationOnSingleServer(appName, nodeName, serverName)
Example usage
AdminApplication.stopApplicationOnSingleServer("myApp", "myNode", "myServer")
This script stops an application on all deployed nodes.
Argument | Description |
---|---|
appName | Specifies the name of the application to stop. |
nodeName | Specifies the name of the node on which the application is deployed. |
Syntax
AdminApplication.stopApplicationOnAllDeployedTargets(appName, nodeName)
Example usage
AdminApplication.stopApplicationOnAllDeployedTargets("myApp", "myNode")
This script stops an application on a cluster.
Argument | Description |
---|---|
appName | Specifies the name of the application to stop. |
clusterName | Specifies the name of the cluster on which the application is deployed. |
Syntax
AdminApplication.stopApplicationOnCluster(appName, clusterName)
Example usage
AdminApplication.stopApplicationOnCluster("myApp", "myCluster")