Server administration scripts


The scripting library provides multiple script procedures to automate the appserver configurations. Use the appserver scripts to delete, start, and stop servers. We can run each script individually or combine procedures to create custom automation scripts for the environment.

All server management script procedures are located in...

WAS_HOME/scriptLibraries/servers/V61

Use the following script procedures to administer the application server:

 

startAllServers

This script starts all servers on a node in the configuration.

To run the script, specify the node name, as defined in the following table:
Argument Description
nodeName Name of the node of interest.

Syntax

AdminServerManagement.startAllServers(nodeName)

Example usage

AdminServerManagement.startAllServers("myNode")

 

startSingleServer

This script starts a specific server in the configuration.

To run the script, specify the node name and server name, as defined in the following table:
Argument Description
nodeName Name of the node of interest.
serverName Name of the server to start.

Syntax

AdminServerManagement.startSingleServer(nodeName, serverName)

Example usage

AdminServerManagement.startSingleServer("myNode", "myServer")

 

stopAllServers

This script stops all servers on a node in the configuration.

To run the script, specify the node name, as defined in the following table:
Argument Description
nodeName Name of the node of interest.

Syntax

AdminServerManagement.stopAllServers(nodeName)

Example usage

AdminServerManagement.stopAllServers("myNode")

 

stopSingleServer

This script stops a single server in the configuration.

To run the script, specify the node name and server name, as defined in the following table:
Argument Description
nodeName Name of the node of interest.
serverName Name of the server of interest.

Syntax

AdminServerManagement.stopSingleServer(nodeName, serverName, classname, displayname, classpath, otherAttributeList)

Example usage

AdminServerManagement.stopSingleServer("myNode", "myServer")




 

Related tasks


Use the script library to automate the application serving environment
Automating server administration using the scripting library

 

Related


Server query scripts
Server settings configuration scripts