ManagedNodeGroup (AdminTask) (deprecated)
We can use the Jython scripting language to configure managed node groups with wsadmin.sh. Use commands in the ManagedNodeGroup command group to create and manage node groups. Create managed node groups to submit jobs from the job manager to one or many managed nodes.
Deprecated feature: The ManagedNodeGroup commands have been deprecated in WAS v8.0. Use commands in the TargetGroup command group, instead of commands in the ManagedNodeGroup command group. TargetGroup commands provide function that replaces ManagedNodeGroup commands. TargetGroup commands use Target instead of ManagedNode in the command names. For example, the addMemberToManagedNodeGroup command in the ManagedNodeGroup command group is deprecated and replaced with the addMemberToTargetGroup command in the TargetGroup command group.depfeat
The following commands are in the ManagedNodeGroup command group:
- addMemberToManagedNodeGroup (deprecated)
- createManagedNodeGroup (deprecated)
- deleteManagedNodeGroup (deprecated)
- deleteMemberFromManagedNodeGroup (deprecated)
- getManagedNodeGroupMembers (deprecated)
- getManagedNodeGroupInfo (deprecated)
- queryManagedNodeGroups (deprecated)
- modifyManagedNodeGroupInfo (deprecated)
addMemberToManagedNodeGroup (deprecated)
The addMemberToManagedNodeGroup command adds a managed node to an existing managed node group.
Target object: None.
Required parameters
- -groupName
- Name of the managed node group of interest. (String, required)
- -managedNodeNameList
- List of managed node names to add to the managed node group of interest. (String [ ], required)
Return value
The command does not return output.
Batch mode example
- Jython string...
AdminTask.addMemberToManagedNodeGroup('-groupName myGroup -managedNodeNameList "[node1 node2 node3]"')
- Jython list:
AdminTask.addMemberToManagedNodeGroup(['-groupName', 'myGroup', '-managedNodeNameList', '[node1 node2 node3]'])
Interactive mode
- Jython:
AdminTask.addMemberToManagedNodeGroup('-interactive')
createManagedNodeGroup (deprecated)
The createManagedNodeGroup command creates a new managed node group.
Target object: None.
Required parameters
- -groupName
- Name of the managed node group of interest. (String, required)
Optional parameters
- -description
- Specifies a description of the managed node group. (String, optional)
Return value
The command does not return output.
Batch mode example
- Jython string...
AdminTask.createManagedNodeGroup('-groupName myNewGroup')
- Jython list:
AdminTask.createManagedNodeGroup(['-groupName', 'myNewGroup'])
Interactive mode
- Jython:
AdminTask.createManagedNodeGroup('-interactive')
deleteManagedNodeGroup (deprecated)
The deleteManagedNodeGroup command deletes a managed node group from the configuration.
Target object: None.
Required parameters
- -groupNameList
- List of managed node groups to delete. (String [ ], required)
Return value
The command does not return output.
Batch mode example
- Jython string...
AdminTask.deleteManagedNodeGroup('-groupNameList "[group1 group2 group3]"')
- Jython list:
AdminTask.deleteManagedNodeGroup(['-groupNameList', '[group1 group2 group3]'])
Interactive mode
- Jython:
AdminTask.deleteManagedNodeGroup('-interactive')
deleteMemberFromManagedNodeGroup (deprecated)
The deleteMemberFromManagedNodeGroup command removes a managed node from a specific managed node group.
Target object: None.
Required parameters
- -groupName
- Name of the managed node group of interest. (String, required)
- -managedNodeNameList
- List of managed node Unique Uniform Identifiers (UUID) to delete from the managed node group of interest. (String [ ], required)
Return value
The command does not return output.
Batch mode example
- Jython string...
AdminTask.deleteMemberFromManagedNodeGroup('-groupName myNewGroup -managedNodeNameList "[node1 node2 node3]"')
- Jython list:
AdminTask.deleteMemberFromManagedNodeGroup(['-groupName', 'myNewGroup', '-managedNodeNameList', '[node1 node2 node3]'])
Interactive mode
- Jython:
AdminTask.deleteMemberFromManagedNodeGroup('-interactive')
getManagedNodeGroupMembers (deprecated)
The getManagedNodeGroupMembers command displays the managed nodes that belong to a specific managed node group.
Target object: None.
Required parameters
- -groupName
- Name of the managed node group of interest. (String, required)
Return value
The command returns a list of managed node UUIDs that belong to the managed node group of interest.
Batch mode example usage
- Jython string...
AdminTask.getManagedNodeGroupMembers('-groupName myNewGroup')
- Jython list:
AdminTask.getManagedNodeGroupMembers(['-groupName', 'myNewGroup'])
Interactive mode
- Jython:
AdminTask.getManagedNodeGroupMembers('-interactive')
getManagedNodeGroupInfo (deprecated)
The getManagedNodeGroupInfo command displays configuration information for the managed node group of interest.
Target object: None.
Required parameters
- -groupName
- Name of one or more managed node groups of interest. (String [ ], required)
Return value
The command returns a list of attributes for each managed node group. Each list of attributes displays the name, size, and description of the managed node group, and whether all group members have an administrative agent.
Batch mode example
- Jython string...
AdminTask.getManagedNodeGroupInfo('-groupName "[group1 group2 group3]"')
- Jython list:
AdminTask.getManagedNodeGroupInfo(['-groupName', '[group1 group2 group3]'])
Interactive mode
- Jython:
AdminTask.getManagedNodeGroupInfo('-interactive')
queryManagedNodeGroups (deprecated)
The queryManagedNodeGroups command displays each managed node group in the configuration that meets specific query criteria.
Target object: None.
Required parameters
- -maxReturn
- Maximum size of the node group data to display.
Optional parameters
- -query
- Settings for which the command queries the managed node groups. We can query for size, description, groupName, and jobType. (String, optional)
- -validate
- Whether to validate the query string. (Boolean, optional)
Return value
The command returns a list of managed node group names.
Batch mode example
- Jython string...
AdminTask.queryManagedNodeGroups('-maxReturn 10 -query "size=2" -validate true')
- Jython list:
AdminTask.queryManagedNodeGroups(['-maxReturn', '10', '-query', 'size=2', '-validate', 'true'])
Interactive mode
- Jython:
AdminTask.queryManagedNodeGroups('-interactive')
modifyManagedNodeGroupInfo (deprecated)
The modifyManagedNodeGroupInfo command modifies the description for a managed node group.
Target object: None.
Required parameters
- -groupName
- Name of the managed node group of interest. (String, required)
- -description
- New description for the managed node group of interest. (String, required)
Return value
The command does not return output.
Batch mode example
- Jython string...
AdminTask.modifyManagedNodeGroupInfo('-groupName myNewGroup -description "New description of myNewGroup"')
- Jython list:
AdminTask.modifyManagedNodeGroupInfo(['-groupName', 'myNewGroup', '-description', '"New description of myNewGroup"'])
Interactive mode
- Jython:
AdminTask.modifyManagedNodeGroupInfo('-interactive')
Related tasks
Registering nodes with the job manager using commands Grouping nodes in a flexible management environment Running administrative jobs Running administrative jobs across multiple nodes Scheduling future administrative jobs Manage administrative jobs
AdministrativeJobs (AdminTask) JobManagerNode (AdminTask) ManagedNodeAgent (AdminTask) TargetGroup (AdminTask)