1

Closed

Circular Logging not set correctly

description

Download today's build:
Last Update 3.12.2012
Version 1.3.7

Circular Logging is not enabled using the command:
ExPerfWiz.ps1 -server <name> -circular -full -maxsize 250 -threads

When I run the script, I can verify it is entering the 2008R2. However, it enters the if($circular), sets the command line with -bincirc, but then it traverses into the $Windows2008R2 check and the command line used there specifies -f bin (instead of -bincirc)
if ($Windows2008 -or $Windows2008R2)
{
    if ($circular)
    {
        $commandString = "logman create counter -n Exchange_Perfwiz -cf Exchange_Perfwiz.Config -s $ServerName -f bincirc -max $maxsize -cnf -si " + $interval + " -o " + $filepath + $ServerName + "_" + $rolenames + "_Circular"
    }
    If ($Windows2008R2)
    {
        #Win2k8 R2 installed
        $commandString = "logman create counter -n Exchange_Perfwiz -cf Exchange_Perfwiz.Config -s $ServerName -f bin -cnf 0 -max $maxsize -si " + $interval + " -rf " + $duration + " -o " + $filepath + $ServerName + "_" + $rolenames
    }
    Elseif ($Windows2008)
Closed Oct 28, 2014 at 3:53 AM by brenle

comments