Show/Hide Toolbars

WinSyslog

Navigation: Reference

Command Line Switches

Scroll Prev Top Next More

There are several command line switches available for using the agent via the command line.

 

-v

Show version information

-i

Install service

-u

Remove (uninstall) service

-r

Run as console application

-r -o

Run ONCE as console application

 

If you install the service, you can start and stop the service with the "net start" and "net stop" commands. 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.

 

 

You can install the Service with a custom name by using the command line. Use

 

<servicefile> -i "Service Name" to install the Service with a custom name, and use

<servicefile> -u "Service Name" to uninstall the Service.

 

 

You can import Adiscon Config Format (cfg) configuration files via the commandline as well. The syntax is quite easy. Simply execute the configuration client and append the name of the configuration file. This could look like this:

 

mwclient.exe example.cfg

Sample for MonitorWare Agent

CFGEvntSLog.exe example.cfg

Sample for EventReporter

WINSyslogClient.exe example.cfg

Sample for WinSyslog

RSyslogConfigClient.exe example.cfg

Sample for RSyslog Windows Agent

 

or

 

mwclient.exe "example.cfg"

Sample for MonitorWare Agent

CFGEvntSLog.exe "example.cfg"

Sample for EventReporter

WINSyslogClient.exe "example.cfg"

Sample for WinSyslog

RSyslogConfigClient.exe "example.cfg"

Sample for RSyslog Windows Agent

 

After this is executed, you will se 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" (without the quotes) parameter has to be appended. This will look like this:

 

mwclient.exe "example.cfg" /f

 

In this case, the filename of the configuration has to be used with the quotes.