Running Exchange Load Generator as a Command-Line Program


Topic Last Modified: 2008-02-04

There are several tasks or actions that you can run for Exchange Load Generator by using the command-line program LoadGenCmd.exe. One of the key tasks is to generate the generic configuration file. You must do this in order to set up the adjustable parameters for the test.

When you start Exchange Load Generator at a command prompt, you must indicate if you want to initialize users or run a simulation. You cannot do these tasks from the same command. You must run Exchange Load Generator separately for each task. Additionally, you must create user accounts before generating a configuration file.

To run Exchange Load Generator at a command prompt, locate the LoadGenCmd.exe program, which is in the directory where Exchange Load Generator was installed. Click Start, click Run, and type cmd. If it is required, change the directory path to the path of the LoadGenCmd.exe program, and continue with running the applicable tasks.

The syntax for running Exchange Load Generator as a command-line program is as follows:

LoadGenCmd [Action Argument] [Configuration Argument] 

The configuration argument is Config [filename] = Config file (default is /c) LoadGenConfig.xml. The following table presents action arguments with their examples of use.


Action Argument Example of use Description


/h or /?

The help for the command-line program


/l counter.xml

Load performance counters


/u counter.xml

Unload performance counters


/add trace log

Add trace listeners


/sup console

Suppress trace listeners


/ens *.msg

Make sure that message files are formatted correctly and can be opened successfully



Generate a generic configuration file



Initialize mailbox stores



Prepare the public store



Run load simulation


Community Additions