SMP remote install and run on domain

phorensic

n00b
Joined
Jun 18, 2003
Messages
61
I run approximately 40 console clients on our domain here at work. I'm using Brian Turmelle's old remote installer modified for my use. However, this just allows you to use the single core console client. We recently replaced a large chunk of our single core P4's with Core 2 Duo's and I'm missing out on massive points just running two instances of the standard console client.

Obviously the client has to be hidden (not from task manager, but just from plain view). Also, since the SMP client has to be fully installed instead of just copied, that presents another problem. I'm thinking of using a combination of sysinternals pstools to do the work, but instead of wasting a lot of time I thought I would ask if anyone has figured out how to do this yet?

First step is to get it installed silently. I think I can use iPass to do that part, but then you have to run that special batch file to set up the client. That might present more problems. Second step is remotely firing up the client while suppressing any output, and then having the ability to shut down or restart the client.

Anyone done all this yet?
 
Alright here is a quick and dirty guide, I'm sure someone can update it or maybe I can when I have more experience with this.

Requirements:

.NET 2.0 per SMP Client requirements
Domain Admin credentials on remote machine
Sysinternals PsTools extracted to local %windir%\System32
Locally installed and configured FAH SMP Client

1) Copy your “C:\Program Files\Folding@Home Windows SMP Client V1.01” to the remote machine (ex. “\\remote-folder\c$\Program Files\Folding@Home Windows SMP Client V1.01”). Delete the machine specific files and folders on the remote machine: “\work” “FAHlog*.txt” “MyFolding.html” “queue.dat” “UILANG1.UDB” “Uninstall*.DAT” “unitinfo.txt”. Your client.cfg should be set up properly from the install on your local machine, if not it will prompt to go through the set up.
2) Copy “mpiexec.exe”, all of it’s dll’s, and “smpd.exe” to the remote machine’s %windir%\System32 directory.
3) Open up a command prompt on your local machine. Run:
psexec \\remote-folder “c:\Program Files\Folding@Home Windows SMP Client V1.01\smpd.exe” –install
4) Export your MPIEXEC domain credentials from the registry. Open up regedit, export the key “HKEY_CURRENT_USER\Software\MPICH” to a file (ex. mpi.reg). Then, while still in regedit, File->Connect Network Registry. Connect to the remote machine (ex. remote-folder), File->Import->mpi.reg->Select Computer: remote-folder, “information imported…”.
5) Run:
psexec \\remote-folder “c:\Program Files\Folding@Home Windows SMP Client V1.01\mpiexec.exe” –np 2 foo
This will test mpi, it will ask for your credentials, just press enter on the account to use your account, then type in your password. NOTE: it does not hide your password when you type it for some reason.
6) Everything should be installed now. Run:
psexec \\remote-folder –w “c:\Program Files\Folding@Home Windows SMP Client V1.01” “c:\Program Files\Folding@Home Windows SMP Client V1.01\fah.exe”
Note the –w option. This forces fah.exe to run in it’s directory and create all work unit files in there, otherwise everything gets created in %WINDIR%\System32.
7) Watch FAH SMP run on a remote machine silently! As far as I can tell, you need to let that CMD window stay open on your machine. I haven’t gone any further than this, so if you guys have any further input on this process that would be great. Also, notice that if your domain password expires and is changed, that you will have to re-export that registry key after first running the mpiexec –register again on your computer.
8) To kill the process, you must open another CMD window and execute: “pslist \\remote-folder” to find the PID of fah.exe, then run: pskill –t \\remote-folder [PID of fah] This is because a CTRL-C seems to have no effect.
 
Well, I'm only up to 6 SMP clients so far. I also found a caveat, when the user logs out of Windows it kills the client =(
 
I wonder if running it as a Service would rectify the logout issue? I'm probably wrong and someone will quickly let me know, but if you ran it as a service, it'll run as long as Windows is running (with the user logged on or not).

There is a pretty good guide on setting up as a Service in Windows here. Running as a Service is not officially supported, but may give you what you need.

 
I could never get the SMP client to run as a service. It just refused to fire up. I'm talking locally.

EDIT: oh, that guide you posted will probably help! Gonna try.
 
Back
Top