Does GeoEvent Simulator have a headless mode?

330
2
Jump to solution
03-02-2023 01:16 PM
GaryLSheppardJr
New Contributor III

I have a development scenario in which I would like to run GeoEvent Simulator without the GUI, so that I can run it automatically. Is there a way to run GeoEvent Simulator in headless mode, such as on the command line, without any user interaction required?

0 Kudos
1 Solution

Accepted Solutions
RJSunderman
Esri Regular Contributor

If you open a command-line window and change directory to where the GeoEventSimulator.exe is found (C:\Program Files\ArcGIS\Server\GeoEvent is the default) you can run the simulator from a command line with a variety of arguments. Executing the command GeoEventSimulator.exe --help will display the arguments in a Windows dialog.

GeoEventSimulator_CLI.png

View solution in original post

2 Replies
RJSunderman
Esri Regular Contributor

If you open a command-line window and change directory to where the GeoEventSimulator.exe is found (C:\Program Files\ArcGIS\Server\GeoEvent is the default) you can run the simulator from a command line with a variety of arguments. Executing the command GeoEventSimulator.exe --help will display the arguments in a Windows dialog.

GeoEventSimulator_CLI.png

RJSunderman
Esri Regular Contributor

Including the above as text to support keyword search.

GeoEvent Simulator Command Line Arguments

Usage options:
GeoEventSimulator.exe [Server:value] [Port:number] [Filename:value] [Skip:number] [Events:number] [Per:number] [Continuous:flag] [Play:value] [TimeField:number] [SetTime:flag]
GeoEventSimulator.exe /?
GeoEventSimulator.exe

Usage examples:
start GeoEventSimulator.exe Server:localhost Port:5565 Filename:vehicles.csv Skip:3 Events:2 Per:5000 Continuous:Once Play:Step TimeField:1 SetTime:Yes
start GeoEventSimulator.exe Server:localhost Port:5565 Filename:vehicles.csv Skip:0 Events:1 Per:1000 Continuous:Cont Play:Play TimeField:0 SetTime:Yes
start GeoEventSimulator.exe Server:localhost Port:5565 Filename:vehicles.csv TimeField:3 RealRateSpeed:200 Continuous:Once Play:play
start GeoEventSimulator.exe Server:localhost Port:5565 Filename:vehicles.csv Play:Play
start GeoEventSimulator.exe Filename:vehicles.csv Play:Play
start GeoEventSimulator.exe Port:5566 Filename:vehicles.csv Play:Play
start GeoEventSimulator.exe

Description:
Using the command line arguments you can run the simulation and optionally:
1. Connect to <ServerHostName>:<ServerPort>.
2. Load simulation file located in <Filename> and skip the first <SkipFirstLineCount> lines.
3. With PlayAction=Play - Start sending <EventsCount> events per <PerMS> milliseconds,
until reaching the last event or continously in a loop, depending on <ContinuousPlayMode>.
4. With PlayAction=Step - Send the first <EventsCount> events once.

Arguments:
Server, ServerHostName Specifies the server host name. Default: {localhost}
Port, ServerPort Specifies the server port number. Default: {5565}
Filename Specifies the full path to the simulation file to load
Skip, SkipFirstLineCount Specifies the number of lines to skip when loading the simulation file. Default: {0}
Events, EventsCount Specifies how many Events to send per interval. Default: {1}
Per, PerMS Specifies the constant interval value in milliseconds. Default: {1000}
Continuous, ContinuousPlayMode Specifies whether to to simulate events in a continuous loop. Default: {Continuous}
Options for Continuous: {Continuous | Cont | C | Yes | Y | True | T}
Options for Once; {Once | O | No | N | False | F}
Play, PlayAction Specifies the play action. Default: {Stop}
Options: {Play | Step | Stop}
TimeField Specifies the zero based index of the Time Field. Default: {1}
RealRateSpeed Specifies the real rate speed factor in percentages. Switches the simulator to Real Rate mode. Default: {100}
SetTime, SetTimeToCurrentTime Specifies whether to override the Time Field value with the current time (in the ISO 8601 format). Default: {No}
Options for yes: {Yes | Y | True | T}
Options for no : {No | N | False | F}
/?, ?, -h, -help, --h, --help Shows this help


Other usage options:
GeoEventSimulator.exe [ServerHostName] [ServerPort] [Filename] [SkipFirstLineCount] [EventsCount] [PerMS] [ContinuousPlayMode] [PlayAction]

Other Usage examples:
start GeoEventSimulator.exe localhost 5565 vehicles.csv 3 2 5000 Once Step
start GeoEventSimulator.exe localhost 5565 vehicles.csv 0 1 1000 Cont Play
start GeoEventSimulator.exe localhost 5565 vehicles.csv 0 1 1000 Continuous
start GeoEventSimulator.exe localhost 5565 vehicles.csv 0 1 1000
start GeoEventSimulator.exe localhost 5565 vehicles.csv 0 1
start GeoEventSimulator.exe localhost 5565 vehicles.csv 0
start GeoEventSimulator.exe localhost 5565 vehicles.csv
start GeoEventSimulator.exe localhost 5565
start GeoEventSimulator.exe localhost
start GeoEventSimulator.exe