+

Search Tips   |   Advanced Search

Application query scripts

The scripting library provides multiple script procedures to automate the application configurations. See the usage information for scripts that query the application configuration. 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 query application configurations:


checkIfAppExists

This script checks if the application is deployed on the application server.

To run the script, specify the application name argument, as defined in the following table:

argument description. Run the script to see if an application
Argument Description
appName Name of the application of interest.

Syntax

Example usage


getAppDeployedNodes

This script lists the nodes on which the application of interest is deployed.

To run the script, specify the application name argument, as defined in the following table:

argument description. Run the script to list the nodes
Argument Description
appName Name of the application of interest.

Syntax

Example usage


getAppDeploymentTarget

This script displays the application deployment target for the application of interest.

To run the script, specify the application name argument, as defined in the following table:

Argument Description
appName Name of the application of interest.

Syntax

Example usage


getTaskInfoForAnApp

This script displays task information for a specific application EAR file. The script obtains information about the data needed for the application. You need to provide data for rows or entries that are either missing information, or require an update.

To run the script, specify the EAR file and the task arguments, as defined in the following table:

Argument Description
earFile Name of the EAR file of interest.
taskName Name of the task of interest.

Syntax

Example usage


listApplications

This script lists all deployed applications. The script does not require arguments.

Syntax

Example usage


listApplicationsWithTarget

This script lists all deployed applications for a specific target.

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

argument descriptions. Run the script to list deployed
Argument Description
nodeName Name of the node of interest.
serverName Name of the server of interest.

Syntax

Example usage


listModulesInAnApp

This script lists each module in a deployed application.

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

argument descriptions. Run the script to list modules
Argument Description
appName Name of the application of interest.
serverName Name of the server of interest.

Syntax

Example usage


Related tasks

  • Use the script library to automate the application serving environment
  • Automating application configurations
  • Application administration scripts

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