| 1 |
@echo off |
| 2 |
rem |
| 3 |
rem DAPLtest server - usage: dt-svr dapl-provider [ -D [dbg-bit-mask] ] |
| 4 |
rem |
| 5 |
SETLOCAL |
| 6 |
|
| 7 |
rem set DAT_OVERRIDE=C:\DAT\dat.conf |
| 8 |
set DT=dapl2test.exe |
| 9 |
|
| 10 |
%DT% -h > Nul 2>&1 |
| 11 |
if not "%ERRORLEVEL%" == "1" ( |
| 12 |
echo %0: ERR - %DT% not in exec path? |
| 13 |
exit /B %ERRORLEVEL% |
| 14 |
) |
| 15 |
rem To debug dapl2test - use dapl2testd.exe with ibnic0v2d |
| 16 |
|
| 17 |
rem which Dapl provider? |
| 18 |
|
| 19 |
if "%1" == "" ( |
| 20 |
echo usage: dt-svr dapl-provider [ -D [dbg-bit-mask] ] |
| 21 |
echo. |
| 22 |
echo Where: dapl-provider can be [ ibal, scm, cma or %SystemDrive%\DAT\dat.conf provider name ] |
| 23 |
exit /B 1 |
| 24 |
) |
| 25 |
|
| 26 |
if "%1" == "ibal" set DEV=ibnic0v2 |
| 27 |
if "%1" == "scm" set DEV=ibnic0v2-scm |
| 28 |
if "%1" == "cma" set DEV=ibnic0v2-cma |
| 29 |
if "%DEV%" == "" set DEV=%1 |
| 30 |
|
| 31 |
rem '-D' enables full debug output? |
| 32 |
rem '-D hex-bit-mask' enables selective debug output - see manual.htm for details. |
| 33 |
if "%2" == "-D" ( |
| 34 |
if "%3" == "" ( |
| 35 |
set X=0xfffff |
| 36 |
) else ( |
| 37 |
set X=%3 |
| 38 |
) |
| 39 |
) else ( set X= ) |
| 40 |
|
| 41 |
if not "%X%" == "" ( |
| 42 |
set DAT_OS_DBG_TYPE=%X% |
| 43 |
set DAT_DBG_LEVEL=%X% |
| 44 |
set DAT_DBG_TYPE=%X% |
| 45 |
set DAPL_DBG_TYPE=%X% |
| 46 |
set DAPL_DBG_LEVEL=%X% |
| 47 |
) else ( |
| 48 |
set DAT_DBG_TYPE=1 |
| 49 |
) |
| 50 |
|
| 51 |
rem start a dapltest server on the local node - server is waiting for |
| 52 |
rem dapltest 'client' to issue dapltest commands (dt-cli.bat). |
| 53 |
rem Client runs 'dt-cli provider IP-addr stop' to shutdown this dapltest server. |
| 54 |
|
| 55 |
echo %DT% -T S -d -D %DEV% |
| 56 |
|
| 57 |
%DT% -T S -D %DEV% |
| 58 |
|
| 59 |
echo %0 - %DT% [%DEV%] server exit... |
| 60 |
|
| 61 |
ENDLOCAL |
| 62 |
exit /B %ERRORLEVEL% |