I am hoping that someone out there still working with FAST ESP like me will find this information useful.

Recently I had to replicate customer's problems and it required more than 5 servers and similarly configured another set of ESP was also needed.

As you know you need to fulfil a few requirements like disabling ipv6 and having environment variable JAVA_HOME defined and so forth.

In the past I wasted my time manually doing all that, but this time I finally decided to automate it.

Below I put together the powershell script that does everything except for JDK install and adding "Log-On as a Service" privileges.

You can achieve them using group policy if your servers belong to a domain controller.

 

Here is the script.

 

$allhosts="localhost"

if(! $env:FASTSEARCH)
{



# changing time zone to your local time zone
Invoke-Command -cn $allhosts {tzutil /s "Tokyo Standard Time"}

# install Visual C++ 2005 SP1 Redistributable Package
.\vcredist.bat

# disable daylight saving.
icm $allhosts { Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation DynamicDaylightTimeDisabled 1}

# java environment variable setup
icm $allhosts { [Environment]::SetEnvironmentVariable("JAVA_HOME", "C:\Program Files (x86)\Java\jdk1.6.0_39", "Machine")}

# if you don't have this key, it will create one for you.
# icm $allhosts { New-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation DynamicDaylightTimeDisabled -PropertyType DWord -Value 0xFF}


# copy license file
$allhosts | %{cp .\fastsearch.lic -Destination \\${_}\c$\$env:HOMEPATH}

# disable ipv6
icm $allhosts { New-ItemProperty HKLM:\SYSTEM\CurrentControlSet\services\TCPIP6\Parameters DisabledComponents -PropertyType DWord -Value 0xFF}
# I had to restart pc to fully disable ipv6
restart-computer


}
 
 

In the powershell above, I am running vcredist.bat.

vcredist.bat should look like this.

 
vcredist_x86.exe /q:a /c:"VCREDI~1.EXE /q:a /c:""msiexec /i vcredist.msi /qn"" "
 

you will need to download the Microsoft Visual C++ 2005 Redistributable Package (x86) from Microsoft web site below.

http://www.microsoft.com/en-us/download/details.aspx?id=3387

a few reminder about the script.

  • you need to have your own fastsearch.lic
  • you will need to change your timezone accordingly

Once it finishes, it will restart your computer. This step was required for the disablement of ipv6 to take effect.

When your machine comes up, go ahead and kick the ESP installer and by now ESP install prerequisite should be met.