User Tools

Site Tools


raagent_windows_start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

raagent_windows_start [2016/03/29 12:56] (current)
mark.english created
Line 1: Line 1:
 +
 +==== Windows Agent Startup ====
 +
 +Now let's start the agent. From the bin directory double click on the file Agent.bat:
 +
 +You should see several start up messages and in fact you'll be seeing everything that is being written
 +to the log file. Issue a control-c <hold down the control key and hit the c key at the same time> to terminate the agent.
 +
 +If you see streaming log contents then the agent is likely running. Hold on a second, just because it's running does not necessarily mean it's working properly. The default replicator agent configuration file is called //​agent.xml//​ and it's within the conf directory. By default, a message sharer has been configured to share the following message: ​
 +
 +<code dos>
 +'This is a simple message that is being echoed.'​
 +</​code>​
 +
 +Furthermore a subscriber has been configured to consume and log the message to the log. You should be able to find 
 +a log entry similar to the following in the log:
 +
 +<code winbatch>​
 +2014-09-08 10:​37:​21.265 example.echo - Received echoed message: This is a simple message that is being echoed.
 +</​code>​
 +
 +<WRAP round tip>
 +One way to determine if this message exchange has been successful is to open the log file using either notepad or
 +wordpad and doing a find or search on the string "​Received"​. If the message is found then the agent is functioning ​
 +as expected. Assuming that's the case we can now proceed with establishing the agent as a service to be started upon system start up.
 +</​WRAP>​
 +
 +=== Configure Restart ===
 +First, let's stop the agent by issuing the double clicking on //​StopAgent.bat//​.
 +You should see a message stating that the agent is being and finally stopped.
 +
 +<code dos>
 +Stopping Perspectium Replicator Agent...
 +Stopped Perspectium Replicator Agent.
 +</​code>​
 +
 +Double click on the file //​InstallAgent.bat//​ to install the agent as a service.
 +
 +That's it! Please refer to the [[replicator_agent_configuration|Replication Agent configuration]] documentation to further leverage the Perspectium Replicator Agent.
 +
 +===Checking Agent Version===
 +
 +To check what version of the Agent you are running you can use the following command in the command window from the agent directory.
 +
 +  bin\version.bat
 +
 +You could also double-click the version.bat file in the Agent'​s bin directory.
  
raagent_windows_start.txt ยท Last modified: 2016/03/29 12:56 by mark.english