You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »


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 or agent.bat convenience scripts or runConsole.sh or 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.

Failure to do so may result in a lingering Java process which must be killed or terminated manually.


Prerequisites


(warning) First, you will need to install the DataSync for ServiceNow Agent.


Linux 

Running your DataSync for ServiceNow Agent in the Foreground 

Start

Execute the following command to start running your DataSync for ServiceNow Agent:

 ./runConsole.sh 

Stop 

Execute the following keys to stop running your DataSync for ServiceNow Agent:

Ctrl+C


Running your DataSync for ServiceNow Agent in the Background

Start

Execute the following command to start running your DataSync for ServiceNow Agent:

bin/startDaemon.sh start

Stop

Execute the following command to stop running your DataSync for ServiceNow Agent:

	bin/stopDaemon.sh start




Windows

Running your DataSync for ServiceNow Agent in the Foreground

Start

Double-click the following file to initiate the running of your DataSync for ServiceNow Agent:

	Agent.bat

Stop

Execute the following keys to stop running your DataSync for ServiceNow Agent:

Ctrl+C

Running your DataSync for ServiceNow Agent in the Background

Start

Double-click the following file to initiate the running of your DataSync for ServiceNow Agent:

	startService.bat

Stop

Double-click the following file to stop the running of your DataSync for ServiceNow Agent:

	stopService.bat