ajscsajobreg (Windows only)
- Organization of this page
Format
ajscsajobreg
-d service-linkage-definition-information-file-name or service-linkage-monitoring-definition-information-file-name
-n custom-job-name or custom-event-job-name
[-i icon-file-name]
[-f]
Description
This command registers the service linkage job or the service linkage monitoring job.
Execution privileges
Administrators privileges
Storage directory
JP1/AJS3 - View-installation-folder\bin\
Arguments
-d service-linkage-definition-information-file-name or service-linkage-monitoring-definition-information-file-name
Specify an absolute or relative path to the service linkage definition information file name or the service linkage monitoring definition information file name.
-n custom-job-name or custom-event-job-name
For a service linkage job, specify a custom job name.
For a service linkage monitoring job, specify a custom event job name.
The number of characters that can be specified is 1 to 7 (unit: byte).
Only the following characters can be specified.
-
English letters (Case-insensitive)
-
Numbers
-
- (Hyphen)
-
_ (Underscore)
When registering a service linkage job, a specified character string with @ added at the end is treated as the custom job name.
-i icon-file-name
Specify an absolute or relative path to the icon file name.
If this option is omitted, the default icon is used.
-f
A service linkage job or a service linkage monitoring job of the same name, if any, is forcibly overwritten and registered.
Notes
None.
Return values
|
0 |
Normal end |
|
Value other than 0 |
Abnormal end |
Example 1
Register a service linkage job under the following conditions:
-
Path to a service linkage job definition file: d:\temp\sldef01.json
-
Service linkage job name: awss3UL
-
Path to an icon file: Not specified (The default icon is used)
ajscsajobreg -d d:\temp\sldef01.json -n awss3UL
When a service linkage job has been successfully registered, the following is displayed.
KNBB4501-I The service linkage job has been registered. (awss3UL)
Example 2
Forcibly overwrite and register a service linkage job under the following conditions.
-
Path to a service linkage job definition file: d:\temp\sldef02.json
-
Service linkage job name: azbsDL
-
Path to an icon file: d:\icon\image01.gif
ajscsajobreg -d d:\temp\sldef02.json -n azbsDL -i d:\icon\image01.gif -f
When a service linkage job has been successfully registered, the following is displayed.
KNBB4501-I The service linkage job has been registered. (azbsDL)
Example 3
Register a service linkage monitoring job under the following conditions.
-
Path to a service linkage monitoring job definition information file: d:\temp\sldef03.json
-
Service linkage monitoring job name: awsm1
-
Path to an icon file: Not specified (The default icon is used)
ajscsajobreg -d d:\temp\sldef03.json -n awsm1
When a service linkage monitoring job has been successfully registered, the following is displayed.
KNBB4501-I The service linkage monitoring job has been registered. (awsm1)
Example 4
Forcibly overwrite and register a service linkage monitoring job under the following conditions.
-
Path to a service linkage monitoring job definition information file: d:\temp\slmondef04.json
-
Service linkage monitoring job name: azbsMON
-
Path to an icon file: d:\icon\image04.gif
ajscsajobreg -d d:\temp\sldef04.json -n azbsMON -i d:\icon\image04.gif -f
When a service linkage monitoring job has been successfully registered, the following is displayed.
KNBB4501-I The service linkage monitoring job has been registered. (azbsMON)