Using the agt_service utility

The Replication Agent agt_service utility is only applicable to Windows environments and can be used to:

To run the agt_service utility, invoke it as a command at the operating system prompt.

Syntax

agt_service[.cmd] 
[-install inst_name [-startup state] [-charset charset] [-maxmem mem] ] | 
[-remove inst_name ] | 
[-start inst_name ] |
[-stop inst_name ] |
[-h]

Parameters

-install inst_name

-startup state

-charset charset

-maxmem mem

-remove inst_name

-start inst_name

-stop inst_name

-h

Example

To create a Windows service for a Replication Agent instance named “my_ra” in Replicating state, enter the following command at the operating system prompt:

agt_service -install my_ra -startup replicate

Example

To remove a Windows service for a Replication Agent instance named “my_ra”, enter the following command at the operating system prompt:

agt_service -remove my_ra

Example

To start a Windows service for a Replication Agent instance named “my_ra”, enter the following command at the operating system prompt:

agt_service -start my_ra

See “Starting the Replication Agent” for more information about starting a Replication Agent instance.

Example

To stop a Windows service for a Replication Agent instance named “my_ra”, enter the following command at the operating system prompt:

agt_service -stop my_ra

See “Shutting down the Replication Agent instance” for more information about stopping a Replication Agent instance.