Starting an instance with the agt_service utility

If Replication Agent is installed on a Windows system, you can use the agt_service utility to run Replication Agent as a Windows service. The Replication Agent instance starts in the start-up state that you specified when you created the Windows service. If you did not specify a start-up state, the Replication Agent instance starts in its default Admin state.

NoteSet the SYBASE environment before you invoke the Replication Agent agt_service utility. See “Preparing to use the utilities” for more information.

StepsStarting Replication Agent using the agt_service utility

  1. Open an operating system command window on the Replication Agent host machine.

  2. At the operating system prompt, navigate to the Replication Agent bin directory:

    cd %SYBASE%\RAX-15_5\bin
    

    Here, %SYBASE% is the path to the Replication Agent installation directory.

  3. In the Replication Agent bin directory, invoke the agt_service utility to start a Windows service for the Replication Agent instance:

    agt_service -start inst_name
    

    where inst_name is the name of the Replication Agent instance assigned to the Windows service when it was created. This is also the name of the Windows service. For example, to start the Replication Agent instance named “my_ra” with the Windows service name of “my_ra”:

    agt_service -start my_ra
    

See “Using the agt_service utility” for more information.