14.3.2 Procedure for setting up a unit-attribute profile
In a unit-attribute profile, specify the upper-level unit-attribute inheritance function and the execution-user fixing function. For details about the upper-level unit-attribute inheritance function, see 6.4.1(4) Access permission for creating or copying a unit, or making a release entry in the Job Management Partner 1/Automatic Job Management System 3 System Design (Work Tasks) Guide. For details about the execution-user fixing function, see 6.4.1(5) Job execution user in the Job Management Partner 1/Automatic Job Management System 3 System Design (Work Tasks) Guide.
To set a unit-attribute profile:
-
Copy the model file to the environment-settings file storage directory.
The model file and the environment-settings file storage directory are as follows:
- Model file
-
/etc/opt/jp1ajs2/conf/ajsprof_AJSROOT1_unit.conf.model
- Environment-settings file storage directory
-
For a physical host:
/etc/opt/jp1ajs2/conf
For a logical host:
shared-directory/jp1ajs2/conf
-
Rename the copy of the file to the predetermined name.
Rename the file to:
ajsprof_scheduler-service-name_unit.conf
-
Use an editor such as vi to edit the file.
Specify the necessary settings in the unit-attribute profile.
For details about the unit-attribute profile, see 3.2.2 Unit-attribute profile in the Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 2.
- Cautionary note:
-
The following information is set in the model file:
- Full name of the unit to which the file is applied: /example
- Upper-level unit-attribute inheritance function: The owner and JP1 resource group are inherited from the upper-level unit.
- Execution-user fixing function: The owner of the unit for which the execution-user fixing function has been set is fixed as the execution user.
If this model file is applied as is when a unit named /example exists, the subordinate units operate as follows:
- Subordinate units defined for the example unit inherit the owner and JP1 resource group defined for the /example unit.
- Subordinate jobs of the /example unit are always executed by the owner set for the /example unit.
Before you apply the unit-attribute profile, edit it as needed to fit the operation.
-
Apply the unit-attribute profile settings.
Do the following to enable the unit-attribute profile settings.
-
If the JP1/AJS3 service is not running:
Start the JP1/AJS3 service. The unit-attribute profile settings for all scheduler services configured on the relevant host are enabled.
-
If the JP1/AJS3 is running but the scheduler service is not:
Do either of the following:
- Start the scheduler service. The unit-attribute profile settings for the scheduler service you started are enabled.
- Execute the following command:
ajsprofalter -F scheduler-service-name -t unit -m set
The unit-attribute profile settings for the scheduler service, which are specified with the -F option, are enabled.
-
If the JP1/AJS3 service and the scheduler service are both running:
Execute the following command:
ajsprofalter -F scheduler-service-name -t unit -m set
The unit-attribute profile settings for the scheduler service, which are specified with the -F option, are enabled.
For details about the ajsprofalter command, see ajsprofalter in 2. Commands in the manual Job Management Partner 1/Automatic Job Management System 3 Command Reference 1.
-