ManagedNodeAgent


Use Jython to configure the job manager with wsadmin. Use the commands and parameters in the ManagedNodeAgent group to configure, query, and manage the job manager configuration for managed nodes.

Use the following commands to configure managed node agents for the job manager:

 

getRuntimeRegistrationProperties

Display runtime properties for a managed node and respective job manager.

Target object None

Required parameters

-managedNodeName

Name of the managed node of interest. (String, required)

Optional parameters

-jobManagerUUID

Specifies the UUID of the job manager of interest. (String, optional)

-host

Host name to use to identify the job manager. The default value is localhost. (String, optional)

-port

Administrative console port number to use to identify the job manager. If security is enabled, use the secure port number. If security is disabled, use the unsecure port number. The default secure port number is 9943, and the default unsecure port number is 9960. (String, optional)

Return value

Batch mode example usage

Interactive mode example usage

 

isPollingJobManager

Determine whether a managed node is polling a job manager.

Target object None

Required parameters

-managedNodeName

Name of the managed node of interest. (String, required)

Optional parameters

-jobManagerUUID

Specifies the UUID of the job manager of interest. (String, optional)

-host

Host name to use to identify the job manager. The default value is localhost. (String, optional)

-port

Administrative console port number to use to identify the job manager. If security is enabled, use the secure port number. If security is disabled, use the unsecure port number. The default secure port number is 9943, and the default unsecure port number is 9960. (String, optional)

Return value

The command does not return output.

Batch mode example usage

Interactive mode example usage

AdminTask.isPollingJobManager('-interactive')

 

listJobManagers

List each job manager that a specific managed is registered with.

Target object: None

Required parameters

-managedNodeName

Name of the managed node of interest. (String, required)

Optional parameters

-jobManagerUUID

Specifies the UUID of the job manager of interest. (String, optional)

-host

Host name to use to identify the job manager. The default value is localhost. (String, optional)

-port

Administrative console port number to use to identify the job manager. If security is enabled, use the secure port number. If security is disabled, use the unsecure port number. The default secure port number is 9943, and the default unsecure port number is 9960. (String, optional)

Return value

The command returns a list of job manager properties, including the UUID and host name for the job manager. Depending on the properties defined during managed node registration, the command also might display the port number, connection type, and user name. The value of the password property is not displayed.

Batch mode example usage

Jython string:

AdminTask.listJobManagers('-managedNodeName myJobManagedNode')

Use Jython list:

AdminTask.listJobManagers('-managedNodeName', 'myJobManagedNode')

Interactive mode example usage

 

registerWithJobManager

Register a managed node or dmgr with the job manager.

Target object None

Required parameters

-managedNodeName

Name of the managed node of interest. (String, required)

Optional parameters

-host

Host name of the job manager. The default value is localhost. (String, optional)

-port

Specifies the job manager admin console port number. If security is enabled, use the secure port number. If security is disabled, use the unsecure port number. The default secure port number is 9943, and the default unsecure port number is 9960. (String, optional)

-user

User name to log into the job manager. The user must have

Administrator role for the job manager. (String, optional)

-password

Password to log into the job manager. (String, optional)

-alias

Alias of the managed node to enroll. (String, optional)

-startPolling

Whether the system polls the job manager after it enrolls the managed node. (Boolean, optional)

-autoAcceptSigner

Whether to automatically accept the signer provided by the server.

Specify false to disable this option. The default value is true. (Boolean, optional)

Return value: The configuration ID of the job manager

'JobMgr-JOB_MANAGER-2f7d5a29-e601-417b-9124-7737be64dd0a'

Use Jython string...

AdminTask.registerWithJobManager('[-host myJobMgrHost -managedNodeName myJobManagedNode -alias endpoint1]')

Use Jython list...

AdminTask.registerWithJobManager(['-host', 'myJobMgrHost', '-managedNodeName myJobManagedNode', '-alias', 'endpoint1'])

Interactive mode...

AdminTask.registerWithJobManager('-interactive')

 

setRuntimeRegistrationProperties

Set runtime properties for managed nodes and job managers.

Target object None

Optional parameters

-managedNodeName

Name of the managed node of interest. If we do not specify the UUID, the system applies the properties to each managed node. (String, optional)

-jobManagerUUID

Specifies the UUID of the job manager of interest. If we do not specify the jobManagerUUID parameter, the system applies the properties to each job manager. (String, optional)

-host

Host name to use to identify the job manager. The default value is localhost. (String, optional)

-port

Administrative console port number to use to identify the job manager. If security is enabled, use the secure port number. If security is disabled, use the unsecure port number. The default secure port number is 9943, and the default unsecure port number is 9960. (String, optional)

-interval

Interval, in seconds, that the system waits before the managed node of interest polls the job manager. (String, optional)

-size

Maximum size of the thread pool per managed node. (String, optional)

Return value

The command does not return output.

Batch mode example usage

Interactive mode example usage

 

startPollingJobManager

Instruct a managed node to begin polling the job manager.

Target object None

Required parameters

-managedNodeName

Name of the managed node of interest. (String, required)

Optional parameters

-jobManagerUUID

Specifies the UUID of the job manager of interest. (String, optional)

-host

Host name to use to identify the job manager. The default value is localhost. (String, optional)

-port

Administrative console port number to use to identify the job manager. If security is enabled, use the secure port number. If security is disabled, use the unsecure port number. The default secure port number is 9943, and the default unsecure port number is 9960. (String, optional)

Return value

The command does not return output.

Batch mode example usage

Interactive mode example usage

 

stopPollingJobManager

Instruct a managed node to stop polling the job manager.

Target object None

Required parameters

-managedNodeName

Name of the managed node of interest. (String, required)

Optional parameters

-jobManagerUUID

Specifies the UUID of the job manager of interest. (String, optional)

-host

Host name to use to identify the job manager. The default value is localhost. (String, optional)

-port

Administrative console port number to use to identify the job manager. If security is enabled, use the secure port number. If security is disabled, use the unsecure port number. The default secure port number is 9943, and the default unsecure port number is 9960. (String, optional)

Return value

The command does not return output.

Batch mode example usage

Interactive mode example usage

 

unregisterWithJobManager

Remove managed node registration from the job manager configuration.

Target object None

Required parameters

-managedNodeName

Name of the managed node of interest. (String, required)

Optional parameters

-host

Host name of the job manager. The default value is localhost. (String, optional)

-port

Specifies the job manager admin console port number. If security is enabled, use the secure port number. If security is disabled, use the unsecure port number. The default secure port number is 9943, and the default unsecure port number is 9960. (String, optional)

-user

User name to log into the job manager. The user must have

Administrator role for the job manager. (String, optional)

-password

Password to log into the job manager. (String, optional)

Return value The command returns the configuration ID of the job manager, as the following output displays:

'JobMgr-JOB_MANAGER-0aa85922-bd9a-4ca6-b72c-467cd256b9b3'

Batch mode example usage

Interactive mode example usage





 

Related tasks

Administer jobs in a flexible management environment using scripting
Registering nodes with the job manager using scripting
Grouping nodes in a flexible management environment using scripting
Running admin jobs using scripting
Running admin jobs across multiple nodes using scripting
Scheduling future admin jobs using scripting
Manage admin jobs using scripting

 

Related

AdministrativeJobs
ManagedNodeGroup
JobManagerNode