Top
Systemwalker Software Configuration Manager Reference Guide
FUJITSU Software

1.4.10 swcfmg_script_execute (Script Execution Command)

Description

Executes scripts for managed servers.

Synopsis

[Windows]

swcfmg_script_execute.exe

-userid <user ID> -ip <IP address> -script <script path> [-reboot]

[Linux]

swcfmg_script_execute

-userid <user ID> -ip <IP address> -script <script path> [-reboot]

Options

-userid <User ID>

Performs script execution. Specify the user to be the job administrator of the scripts executed for the user ID. The user must be a tenant administrator, tenant user, or a dual-role administrator that holds privileges to execute the scripts for the specified server.

-ip <IP address>

Specify the server to execute the scripts for the IP address.

-script <Script path>

Specify the script to execute for the script path.

You can specify the execution method by specifying the options below:

-reboot

This option restarts the server after script execution. If this option is omitted, servers are not restarted.


After this command completes, script execution is executed as a job. The job ID of the job to be executed is output to the standard output.

Return value

Return value

Meaning

0

The command has terminated normally.

10

A parameter error has occurred.

20

The specified I/O path is incorrect.

50

The file description is incorrect.

70

The specified user or server is incorrect.

81

You do not have the privileges required to apply scripts.

100

Systemwalker Software Configuration Manager is not running.

103

Connection to the directory service failed.

104

The operation is not permitted for the admin server.

200

Setup has not been performed.

255

A system error has occurred.

Command location

Admin server

[Windows]

<Systemwalker Software Configuration Manager installation directory>\SWCFMGM\bin

[Linux]

/opt/FJSVcfmgm/bin

Privilege required

[Windows]

[Linux]

Notes

Example

[Windows]

swcfmg_script_execute.exe -userid user001 -ip 192.168.1.1 -script C:\work\script.bat

[Linux]

swcfmg_script_execute -userid user001 -ip 192.168.1.1 -script /tmp/script.sh