You can issue commands to start or stop running the DataSync Agent for ServiceNow from a command line interface on supported Windows and Linux devices.
When running the agent interactively, through the agent.sh/agent.bat convenience scripts or runConsole.sh/runConsole.bat commands, it is advised to always terminate the Agent as documented below with Ctrl+C. This allows the interactive agent session to exit gracefully.
Prerequisites
First, you will need to install the DataSync for ServiceNow Agent.
Linux
Start running your DataSync for ServiceNow Agent (Linux)
To start running the DataSync for ServiceNow Agent on your Linux device, follow these steps:
Change your current directory to Perspectium_Replicator_Agent
Open a terminal window and change your current directory to the directory where you installed your DataSync for ServiceNow Agent files. Then, change your current directory to Perspectium_Replicator_Agent.
Execute the Agent start command
Execute the following command to start running your DataSync for ServiceNow Agent:
bin/startDaemon.sh start
Stop running your DataSync for ServiceNow Agent (Linux)
To start running the DataSync for ServiceNow Agent on your Linux device, follow these steps:
Change your current directory to Perspectium_Replicator_Agent
Open a terminal window and change your current directory to the directory where you installed your DataSync for ServiceNow Agent files. Then, change your current directory to Perspectium_Replicator_Agent.
Execute the Agent stop command
Execute the following command to stop running your DataSync for ServiceNow Agent:
bin/stopDaemon.sh start
Windows
Start running your DataSync for ServiceNow Agent (Windows)
To start running the DataSync for ServiceNow Agent on your Windows device, follow these steps:
Run the startService.bat file
Navigate to the directory where you installed your DataSync for ServiceNow Agent files. Then, navigate to the bin directory and double-click to run the startService.bat file, which will initiate the running of your DataSync for ServiceNow Agent in the background.
Stop running your DataSync for ServiceNow Agent (Windows)
To stop running the DataSync for ServiceNow Agent on your Windows device, follow these steps:
Run the stopService.bat file
Navigate to the directory where you installed your DataSync for ServiceNow Agent files. Then, navigate to the bin directory and double-click to run the stopService.bat file, which will initiate the running of your DataSync for ServiceNow Agent.