You can use the Jython or Jacl scripting languages to configure servers in your environment. The commands and parameters in the ConfigArchiveOperations group can be used to export or import server configurations and entire cell configurations. The ConfigArchiveOperations command group for the AdminTask object includes the following commands:
Use the exportServer command to export the server configuration to a node that is defined in the configuration archive.
The exportServer command virtualizes the server configuration and exports a server to a configuration archive. This process breaks any existing associations between the server configurations in the configuration archive and the configurations in the system. This process also removes applications from the server that you specify, breaks the relationship between the server that you specify and the core group of the server, cluster, or service integration bus member.
The exportServer command exports the metadata file of the node where the server resides. You can use this information later when you import the configuration archive to verify that the target node is compatible to the node from which you are exporting the server.ship.
Target object None
Parameters and return values
Examples
Batch mode example usage:
$AdminTask exportServer {-archive c:\myServer.ear -nodeName node1 -serverName server1}
AdminTask.exportServer('[-archive c:\myServer.ear -nodeName node1 -serverName server1]')
AdminTask.exportServer(['-archive', 'c:\myServer.ear', '-nodeName', 'node1', '-serverName', 'server1'])
Interactive mode example usage:
$AdminTask exportServer {-interactive}
AdminTask.exportServer ('[-interactive]')
AdminTask.exportServer (['-interactive'])
Use the exportWasprofile command to export the entire cell configuration to a configuration archive. The exportWasprofile command does not work between the distributed and z/OS platforms.
Target object None
Parameters and return values
Examples Batch mode example usage:
$AdminTask exportWasprofile {-archive c:\myCell.car}
AdminTask.exportWasprofile('[-archive c:\myCell.car]')
AdminTask.exportWasprofile(['-archive', 'c:\myCell.car'])
Interactive mode example usage:
$AdminTask exportWasprofile {-interactive}
AdminTask.exportWasprofile ('[-interactive]')
AdminTask.exportWasprofile (['-interactive'])
Use the importServer command to import a server that resides in a configuration archive to the system. This command imports all the server scope configurations defined in the configuration archive to system configuration.
Target object None
Parameters and return values
Examples
Batch mode example usage:
$AdminTask importServer {-archive c:\myServer.ear -nodeInArchive node1 -serverInArchive server1}
AdminTask.importServer('[-archive c:\myServer.ear -nodeInArchive node1 -serverInArchive server1]')
AdminTask.importServer(['-archive', 'c:\myServer.ear', '-nodeInArchive', 'node1', '-serverInArchive', 'server1'])
Interactive mode example usage:
$AdminTask importServer {-interactive}
AdminTask.importServer ('[-interactive]')
AdminTask.importServer (['-interactive'])
Use the importWas profile command to import a cell configuration in the configuration archive to the system. Only a base single server configuration is supported for this command. The importWasprofile command does not work between the distributed and z/OS platforms.
Target object None
Parameters and return values
Examples Batch mode example usage:
$AdminTask importWasprofile {-archive c:\myCell.car}
AdminTask.importWasprofile('[-archive c:\myCell.car]')
AdminTask.importWasprofile(['-archive', 'c:\myCell.car'])
Interactive mode example usage:
$AdminTask importWasprofile {-interactive}
AdminTask.importWasprofile ('[-interactive]')
AdminTask.importWasprofile (['-interactive'])