1.1.7 Remote execution of a command
You can execute a command remotely from a JP1/AJS3 - Manager host to another JP1/AJS3 - Manager host.
Using the remote command execution function, you can output information about the operation of units or the current operating environment for the scheduler service to the scheduler service on the target logical host.
The standard output, standard error output, and return values for the command executed remotely are reflected on the machine from which it is executed. Messages that may appear depend on the language type selected when the JP1/AJS3 is started on the target host.
The following table shows the commands you can execute remotely and how to execute them.
- Legend:
-
Yes: Can be used.
No: Cannot be used.
- Note
-
See Table 1-6 in 1.4 Environment variables for the list of environment variables used during command execution.
- #1
-
Do not set the AJSMANAGERHOST environment variable when starting JP1/AJS3.
- #2
-
Use the -h option.
To execute a command remotely, start the JP1/AJS3 on the command target host. You must also use the JP1/Base user management function to set user authentication, user mapping, and other necessary information.
For details on how to set the user management function of JP1/Base in a Windows host, see 3. Setup in the JP1/Automatic Job Management System 3 Configuration Guide. For details on how to set the user management function of JP1/Base in a UNIX host, see 13. Setup in the JP1/Automatic Job Management System 3 Configuration Guide.