Command Line Switches
Previous  Top  Next

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 import XML 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.xml
Sample for MonitorWare Agent
CFGEvntSLog.exe example.xml
Sample for EventReporter
WINSyslogClient.exe example.xml
Sample for WinSyslog


or

mwclient.exe "example.xml"
Sample for MonitorWare Agent
CFGEvntSLog.exe "example.xml"
Sample for EventReporter
WINSyslogClient.exe "example.xml"
Sample for WinSyslog


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.xml" /f

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