NPLB Care Packages for Linux and Windows
Care Packages
http://www.ironbits.net/files/llrnet-1core-linux.rar - for Linux, single core, make copies into another directory for mulit-cores
http://www.ironbits.net/files/llrnet-4core-win.rar - for Winders - 4 core version ready to go
http://www.ironbits.net/files/llrnet-8core-win.rar - for Winders - 8 core version ready to go
For Linux, cd into each directory and run ./llrnet
For Winders, cd into each directory and run llrnet.exe
or you can use this script for Winders versions
(assuming the location for the directories PATH is as follows C:\dcprojects\NPLB\Port8000\... )
Put this script in C:\dcprojects\NPLB and call it Port8000nplb.bat
@echo off
start "NPLB-1" /D C:\dcprojects\NPLB\Port8000\NPLB1 cmd.exe /C llrnet.exe
start "NPLB-2" /D C:\dcprojects\NPLB\Port8000\NPLB2 cmd.exe /C llrnet.exe
start "NPLB-3" /D C:\dcprojects\NPLB\Port8000\NPLB3 cmd.exe /C llrnet.exe
start "NPLB-4" /D C:\dcprojects\NPLB\Port8000\NPLB4 cmd.exe /C llrnet.exe
start "NPLB-5" /D C:\dcprojects\NPLB\Port8000\NPLB5 cmd.exe /C llrnet.exe
start "NPLB-6" /D C:\dcprojects\NPLB\Port8000\NPLB6 cmd.exe /C llrnet.exe
start "NPLB-7" /D C:\dcprojects\NPLB\Port8000\NPLB7 cmd.exe /C llrnet.exe
start "NPLB-8" /D C:\dcprojects\NPLB\Port8000\NPLB8 cmd.exe /C llrnet.exe
For Vista, you can use this script (Vista allows you to set affinity for your cores :) )
Put this in C:\dcprojects\NPLB and call it Port8000nplb.bat
@echo off
start "NPLB-1" /D C:\dcprojects\NPLB\Port8000\NPLB1 /AFFINITY 1 cmd.exe /C llrnet.exe
start "NPLB-2" /D C:\dcprojects\NPLB\Port8000\NPLB2 /AFFINITY 2 cmd.exe /C llrnet.exe
start "NPLB-3" /D C:\dcprojects\NPLB\Port8000\NPLB3 /AFFINITY 4 cmd.exe /C llrnet.exe
start "NPLB-4" /D C:\dcprojects\NPLB\Port8000\NPLB4 /AFFINITY 8 cmd.exe /C llrnet.exe
start "NPLB-5" /D C:\dcprojects\NPLB\Port8000\NPLB5 /AFFINITY 10 cmd.exe /C llrnet.exe
start "NPLB-6" /D C:\dcprojects\NPLB\Port8000\NPLB6 /AFFINITY 20 cmd.exe /C llrnet.exe
start "NPLB-7" /D C:\dcprojects\NPLB\Port8000\NPLB7 /AFFINITY 40 cmd.exe /C llrnet.exe
start "NPLB-8" /D C:\dcprojects\NPLB\Port8000\NPLB8 /AFFINITY 80 cmd.exe /C llrnet.exe
Edit the above scripts for the amount of cores you have and directory paths etc.
On the *-win.rar files, just be sure to edit each llr-clientconfig.txt at the following line 'usename=', for each core/directory you use, everything else is good to go :)
username = "LaurenU2" ; put your LoginID/UserName/Screen Name here
It don't get any easier than that folks. Join in the fun, it's only TWO days, then back to what you were doing :D
For Linux folks, here is a setup I use for starting the clients using screen
You need to change LoginID to your LoginID, create a nplb directory, then inside that directory, nplb1, nplb2, nplb3, nplb4 (for 4 cores etc)
Edit the llr-clientconfig.txt for you LoginID/UserName/Screen Name
Create a script called start8000, make sure you chmod 775 start8000 and put it in the root of your home directory
#!/bin/sh
screen -O -S clients -c ~/.screenrc-8000
Create another file called .screenrc-8000 and put it in the root of your home directory (note the . character at the beginning of the filename (makes it hidden))
startup_message off
autodetach on
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'
#chdir
#screen -t shell 0
chdir /home/LoginID/nplb/8000/nplb1
screen -t 8000-1 1 ./llrnet
chdir /home/LoginID/nplb/8000/nplb2
screen -t 8000-2 2 ./llrnet
chdir /home/LoginID/nplb/8000/nplb3
screen -t 8000-3 3 ./llrnet
chdir /home/LoginID/nplb/8000/nplb4
screen -t 8000-4 4 ./llrnet
Done :cheers:
See you there! :train: