Top
Systemwalker Operation Manager  Reference Guide
FUJITSU Software

10.1.1 execasvr Application Startup Command

Synopsis

execasvr [/un:UserName] [/rc:nn /ri:nnnn]
        /ae:ExecuteAppli AppliParam

Description

The execasvr command activates any application installed on a server. The activated application runs in the background and is not displayed on-screen.

This command will end without waiting for the application to complete.

Parameters

/un:UserName

Specifies the right to be used to start an application by specifying the user name.

Specify the user name using up to 20 alphanumeric characters. Space characters and any special characters other than the hyphen (-) and the underscore (_) cannot be specified.

If omitted, the application will be started with the privileges of the user executing this command.

/rc:nn

Specifies the retry count in case an error occurs in application startup.

Specify an integer value between 0 and 99 for nn. Setting any other value results in an error. If omitted, no retry is performed.

/ri:nnnn

Specifies the retry interval in case an error occurs.

Specify an integer value between 0 and 9999 (in seconds) for nnnn. Setting any other value results in an error. The default value is 0.

This parameter is valid when 1 or a greater value is specified to nn in the /rc parameter.

/ae:ExecuteAppli

Specifies the application that you want to activate using an absolute path. Specify the application name to ExecuteAppli. If the application name contains a space character, enclose it in double quotation marks.

The total number of characters in ExecuteAppli including AppliParam must be no longer than 511 characters.

AppliParam

Specifies parameters for the application specified in ExecuteAppli. If more than one parameter is specified, put a space character between parameters. If a space is contained in any parameter, enclose it in double quotation marks.

Return Values

Return value

Meaning

0

Completed

Value other than 0

Abended

Command Location

Solaris

/opt/FJSVsnjss/bin

HP-UX

/opt/FHPsnjss/bin

AIX

/opt/FAIXsnjss/bin

Linux

/opt/FJSVsnjss/bin

Example

In this example, "/usr/local/bin/test" is activated, being appended with the parameter "test.txt".

execasvr /ae:/usr/local/bin/test test.txt

Execution Results/Output Format

After the command has been through processing, the information at command completion is output to the standard output.

The contents to be output are shown below:

[Process start time] MM-DD-YYYY HH:MM:SS
[Application] Name of the application activated
[Retry count] Number of retries performed
[Error] Error message
[Process end time] MM-DD-YYYY HH:MM:SS

In [Error], "None" is output if the command completed successfully. A message is output if the command is canceled or failed. For details on the messages, see the Systemwalker Operation Manager Message Guide.

If an error occurs before starting the application, a message is output in the following format:

[Process start time] MM-DD-YYYY HH:MM:SS
[Command error] Error message
[Process end time] MM-DD-YYYY HH:MM:SS

For details on the messages, see the Systemwalker Operation Manager Message Guide.

Cautions