Hitachi

uCosminexus Application Server Command Reference Guide


mngautorun (Set up/canceling the set up of autostart and autorestart)

Organization of this page

Format

When setting up the auto start of Management Server and Administration Agent
In Windows
mngautorun [once] {server|agent|both} [-sync [-timeout synchronous-execution-timeout-time]]
In UNIX
mngautorun [once] {server|agent|both} [-runlevel <run level>] [-sync [-timeout synchronous-execution-timeout-time]]
When setting the auto start and auto restart setting of Management Server and Administration Agent
In Windows
mngautorun respawn {server|agent|both} [-sync [-timeout synchronous-execution-timeout-time]]
In UNIX
mngautorun respawn {server|agent|both} [-runlevel run-level]
When cancelling the auto start and auto restart of Management Server and Administration Agent
In Windows
mngautorun -d
In UNIX
mngautorun -d

Functionality

Sets or cancels the auto start and auto restart settings of Management Server and Administration Agent. It can be used to do the following:

Note that this command is for Windows only.

Arguments

When no arguments are specified, the command's usage is displayed.

-d

Disables the auto start and auto restart of Management Server and Administration Agent.

once

Enables the auto start of Management Server or Administration Agent. The auto restart setting is not enabled. When both the once and respawn options are omitted, operations are performed such that the once option is specified.

respawn

Enables the auto start and auto restart of Management Server and Administration Agent. When both the once and respawn options are omitted, operations are performed assuming that the once option is specified.

server

Enables the auto start or auto restart of Management Server.

agent

Enables the auto start or auto restart of Administration Agent.

both

Enables auto start and auto restart of Management Server service and Administration Agent service, and sets a dependency relationship so that the Administration Agent starts before Management Server starts.

-runlevel

Specifies the run level for executing the auto start and auto restart. You can specify multiple run levels. This option is valid only for UNIX. For run level, see the OS document.

The following is an example of specification:

Example:

-runlevel 23456

If this option is omitted, the command assumes that 2 is set.

-sync

When executing the auto start or auto restart, enables the synchronous execution with the startup of Management Server and Administration Agent. In UNIX, you cannot specify this option, when you specify the respawn option.

-timeout synchronous-execution-timeout-time

Specify the waiting time (unit: seconds) until Management Server and Administration Agent starts, during auto start and auto restart, with the integer 0 or from 61 through 2147483. The process continues until the auto start of Management Server and Administration Agent, without an occurrence of a timeout. If you omit this option, the synchronous execution timeout is 120 (seconds). In UNIX, you cannot specify this option, when you specify the respawn option.

Return values

0:

The command is terminated normally.

1:

An error occurred at the time of execution.

2:

A syntax error occurred.

Input examples

Notes