[AIX Solaris HP-UX Linux Windows][z/OS]

Intelligent Management: middleware server template administrative tasks

Use middleware server template administrative tasks to create server templates for middleware servers that you have created.

createApacheServerTemplate command

The createApacheServerTemplate command creates a new server template that is based on an existing Apache server representation.

Target object

Required parameters

-templateName
Specifies the name of the server template that you want to create. (String, required)
-serverName
Specifies the server from which to base the template. (String, required)
-nodeName
Specifies the node on which the specified server runs. (String, required)
-description
Specifies a description for the template.
-templateLocation
Specifies the location where you want to place the template.

Return value

This command returns the configuration ID of a new template.

Batch mode example usage

  • Using Jacl:
    $AdminTask createApacheServerTemplate{-templateName weblogic_new -serverName xdtest1 -nodeName xdnode1 
    -description "My new template"}
  • Using Jython String:
    AdminTask.createApacheServerTemplate('[-templateName weblogic_new -serverName xdtest1 -nodeName xdnode1 
    -description "My new template"]')
  • Using Jython List:
    AdminTask.createApacheServerTemplate(['-templateName','weblogic_new','-serverName','xdtest1','-nodeName',
    'xdnode1','-description','My new template'])

createForeignServerTemplate command

The createForeignServerTemplate command creates a new server template that is based on an existing custom HTTP server representation.

Target object

Required parameters

-templateName
Specifies the name of the server template that you want to create. (String, required)
-serverName
Specifies the server from which to base the template. (String, required)
-nodeName
Specifies the node on which the specified server runs. (String, required)
-description
Specifies a description for the template.
-templateLocation
Specifies the location where you want to place the template.

Return value

This command returns the configuration ID of a new template.

Batch mode example usage

  • Using Jacl:
    $AdminTask createForeignServerTemplate{-templateName weblogic_new -serverName xdtest1 -nodeName xdnode1 
    -description "My new template"}
  • Using Jython String:
    AdminTask.createForeignServerTemplate('[-templateName weblogic_new -serverName xdtest1 -nodeName xdnode1 
    -description "My new template"]')
  • Using Jython List:
    AdminTask.createForeignServerTemplate(['-templateName','weblogic_new','-serverName','xdtest1','-nodeName',
    'xdnode1','-description','My new template'])

createLibertyServerTemplate command

The createLibertyServerTemplate command creates a new server template that is based on an existing Liberty profile server representation.

Target object

Required parameters

-templateName
Specifies the name of the server template that you want to create. (String, required)
-serverName
Specifies the server from which to base the template. (String, required)
-nodeName
Specifies the node on which the specified server runs. (String, required)
-description
Specifies a description for the template.
-templateLocation
Specifies the location where you want to place the template.

Return value

This command returns the configuration ID of a new template.

Batch mode example usage

  • Using Jacl:
    $AdminTask createLibertyServerTemplate{-templateName liberty_new -serverName xdtest1 -nodeName 
    xdnode1 -description "My new template"}
  • Using Jython String:
    AdminTask.createLibertyServerTemplate('[-templateName liberty_new -serverName xdtest1 -nodeName 
    xdnode1 -description "My new template"]')
  • Using Jython List:
    AdminTask.createLibertyServerTemplate(['-templateName','liberty_new','-serverName','xdtest1','-nodeName',
    'xdnode1','-description','My new template'])

createJBossServerTemplate command

The createJBossServerTemplate command creates a new server template that is based on an existing JBoss server representation.

Target object

Required parameters

-templateName
Specifies the name of the server template that you want to create. (String, required)
-serverName
Specifies the server from which to base the template. (String, required)
-nodeName
Specifies the node on which the specified server runs. (String, required)
-description
Specifies a description for the template.
-templateLocation
Specifies the location where you want to place the template.

Return value

This command returns the configuration ID of a new template.

Batch mode example usage

  • Using Jacl:
    $AdminTask createJBossServerTemplate{-templateName jboss_new -serverName xdtest1 -nodeName xdnode1
     -description "My new template"}
  • Using Jython String:
    AdminTask.createJBossServerTemplate('[-templateName jboss_new -serverName xdtest1 -nodeName xdnode1 
    -description "My new template"]')
  • Using Jython List:
    AdminTask.createJBossServerTemplate(['-templateName','jboss_new','-serverName','xdtest1','-nodeName',
    'xdnode1','-description','My new template'])

createTomCatServerTemplate command

The createTomCatServerTemplate command creates a new server template that is based on an existing Apache Tomcat server representation.

Target object

Required parameters

-templateName
Specifies the name of the server template that you want to create. (String, required)
-serverName
Specifies the server from which to base the template. (String, required)
-nodeName
Specifies the node on which the specified server runs. (String, required)
-description
Specifies a description for the template.
-templateLocation
Specifies the location where you want to place the template.

Return value

This command returns the configuration ID of a new template.

Batch mode example usage

  • Using Jacl:
     $AdminTask createTomCatServerTemplate{-templateName tomcat_new -serverName xdtest1 -nodeName 
    xdnode1 -description "My new template"}
  • Using Jython String:
    AdminTask.createTomCatServerTemplate('[-templateName tomcat_new -serverName xdtest1 -nodeName 
    xdnode1 -description "My new template"]')
  • Using Jython List:
    AdminTask.createTomCatServerTemplate(['-templateName','tomcat_new','-serverName','xdtest1','-nodeName',
    'xdnode1','-description','My new template'])

createWasCEServerTemplate command

The createWasCEServerTemplate command creates a new server template that is based on an existing WebSphere® Application Server Community Edition server representation.

Target object

Required parameters

-templateName
Specifies the name of the server template that you want to create. (String, required)
-serverName
Specifies the server from which to base the template. (String, required)
-nodeName
Specifies the node on which the specified server runs. (String, required)
-description
Specifies a description for the template.
-templateLocation
Specifies the location where you want to place the template.

Return value

This command returns the configuration ID of a new template.

Batch mode example usage

  • Using Jacl:
    $AdminTask createWasCEServerTemplate{-templateName wasce_new -serverName xdtest1 -nodeName 
    xdnode1 -description "My new template"}
  • Using Jython String:
    AdminTask.createWasCEServerTemplate('[-templateName wasce_new -serverName xdtest1 -nodeName 
    xdnode1 -description "My new template"]') 
  • Using Jython List:
    AdminTask.createWasCEServerTemplate(['-templateName','wasce_new','-serverName','xdtest1',
    '-nodeName','xdnode1','-description','My new template'])

createWebLogicServerTemplate command

The createWebLogicServerTemplate command creates a new server template that is based on an existing BEA WebLogic server representation.

Target object

Required parameters

-templateName
Specifies the name of the server template that you want to create. (String, required)
-serverName
Specifies the server from which to base the template. (String, required)
-nodeName
Specifies the node on which the specified server runs. (String, required)
-description
Specifies a description for the template.
-templateLocation
Specifies the location where you want to place the template.

Return value

This command returns the configuration ID of a new template.

Batch mode example usage

  • Using Jacl:
    $AdminTask createWebLogicServerTemplate{-templateName weblogic_new -serverName xdtest1 
    -nodeName xdnode1 -description "My new template"}
  • Using Jython String:
    AdminTask.createWebLogicServerTemplate('[-templateName weblogic_new -serverName xdtest1 
    -nodeName xdnode1 -description "My new template"]')
  • Using Jython List:
    AdminTask.createWebLogicServerTemplate(['-templateName','weblogic_new','-serverName','xdtest1',
    '-nodeName','xdnode1','-description','My new template'])