Intelligent Management: middleware server creation administrative tasks

Use administrative tasks to write a script that can recreate the middleware server configuration.

Use the following commands to create middleware servers:


createTomCatServer

The createTomCatServer command creates a representation of an Apache Tomcat server.

Target object:

The node name.

Required parameters

-name

Name of the server to create. (String, required)

Optional parameters

-templateName

Name of the template used to create the server.

-genUniquePorts

Specifies a parameter to generate unique HTTP ports for a server. (Boolean)

-templateLocation

Location where the template is stored. Use the system defined location if it is not specified. Using the system defined location is recommended.

(zos) -specificShortName

Specific short name of the server. All servers should have unique specific short name. Optional and when it is not specified a unique specific short name is automatically assigned. The value must be eight characters or less and all upper case.

(zos) -genericShortName

Specifies the generic short name of the server. All members of a cluster must have the same generic short name. Individual servers must have a unique generic short name. Optional. When this parameter is not specified, a unique generic short name is automatically assigned. The value must be eight characters or less and all upper case.

-clusterName

Name of the cluster for this server.

Return value

The command returns a list of the middleware servers for the specified type.

Batch mode example

Interactive mode


createWebLogicServer

The createWebLogicServer command creates a representation of a BEA WebLogic Server.

Target object:

The node name.

Required parameters

-name

Name of the server to create. (String, required)

Optional parameters

-templateName

Name of the template used to create the server.

-genUniquePorts

Specifies a parameter to generate unique HTTP ports for a server. (Boolean)

-templateLocation

Location where the template is stored. Use the system defined location if it is not specified. Using the system defined location is recommended.

(zos) -specificShortName

Specific short name of the server. All servers should have unique specific short name. Optional and when it is not specified a unique specific short name is automatically assigned. The value must be eight characters or less and all upper case.

(zos) -genericShortName

Specifies the generic short name of the server. All members of a cluster must have the same generic short name. Individual servers must have a unique generic short name. Optional. When this parameter is not specified, a unique generic short name is automatically assigned. The value must be eight characters or less and all upper case.

-clusterName

Name of the cluster for this server.

Return value

The command returns a list of the middleware servers for the specified type.

Batch mode example

Interactive mode


createJBossServer

The createJBossServer command creates a representation of a JBoss server.

Target object:

The node name.

Required parameters

-name

Name of the server to create. (String, required)

Optional parameters

-templateName

Name of the template used to create the server.

-genUniquePorts

Specifies a parameter to generate unique HTTP ports for a server. (Boolean)

-templateLocation

Location where the template is stored. Use the system defined location if it is not specified. Using the system defined location is recommended.

(zos) -specificShortName

Specific short name of the server. All servers should have unique specific short name. Optional and when it is not specified a unique specific short name is automatically assigned. The value must be eight characters or less and all upper case.

(zos) -genericShortName

Specifies the generic short name of the server. All members of a cluster must have the same generic short name. Individual servers must have a unique generic short name. Optional. When this parameter is not specified, a unique generic short name is automatically assigned. The value must be eight characters or less and all upper case.

-clusterName

Name of the cluster for this server.

Return value

Batch mode example

Interactive mode


createLibertyServer

The createLibertyServer command creates a representation of a Librety profile server.

Target object:

The node name.

Required parameters

-name

Name of the server to create. (String, required) This name must be the same name as the Liberty profile server name. For example: for wlp/usr/servers/myServer, the -name value is myServer.

Optional parameters

-templateName

Name of the template used to create the server.

-genUniquePorts

Specifies a parameter to generate unique HTTP ports for a server. (Boolean)

-templateLocation

Location where the template is stored. Use the system defined location if it is not specified. Using the system defined location is recommended.

(zos) -specificShortName

Specific short name of the server. All servers should have unique specific short name. Optional and when it is not specified a unique specific short name is automatically assigned. The value must be eight characters or less and all upper case.

(zos) -genericShortName

Specifies the generic short name of the server. All members of a cluster must have the same generic short name. Individual servers must have a unique generic short name. Optional. When this parameter is not specified, a unique generic short name is automatically assigned. The value must be eight characters or less and all upper case.

-clusterName

Name of the cluster for this server.

Return value

Batch mode example

Interactive mode


createForeignServer

The createForeignServer command creates a new foreign server.

Target object:

The node name.

Required parameters

-name

Name of the server to create. (String, required)

Optional parameters

-templateName

Name of the template used to create the server.

-genUniquePorts

Specifies a parameter to generate unique HTTP ports for a server. (Boolean)

-templateLocation

Location where the template is stored. Use the system defined location if it is not specified. Using the system defined location is recommended.

(zos) -specificShortName

Specific short name of the server. All servers should have unique specific short name. Optional and when it is not specified a unique specific short name is automatically assigned. The value must be eight characters or less and all upper case.

(zos) -genericShortName

Specifies the generic short name of the server. All members of a cluster must have the same generic short name. Individual servers must have a unique generic short name. Optional. When this parameter is not specified, a unique generic short name is automatically assigned. The value must be eight characters or less and all upper case.

-clusterName

Name of the cluster for this server.

Return value

Batch mode example

Interactive mode


createPHPServer

The createPHPServer command creates a new PHP server.

Required parameters

-name

Name of the server. (String, required)

Optional parameters

-templateName

Name of the server template to use. We can specify templateServerNode and templateServerName to use an existing server as a virtual template instead of a defined template. (String, optional)

-genUniquePorts

Specifies a boolean to generate unique ports for the server. (String, optional)

-templateLocation

Location in which the template is stored. Use the system defined location if the location is not specified. (String, optional)

-serverConfig

Configuration of the server definition properties. Specify phpServerRoot or apacheServerRoot for the runtime path. Specify phpVersion or apacheVersion for the version number. (String, optional)

Batch mode example

Interactive mode


createWasCEServer

The createWasCEServer command creates a representation of a WebSphere Application Server Community Edition server.

Target object: None.

Required parameters

-name

Name of the server to create. (String, required)

Optional parameters

-templateName

Name of the template used to create the server.

-genUniquePorts

Specifies a parameter to generate unique HTTP ports for a server. (Boolean)

-templateLocation

Location where the template is stored. Use the system defined location if it is not specified. Using the system defined location is recommended.

(zos) -specificShortName

Specific short name of the server. All servers should have unique specific short name. Optional and when it is not specified a unique specific short name is automatically assigned. The value must be eight characters or less and all upper case.

(zos) -genericShortName

Specifies the generic short name of the server. All members of a cluster must have the same generic short name. Individual servers must have a unique generic short name. Optional. When this parameter is not specified, a unique generic short name is automatically assigned. The value must be eight characters or less and all upper case.

-clusterName

Name of the cluster for this server.

-assistedServer

Specifies if the server that you create is an assisted life cycle server that is a representation of an existing server. The default is false. If we specify false, a complete life cycle server is created. If we specify true, an assisted life cycle server is created.

-templateServerNode

Name of the node containing the server to use as a template.

-templateServerName

Name of the existing server to use as a template.

Return value

Batch mode example

Interactive mode


createExtWasAppServer

The createExtWasAppServer command creates a new external WebSphere Application Server server.

Target object:

The node name.

Required parameters

-name

Name of the server to create. (String, required)

Optional parameters

-templateName

Name of the template used to create the server.

-genUniquePorts

Specifies a parameter to generate unique HTTP ports for a server. (Boolean)

-templateLocation

Location where the template is stored. Use the system defined location if it is not specified. Using the system defined location is recommended.

(zos) -specificShortName

Specific short name of the server. All servers should have unique specific short name. Optional and when it is not specified a unique specific short name is automatically assigned. The value must be eight characters or less and all upper case.

(zos) -genericShortName

Specifies the generic short name of the server. All members of a cluster must have the same generic short name. Individual servers must have a unique generic short name. Optional. When this parameter is not specified, a unique generic short name is automatically assigned. The value must be eight characters or less and all upper case.

-clusterName

Name of the cluster for this server.

Return value

Batch mode example

Interactive mode


Related concepts

  • Middleware nodes and servers


    Related tasks

  • Add middleware servers to configurations