You can use administrative tasks to write a script that
can recreate your middleware server configuration.
createTomCatServer
The
createTomCatServer command creates a representation of an Apache Tomcat
server.
Target object
The node
name.
Required parameters
- -name
- Specifies the name of the server to create. (String, required)
- -templateName
- Specifies the name of the template that is used to create the
server.
- -genUniquePorts
- Specifies a parameter to generate unique HTTP ports for a server.
(Boolean)
- -templateLocation
- Specifies the location where the template is stored. Use the system
defined location if it is not specified. Using the system defined
location is recommended.
- -specificShortName
- Specifies the specific short name of the server. All servers should
have unique specific short name. This parameter is 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.
- -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. This parameter is 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
- Specifies the 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 usage
- Using Jacl:
$AdminTask createTomCatServer nodename {-name ServerName}
- Using Jython:
AdminTask.createTomCatServer ('nodename','[-name ServerName]')
Interactive mode example usage
createWebLogicServer
The
createWebLogicServer command creates a representation of a BEA WebLogic
Server.
Target object
The node
name.
Required parameters
- -name
- Specifies the name of the server to create. (String, required)
- -templateName
- Specifies the name of the template that is used to create the
server.
- -genUniquePorts
- Specifies a parameter to generate unique HTTP ports for a server.
(Boolean)
- -templateLocation
- Specifies the location where the template is stored. Use the system
defined location if it is not specified. Using the system defined
location is recommended.
- -specificShortName
- Specifies the specific short name of the server. All servers should
have unique specific short name. This parameter is 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.
- -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. This parameter is 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
- Specifies the 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 usage
- Using Jacl:
$AdminTask createWebLogicServer nodename {-name ServerName}
- Using Jython:
AdminTask.createWebLogicServer ('nodename','[-name ServerName]')
Interactive mode example usage
createJBossServer
The createJBossServer
command creates a representation of a JBoss server.
Target object
The node name.
Required parameters
- -name
- Specifies the name of the server to create. (String, required)
- -templateName
- Specifies the name of the template that is used to create the
server.
- -genUniquePorts
- Specifies a parameter to generate unique HTTP ports for a server.
(Boolean)
- -templateLocation
- Specifies the location where the template is stored. Use the system
defined location if it is not specified. Using the system defined
location is recommended.
- -specificShortName
- Specifies the specific short name of the server. All servers should
have unique specific short name. This parameter is 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.
- -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. This parameter is 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
- Specifies the name of the cluster for this server.
Return value
Batch mode example usage
- Using Jacl:
$AdminTask createJBossServer nodename {-name ServerName}
- Using Jython:
AdminTask.createJBossServer ('nodename','[-name ServerName]')
Interactive mode example usage
createWasCEServer
The
createWasCEServer command creates a representation of a WebSphere® Application Server
Community Edition server.
Target object
None.
Required parameters
- -name
- Specifies the name of the server to create. (String, required)
- -templateName
- Specifies the name of the template that is used to create the
server.
- -genUniquePorts
- Specifies a parameter to generate unique HTTP ports for a server.
(Boolean)
- -templateLocation
- Specifies the location where the template is stored. Use the system
defined location if it is not specified. Using the system defined
location is recommended.
- -specificShortName
- Specifies the specific short name of the server. All servers should
have unique specific short name. This parameter is 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.
- -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. This parameter is 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
- Specifies the 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 you specify false,
a complete life cycle server is created. If you specify true,
an assisted life cycle server is created.
- -templateServerNode
- Specifies the name of the node that contains the server that you
want to use as a template.
- -templateServerName
- Specifies the name of the existing server that you want to use
as a template.
Return value
Batch mode example usage
- Using Jacl:
$AdminTask createWasCEServer nodename {-name ServerName -templateName wasce21}
- Using Jython:
AdminTask.createWasCEServer ('nodename','[-name ServerName -templateName wasce21]')
Interactive mode example usage