Sun Java System Application Server Enterprise Edition 8.1 2005Q2 High Availability Administration Guide

- Previous: Chapter 2 Installing and Setting Up High Availability Database
- Next: Customizing Management Agent Configuration

## Management Agent Command Syntax

The syntax of the management agent `ma` command is:

    ma [common-options]
    [ service-options]
    config-file

Where:

- common-options is one or more of the common options described in Management Agent Command Syntax.

- service-options is one of the Windows service options described in Management Agent Command Syntax.

- config-file is the full path to the management agent configuration file. For more information, see Customizing Management Agent Configuration.

Table 3–1 Management Agent Common Options

Option | Description | Default
--- | --- | ---
--define name=value-D | Assign value to property name, where property is one of the properties defined in Configuration File. This option can be repeated multiple times. | None
--help-? | Display help information. | False
--javahome path-j | Use Java Runtime Environment (1.4 or later) located at path. | None
--systemroot path-y | Path to the operating system root as normally set in %SystemRoot%. | None
--version-V | Display version information. | False

Management Agent Command Syntax describes options for starting the management agent as a Windows service. The -i, -r, and -s options are mutually exclusive; that is, use only one of them at a time.

On Windows, when specifying paths for property values in the configuration file or on the command line, escape file paths containing spaces with double quotes (`"`). Escape colon (`:`) drive separators, , and backslash (`\`) directory separators, with double quotes and a backslash, like this: `"\:` and `"\\`.

Table 3–2 Management Agent Service Options (Windows Only)

Option | Description | Default
--- | --- | ---
--install-i | Install the agent as a Windows service and start the service. Use only one of -i, -r, and -s options. | False
--name servicename-n | Use specified name for the service when running multiple agents on a host. | HADBMgmtAgent
--remove-r | Stop the service and delete the agent from the Windows service manger. Use only one of -i, -r, and -s options. | False
--service-s | Run the agent as a Windows service. Use only one of -i, -r, and -s options. | False

- Previous: Chapter 2 Installing and Setting Up High Availability Database
- Next: Customizing Management Agent Configuration

- © 2010, Oracle Corporation and/or its affiliates