Command Line Switches#
There are several command line switches available for using EventReporter from the command line. To use these switches you need administrative rights.
-hShow command line help-vShow version information and whether the service is installed-iInstall service-uRemove (uninstall) service-i <CustomServiceName>Install service with a custom service name-u <CustomServiceName>Uninstall a service with a custom service name-rRun as console application-r -oRun once as console application
If you install the service, you can start and stop it with commands such as
net start, net stop, sc start, sc stop, or PowerShell
(Start-Service / Stop-Service). By using the -r switch, you run it
only on the command line. When you close the command line, the program will
stop working.
The -v switch gives you information about the version of the service.
Custom service name examples:
evntslog.exe -i CustomServiceNameevntslog.exe -u CustomServiceName
You can import Adiscon Config Format (cfg) configuration files via the command line as well. The syntax is quite easy. Simply execute the EventReporter configuration client and append the name of the configuration file.
Sample:
CFGEvntSLog.exe example.cfg
or
CFGEvntSLog.exe “example.cfg”
After this is executed, you will see the splash screen of the configuration client and then the import dialogue, which you have to confirm manually.
For doing a silent import, the /f parameter has to be appended. This will
look like this:
CFGEvntSLog.exe "example.cfg" /f