Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Command Reference


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.

Table 1‒2: Commands you can execute remotely and how to execute them

Command name

Method of remote execution

Add a logical host name to a job, jobnet or job group name

Specify a logical host name with the AJSMANAGERHOST environment variable#1

Specify a logical host name with an option

ajschange

Yes

Yes

No

ajschgjob

Yes

Yes

No

ajschgnet

Yes

Yes

No

ajsentry

Yes

Yes

No

ajsintrpt

Yes

Yes

No

ajskill

Yes

Yes

No

ajsleave

Yes

Yes

No

ajsplan

Yes

Yes

No

ajsplanout

Yes

Yes

No

ajsprint

Yes

Yes

No

ajsrerun

Yes

Yes

No

ajsshow

Yes

Yes

No

ajsstatus

No

Yes

Yes#2

ajssuspend

Yes

Yes

No

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.