Commands for the CoreGroupManagement group of the AdminTask object
Use the Jython or Jacl scripting languages to manage deployed applications. The commands and parameters in the CoreGroupManagement group can be used to create and manage core groups. A core group is a high availability domain that consists of a set of processes in the same cell that can directly establish high availability relationships. A cell must contain at least one core group.
For more information about the AdminTask object, see the Commands for the AdminTask object article.
The following commands are available for the CoreGroupManagement group of the AdminTask object:
Command name: Description: Target object: Parameters and return values: Examples: createCoreGroup
The createCoreGroup command creates a new core group. The core group that you create contains no members. None
- Parameters:
- - coreGroupName
- The name of the core group that you are creating. (String required)
- Returns: None
Batch mode example usage:
Using Jacl
$AdminTask createCoreGroup {-coreGroupName MyCoreGroup}Using Jython string
AdminTask.createCoreGroup('[-coreGroupName MyCoreGroup]')
Interactive mode example usage:
Using Jacl
$AdminTask createCoreGroup {-interactive}Using Jython string
AdminTask.createCoreGroup ('[-interactive]')
deleteCoreGroup
The deleteCoreGroup command deletes an existing core group. The core group that you specify must not contain any members. We cannot delete the default core group. None
- Parameters:
- - coreGroupName
- The name of the existing core group that will be deleted. (String required)
- Returns: None
Batch mode example usage:
Using Jacl
$AdminTask deleteCoreGroup {-coreGroupName MyCoreGroup}Using Jython string
AdminTask.deleteCoreGroup('[-coreGroupName MyCoreGroup]')
Interactive mode example usage:
Using Jacl
$AdminTask deleteCoreGroup {-interactive}Using Jython string
AdminTask.deleteCoreGroup ('[-interactive]')
doesCoreGroupExist
The doesCoreGroupExist command returns a boolean value that indicates if the core group that you specify exists. None
- Parameters:
- coreGroupName
- The name of the core group. (String, required)
- Returns: A boolean value.
Batch mode example usage:
Using Jacl
$AdminTask doesCoreGroupExist {-coreGroupName MyCoreGroup}Using Jython string
AdminTask.doesCoreGroupExist('[-coreGroupName MyCoreGroup]')
Interactive mode example usage:
Using Jacl
$AdminTask doesCoreGroupExist {-interactive}Using Jython string
AdminTask.doesCoreGroupExist ('[-interactive]')
getAllCoreGroupNames
The getAllCoreGroupNames command returns a string that contains the names of all of the existing core groups None
- Parameters: None
- Returns: String array (String[ ])
Batch mode example usage:
Using Jacl
$AdminTask getAllCoreGroupNamesUsing Jython string
AdminTask.getAllCoreGroupNames()
Interactive mode example usage:
Using Jacl
$AdminTask getAllCoreGroupNames {-interactive}Using Jython string
AdminTask.getAllCoreGroupNames ('[-interactive]')
getCoreGroupNameForServer
The getCoreGroupNameForServer command returns the name of the core group in which the server that you specify is currently a member. None
- Parameters:
- - nodeName
- The name of the node that contains the server. (String, required)
- - serverName
- The name of the server. (String, required)
- Returns: The name of the core group that currently contains the server that you specified. (String)
Batch mode example usage:
Using Jacl
$AdminTask getCoreGroupNameForServer {-nodeName myNode -serverName myServer}Using Jython string
AdminTask.getCoreGroupNameForServer('[-nodeName myNode -serverName myServer]')
Interactive mode example usage:
Using Jacl
$AdminTask getCoreGroupNameForServer {-interactive}Using Jython string
AdminTask.getCoreGroupNameForServer ('[-interactive]')
getDefaultCoreGroupName
The getDefaultCoreGroupName command returns the name of the default core group. None
- Parameters: None
- Returns: String
Batch mode example usage:
Using Jacl
$AdminTask getDefaultCoreGroupNameUsing Jython string
AdminTask.getDefaultCoreGroupName()
Interactive mode example usage:
Using Jacl
$AdminTask getDefaultCoreGroupName {-interactive}Using Jython string
AdminTask.getDefaultCoreGroupName ('[-interactive]')
moveClusterToCoreGroup
The moveClusterToCoreGroup command moves all of the servers in a cluster that you specify from a core group to another core group. All of the servers in a cluster must be members of the same core group. None
- Parameters:
- - source
- The name of the core group that contains the cluster that you want to move. The core group must exist prior to running this command. The cluster that you specify must be a member of this core group. (String, required)
- - target
- The name of the core group where you want to move the cluster. (String, required)
- - clusterName
- The name of the cluster that you want to move. (String, required)
- Returns: None
Batch mode example usage:
Using Jacl
$AdminTask moveClusterToCoreGroup {-source OldCoreGroup -target NewCoreGroup -clusterName ClusterOne}Using Jython string
AdminTask.moveClusterToCoreGroup('[-source OldCoreGroup -target NewCoreGroup -clusterName ClusterOne]')
Interactive mode example usage:
Using Jacl
$AdminTask moveClusterToCoreGroup {-interactive}Using Jython string
AdminTask.moveClusterToCoreGroup ('[-interactive]')
moveServerToCoreGroup
The moveServerToCoreGroup command moves a server to a core group that you specify. When the server is added to the core group that you specify, it is removed from the core group where it originally resided. None
- Parameters:
- - source
- The name of the core group that contains the server that you want to move. The core group must already exist with the server that you specify being a member of the core group. (String, required)
- - target
- The name of the core group where you want to move the server. The core group that you specify must exist prior to running the command. (String, required)
- - nodeName
- The name of the node that contains the server that you want to move. (String, required)
- - serverName
- The name of the server that you want to move. (String, required)
- Returns: None
Batch mode example usage:
Using Jacl
$AdminTask moveServerToCoreGroup {-source OldCoreGroup -target NewCoreGroup -nodeName myNode -serverName myServer}Using Jython string
AdminTask.moveServerToCoreGroup('[-source OldCoreGroup -target NewCoreGroup -nodeName myNode -serverName myServer]')
Interactive mode example usage:
Using Jacl
$AdminTask moveServerToCoreGroup {-interactive}Using Jython string
AdminTask.moveServerToCoreGroup ('[-interactive]')
Related tasks
Using the AdminTask object for scripted administration Related reference
Commands for the AdminTask object