Top
Systemwalker Operation Manager V17.0.1 Reference Guide

7.21 mjrmtjob Remote Machine Command/Shell Script Execution Command

Synopsis

[Windows]

mjrmtjob.exe -h <host name on remote machine> [-p <OS on remote machine>] [-l <char set on remote machine>] [-u <user name for exec on remote machine>] -d <cur dir for exec on remote machine> "<command/script and parms...>"

[UNIX]

mjrmtjob -h <host name on remote machine > [-p <OS on remote machine>] [-l <char set on remote machine>] [-u <user name for exec on remote machine>] -d '<cur dir for exec on remote machine' '<command/script and parms...>'

Description

Execute commands or scripts on a remote machine where Systemwalker Operation Manager has not been installed.

Options

-h <host name on remote machine>

Specify the host name on the remote machine.

Specify the value using up to 64 bytes.

-p <OS on remote machine>

Specify the type of operating system on the remote machine.

The valid values are: "Linux", "Solaris", and "Windows". The value is not case-sensitive.

If this option is omitted, the operating system on the server that executed the mjrmtjob command is used.

-l <char set on remote machine>

Specify the character set used on the remote machine.

The valid values are: "ASCII", "SJIS", "EUC", and "UTF-8". The operating system determines the character set that can be specified.

The character set used for command and script parameters, standard output, and standard error output is converted based on the specified value.

If this option is omitted or an invalid character set is specified, the command will run (without character set conversion) using the character set used on the server that executed the mjrmtjob command .

The table below lists the character sets that can be specified for each operating system on the remote machine. The value is not case-sensitive.

OS

Valid character sets

Windows

ASCII or SJIS

Solaris

ASCII, SJIS, EUC, or UTF-8

Linux

ASCII or UTF-8

-u <user name for exec on remote machine>

Specify the name of the user to be used for command or script execution on the remote machine.

Specify the value using up to 64 bytes. If using the Active Directory, a local account cannot be specified.

If this option is omitted, the user who executed the mjrmtjob command is used.

-d '<cur dir for exec on remote machine>' [Windows]

Specify the full path of the directory on the remote machine in which to execute the command or script. Specify the value using up to 64 bytes.

-d '<cur dir for exec on remote machine>' [UNIX]

Specify the full path of the directory on the remote machine in which to execute the command or script.

Specify the value using up to 64 bytes, enclosed in single quotation marks (').

Operand

'<command/script and parms...>' [Windows]

Specify the command or script to be executed as a job on the remote machine, followed by its parameters.

Specify the value enclosed in double quotation marks (").

'<command/script and parms...>' [UNIX]

Specify the command or script to be executed as a job on the remote machine, followed by its parameters.

Specify the value enclosed in single quotation marks (').

Return Values

Return value

Meaning

201-256

The command processing has failed or Jobscheduler has returned this completion code.
Refer to "21.1 Jobscheduler Completion Code" for details.

Other than the above

Value returned by the executed command/script.

Command Location

Linux

/usr/bin

Cautions

Examples [Windows]

Examples [UNIX]