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:
Deprecated feature: Assisted and Complete Lifecycle servers have been deprecated in WebSphere Application Server v9.0. Migrate WebSphere Liberty servers to a Liberty Collective configuration. There is no recommended migration action for other server types. All middleware server creation administrative tasks are also deprecated.depfeat
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.
- -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
- (ZOS) 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 characters must be capitalized.
- (ZOS) -genericShortName
- (ZOS) 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 characters must be capitalized.
- -clusterName
- Name of the cluster for this server.
- -genUniquePorts
- Parameter to generate unique HTTP ports for a server. (Boolean)
This parameter is not currently supported.
Return value.
The command returns a list of the middleware servers for the specified type.
Batch mode example usage
- Use Jacl:
$AdminTask createTomCatServer nodename {-name ServerName}- Use Jython:
AdminTask.createTomCatServer ('nodename','[-name ServerName]')
Interactive mode example usage
- Use Jacl:
$AdminTask createTomCatServer {-interactive}- Use Jython:
AdminTask.createTomCatServer ([-interactive]')
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.
- -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
- (ZOS) 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 characters must be capitalized.
- (ZOS) -genericShortName
- (ZOS) 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 characters must be capitalized.
- -clusterName
- Name of the cluster for this server.
- -genUniquePorts
- Parameter to generate unique HTTP ports for a server. (Boolean)
This parameter is not currently supported.
Return value.
The command returns a list of the middleware servers for the specified type.
Batch mode example usage
- Use Jacl:
$AdminTask createWebLogicServer nodename {-name ServerName}- Use Jython:
AdminTask.createWebLogicServer ('nodename','[-name ServerName]')
Interactive mode example usage
- Use Jacl:
$AdminTask createWebLogicServer {-interactive}- Use Jython:
AdminTask.createWebLogicServer ([-interactive]')
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.
- -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
- (ZOS) 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 characters must be capitalized.
- (ZOS) -genericShortName
- (ZOS) 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 characters must be capitalized.
- -clusterName
- Name of the cluster for this server.
- -genUniquePorts
- Parameter to generate unique HTTP ports for a server. (Boolean)
This parameter is not currently supported.
Return value.
Batch mode example usage
- Use Jacl:
$AdminTask createJBossServer nodename {-name ServerName}- Use Jython:
AdminTask.createJBossServer ('nodename','[-name ServerName]')
Interactive mode example usage
- Use Jacl:
$AdminTask createJBossServer (-interactive)- Use Jython:
AdminTask.createJBossServer ([-interactive]')
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
- Specified the name of the template used to create the server
- -templateLocation
- Location where the template is stored. Use the system defined location if it is not specified. Using the system defined location is recommended.
- -clusterName
- Name of the cluster for this server.
- -genUniquePorts
- Parameter to generate unique HTTP ports for a server. (Boolean)
This parameter is not currently supported.
Return value.
Batch mode example usage
- Use Jacl:
$AdminTask createLibertyServer nodename {-name ServerName}- Use Jython:
AdminTask.createLibertyServer ('nodename','[-name ServerName]')
Interactive mode example usage
- Use Jacl:
$AdminTask createLibertyServer {-interactive}- Use Jython:
AdminTask.createLibertyServer ([-interactive]')
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.
- -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
- (ZOS) 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 characters must be capitalized.
- (ZOS) -genericShortName
- (ZOS) 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 characters must be capitalized.
- -clusterName
- Name of the cluster for this server.
- -genUniquePorts
- Parameter to generate unique HTTP ports for a server. (Boolean)
This parameter is not currently supported.
Return value.
Batch mode example usage
- Use Jacl:
$AdminTask createForeignServer nodename {-name ServerName}- Use Jython:
AdminTask.createForeignServer ('nodename','[-name ServerName]')
Interactive mode example usage
- Use Jacl:
$AdminTask createForeignServer {-interactive}- Use Jython:
AdminTask.createForeignServer ([-interactive]')
createPHPServer
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.
- -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) -serverConfig
- (ZOS) Configuration of the server definition properties. Specify phpServerRoot or apacheServerRoot for the runtime path. Specify phpVersion or apacheVersion for the version number. (String, optional)
- -genUniquePorts
- Parameter to generate unique HTTP ports for a server. (Boolean)
This parameter is not currently supported.
Return value.
Batch mode example usage
- Use Jacl:
$AdminTask createPHPServer workstation_nameNode01 {-name myphpserver -serverConfig {-phpPath C:/PHP5 -apachePath C:/apache2}}- Use Jython:
AdminTask.createPHPServer workstation_nameNode01 ('[-name myphpserver -serverConfig [-phpPath C:/PHP5 -apachePath C:/apache2]]')
Interactive mode example usage
- Use Jacl:
$AdminTask createPHPServer workstation_nameNode01 {-interactive}- Use Jython:
AdminTask.createPHPServer workstation_nameNode01 ('[-interactive]')
createWasCEServer
The createWasCEServer command creates a representation of a WAS 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.
- -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
- (ZOS) 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 characters must be capitalized.
- (ZOS) -genericShortName
- (ZOS) 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 characters must be capitalized.
- -clusterName
- Name of the cluster for this server.
- -assistedServer
- Specifies if the server that we 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.
- -genUniquePorts
- Parameter to generate unique HTTP ports for a server. (Boolean)
This parameter is not currently supported.
Return value.
Batch mode example usage
- Use Jacl:
$AdminTask createWasCEServer nodename {-name ServerName -templateName wasce21}- Use Jython:
AdminTask.createWasCEServer ('nodename','[-name ServerName -templateName wasce21]')
Interactive mode example usage
- Use Jacl:
$AdminTask createWasCEServer {-interactive}- Use Jython:
AdminTask.createWasCEServer ([-interactive]')
createExtWasAppServer
The createExtWasAppServer command creates a new external WAS 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.
- -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
- (ZOS) 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 characters must be capitalized.
- (ZOS) -genericShortName
- (ZOS) 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 characters must be capitalized.
- -clusterName
- Name of the cluster for this server.
- -genUniquePorts
- Parameter to generate unique HTTP ports for a server. (Boolean)
This parameter is not currently supported.
Return value.
Batch mode example usage
- Use Jacl:
$AdminTask createExtWasAppServer nodename {-name ServerName}- Use Jython:
AdminTask.createExtWasAppServer ('nodename','[-name ServerName]')
Interactive mode example usage
- Use Jacl:
$AdminTask createExtWasAppServer {-interactive}- Use Jython:
AdminTask.createExtWasAppServer ([-interactive]')
Related:
Middleware nodes and servers Add middleware servers to configurations