Synopsis
mjdjadd [-sys subsystem-number](*1) hostgroup-name host-name [parameter]
[-sys subsystem-number] is an option of Systemwalker Operation Manager EE.
Description
The mjdjadd command adds a configuration host to the destination host group with the distributed job execution during its operation.
Option
-sys subsystem-number
In the system with multiple subsystems, this option is used to specify the subsystem that you want to operate. Specify the target subsystem number using a range of 0 to 9. If omitted, the default is subsystem 0.
Operands
hostgroup-name
Specifies the name of host group to which you want to add a configuration host.
host-name
Specifies the name of host to be added. The already registered host name cannot be added. Up to 100 hosts can be set in a single host group. The local host should not be specified for the host name.
parameter
Specifies the attribute and its values of the host to be added. This operand is optional.
The attribute, its values, and default value that can be specified are:
Max execution jobs (number of simultaneously executable jobs)
The range of possible values for Windows: 1-99
The range of possible values for UNIX: 1-999
Default: 10
The following is an example where to specify "Max Execution Jobs" as five.
maxexec=5
Return Values
Return Value | Meaning |
---|---|
0 | The command processing has terminated normally. |
Other than 0 | The command processing has failed. An error message is output. |
Command Location
Windows | <Systemwalker Operation Manager installation directory>\MpWalker.JM\bin |
Solaris | /usr/lib/mjes |
Privilege Required
System administrator (user belonging to the Administrator group or superuser) privileges are required.
Cautions
This command is executable only on the Systemwalker Operation Manager server (source server of the distributed job execution).
The option of "Enable distributed execution" cannot be changed during its operation.
The definition can be changed only when:
The queue is working as the distributed execution queue (that is, when the [Enable distributed execution] is selected in the [Create Queue] or [Edit Queue] window).
The Job Execution Control service/daemon is running.
The changes made on the definition are retained until the Job Execution Control function is activated in the initialization mode. Activating the Job Execution Control function in the initialization mode resets the settings for the distributed job execution to what are defined in the initialization file.
When you add a local host to the host group, do it from the [Define Operating Information] window, not by using this command. Otherwise, the distributed execution job may terminate abnormally with completion code 0x40000999, 1, or others.
Example
In the following example, the host "djhost2" is added to the host group "djgroup".
C:\>mjdjadd djgroup djhost2 maxexec=5 hostgroup = djgroup hostname = djhost0 maxexec = 20 state = ACT run = 2 hostname = djhost1 maxexec = 7 state = ACT run = 0 hostname = djhost2 maxexec = 5 state = ACT run = 0