Grouping nodes in a flexible management environment using wsadmin scripting

Define groups of nodes to simplify large environment configurations. Node groups allow you to submit jobs to multiple nodes.

Before you begin

Create a job manager and register one or more nodes in a flexible management environment. Verify that the job manager process is running.

About this task

É possível coordenar ações de gerenciamento entre vários gerenciadores de implementação, administrar de forma assíncrona vários servidores de aplicativos não associados e enviar tarefas para iniciar servidores de um perfil de gerenciamento que contém um gerenciador de tarefas. Para começar a utilizar o gerenciador de tarefas para executar tarefas, registre os nós do servidor de aplicativos e do gerenciador de implementação como nós gerenciados do gerenciador de tarefas.

Node groups can be used to improve your system administration, including easy management of branch office systems and server farms. For example, a business has 1000 global store locations, and each location has three application servers. Each store location is connected to the business headquarters data center. The business manages all systems and runs jobs from the business headquarters. In this scenario, the business can easily manage the branch offices by creating one node group per continent.

Procedure

  1. Launch the wsadmin tool.
    Navigate to the app_server_root/bin directory and run the following command to launch the wsadmin tool and connect to the job manager process:
    wsadmin -profileName myJobManager -lang jython
  2. Create a node group.
    Use the createManagedNodeGroup command to create a new node group in your flexible management configuration:
    AdminTask.createManagedNodeGroup('-groupName European_Branch_Offices
      -description "Management group for all European branch offices"') 
  3. Add nodes to the node group.
    Use the addMemberToManagedNodeGroup command to add nodes to the new group. Each node can belong to one or more groups. The following example commands add the Hursley_office, Berlin_office, Warsaw_office, and Paris_office nodes to the European_Branch_Offices node group:
    AdminTask.addMemberToManagedNodeGroup('-groupName European_Branch_Offices -managedNodeNameList
      "[Hursley_Node01][Berlin_Node01][Warsaw_Node01][Paris_Node01]"')
  4. Optional: Verify that the system added the nodes to the node group.
    Use the getManagedNodeGroupMembers command to display the nodes for the node group of interest, as the following example displays:
    AdminTask.getManagedNodeGroupMembers('-groupName European_Branch_Offices')

    The command returns a list of node names that are registered with the node group of interest, as the following sample output displays:

    "[Hursley_Node01][Berlin_Node01][Warsaw_Node01][Paris_Node01]"

Results

A node group with node group members exists in your flexible management configuration.

What to do next

Use the job manager to submit, monitor, and manage jobs for your node groups.


Ícone que indica o tipo de tópico Tópico de Tarefa



Ícone de registro de data e hora Última atualização: July 9, 2016 7:58
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_7nodetogroup
Nome do arquivo: txml_7nodetogroup.html