+

Search Tips   |   Advanced Search

Registering nodes with the job manager using commands

Configure the flexible management environment by registering application servers that are registered with administrative agents, or by registering deployment managers as nodes on the job manager. After you register nodes with the job manager, we can submit and manage jobs.

We must configure a flexible management environment, consisting of a job manager, and optionally an administrative agent for the application server node to register. Start the job manager and the administrative agent processes before registering nodes or deployment managers with the job manager.

The identity under which the administrative agent server is running must have at least the monitor role for the profile of the managed application server node. Otherwise, when you attempt to register the node with the job manager, registration fails with the ADMN0022E message.

Ensure that the administrative agent or deployment manager version number is not higher than the version number of any job manager with which the administrative agent or deployment manager is registered. A job manager can manage a node at an equal or lesser version number than the job manager. For example, a Version 8 job manager can manage Version 8 and 7 nodes. A Version 7 job manager can manage Version 7 nodes. The fix pack portion of the version number does not matter; for example, a Version 7.0.0.3 job manager can manage a node at Version 7.0.0.9, which is Version 7 with fix pack 9 installed.

A job manager can manage a Version 8 or Version 7 deployment manager that has a Version 6 federated node. A deployment manager that is registered with a job manager can manage a mixed version cell. Using the job manager, we can submit jobs that manage any resources in the mixed version cell, including resources on a Version 6 federated node.

We can administer multiple application servers that run customer applications from a management profile containing an administrative agent. The administrative agent provides a single console to administer the application servers.

We can coordinate management actions among multiple deployment managers, asynchronously administer multiple unfederated application servers, and submit jobs to start servers from a management profile containing a job manager. To begin using the job manager to run jobs, register the application server and deployment manager nodes as managed nodes of the job manager.

Use the following steps to register profiles containing administrative agents as nodes on the job manager.

  1. Register the application server with the administrative agent if it is not yet registered.

    Run the registerNode command from the bin directory for the administrative agent server to register a node with the administrative agent. When you run the command, the stand-alone node is converted into a node that the administrative agent manages. The administrative agent and the node being registered must be on the same system. We can only run the command on an unfederated node. If the command is run on a federated node, the command exits with an error.

    If the console or the management EJB applications of the application server being registered are enabled, the node registration process disables them.

    Use the registerNode command utility to register the application server profile with the administrative agent, as the following command demonstrates:

      bin>registerNode -profilePath /AppServer/profiles/AppSrv01 -host localhost -conntype SOAP -port 8878

  2. Launch wsadmin.sh.

    Navigate to the profile_root/profiles/myAdminAgent/bin directory and use the following command to connect wsadmin.sh to the administrative agent process:

      wsadmin -profileName myAdminAgent -lang jython

  3. Register the node as a node on the job manager.

    If the node to register contains an administrative agent, use the registerWithJobManager command and the following parameters to register a node as a node on the job manager.

    parameter descriptions. Run registerWithJobManager to
    Parameter Description Data type
    -managedNodeName Name of the node that is registered with the administrative agent. If the node is a dmgr profile, specify the node name of the deployment manager. (Required) String
    -host Optionally specifies the hostname of the job manager. String
    -port Optionally specifies the administrative port number to use. The default secure port number is 9943. The default unsecure port number is 9960.
    -user Optionally specifies the connector login user name. String
    -password Optionally specifies the password for the connector login user name. String
    -alias Optionally specifies an alias for the node. The job manager uses this name instead of the value of the managedNodeName parameter to register the node. Use this parameter if the new node has the same name of a node that is registered with the job manager. String
    -startPolling Optionally specifies whether to start polling after registering the node. Specify false to disable polling. The default value is true. Boolean
    -autoAcceptSigner Optionally specifies whether to automatically accept the signer provided by the server. Specify false to disable this option. The default value is true. Boolean

    The following sample command registers the AppSvr01 application server profile with the job manager:

      AdminTask.registerWithJobManager('[-host jobMgrHost -managedNodeName AppSvr01]')

    The following sample command registers the DMGR01 dmgr profile with the job manager:

      AdminTask.registerWithJobManager('[-host jobMgrHost -managedNodeName DMGR01]')

  4. Optional: Repeat the registerWithJobManager command to register additional profiles as nodes on the job manager.


Results

The node of interest is registered with the job manager when the system successfully runs the registerWithJobManager command.


What to do next

Submit, monitor, and manage jobs for the nodes that are registered with the job manager.


Related concepts

  • Administrative agent
  • Job manager


    Related tasks

    Create management profiles with administrative agents

    Create management profiles for job managers

  • ManagedNodeAgent (AdminTask)
  • AdministrativeJobs (AdminTask)