Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMSLS.BAT Troubles

Status
Not open for further replies.
Feb 20, 2003
31
US
The saga continues, or at least it seems. We now know the SMSLS.BAT will run on the workstation but it bombs out at one point and I am not sure what it means. We are using the stock smsls.bat and I added some statements to it so we could see on a test machine what it does. I used a number system to count through from 1-23 and added a pause so it was easy to follow and it dies out after number 21. Any help with what this means.

@echo off
REM Copyright (C) 1994-1999 Microsoft Corporation
REM
REM echo Systems Management Server 2.0

REM Exit script if OS is unknown or if Windows Terminal Server
Echo 1
Pause
if %SMS_UNSUPPORTED_OS%. == TRUE. goto END
Echo 2
Pause
if not %WINSTATIONNAME%. == . goto END
Echo 3
Pause
if not .%OS%. == .Windows_NT. goto OK_TO_PROCEED
Echo 4
Pause
REM the OS is Windows NT, check for Processor Architecture
Echo 5
Pause
if .%PROCESSOR_ARCHITECTURE%. == .x86. goto CHECK_REMOTE_SESSION
Echo 6
Pause
if .%PROCESSOR_ARCHITECTURE%. == .ALPHA. goto CHECK_REMOTE_SESSION
Echo 7
Pause
REM Unsupported processor e.g. IA64, AMD64, MIPS, PPC
goto END

:CHECK_REMOTE_SESSION
if .%SESSIONNAME%. == .. goto OK_TO_PROCEED
echo 8
Pause
if /i .%SESSIONNAME%. == .Console. goto OK_TO_PROCEED
Echo 9
Pause
REM System is NT, and session name indicates this is a remote session
goto END

:OK_TO_PROCEED
Echo 10
Pause
Echo 11
Pause
if %SMS_LOCAL_DIR%. == . goto SLOWNETUSER
Echo 12
Pause
if not exist %SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SLOWNET.EXE goto SLOWNETUSER
Echo 13
Pause
%SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SLOWNET.EXE %0
if errorlevel 1 goto END
echo 14
Pause
if not exist %SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SMSBOOT1.EXE goto USER
%SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SMSBOOT1.EXE -S %0 -N -WINDIR=%WINDIR%
goto END

:SLOWNETUSER
Echo 15
Pause
if %SMS_LOCAL_DIR_USER%. == . goto SLOWNETTEMP
Echo 16
Pause
if not exist %SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SLOWNET.EXE goto SLOWNETTEMP
Echo 17
Pause
%SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SLOWNET.EXE %0
if errorlevel 1 goto END

:USER
Echo 18
Pause
if %SMS_LOCAL_DIR_USER%. == . goto SERVER
Echo 19
Pause
if not exist %SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SMSBOOT1.EXE goto SERVER
%SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SMSBOOT1.EXE -S %0 -N -WINDIR=%WINDIR%
goto END

:SLOWNETTEMP
Echo 20
Pause
if not exist %TEMP%\SLOWNET.EXE goto SLOWNETSERVER
Echo 21
Pause
%TEMP%\SLOWNET.EXE %0
if errorlevel 1 goto END

:SERVER
Echo 22
Pause
%0\..\SMSBOOT1.EXE -S %0 -N -WINDIR=%WINDIR%
goto END

:SLOWNETSERVER
Echo 23
Pause
%0\..\SNBOOT.EXE
if errorlevel 1 goto END
%0\..\SMSBOOT1.EXE -S %0 -N -WINDIR=%WINDIR%

:END
 
Have you got a %Temp% environment variable set ?
 
I do not mean to sound stupid but where would that be set at? I am very new to this and have had no formal training to date, just picking things up as I go along here since our SMS guy left. Hoping to get some training soon before i loose my mind! Thanks for responding!
 
If the last echo you see is 21 then it seems to be failing on slownet and then ending.

Try running slownet manually (using /v switch) and see what it reports. Without parameters (as in smsls.bat above) the slownet threshold is 40K bps.

You could also put an echo after :END to check that the script is actually going to END.
 
It does reach the end

To run slownet, which do i use, SlwNt16, SlwNt32, or SlwNt32a?
 

SlwNt16: SlowNet for 16-bit Intel
SlwNt32: SlowNet for 32-bit Intel
SlwNt32a: SlowNet for 32-bit Alpha

I think, I saw exactly the same posting in another forum ;)

Cheers,
Chris
 
hi
brother u mean i can user slownet.exe /v
i ran it but i couldn't see any thing

pls
 
to set your temp environment variable - right click on my computer and go to properties. It is in one of the options there. Make sure that the temp directory path specified (if there is one) is in the right place. Sorry I can t be more specific - I have got NT or windows 2000 at home. I will post it tomorrow if you cant find it.

regards
 
Should it be set as a user variable or system variable?

ON our machines the User TEMP variable is set to %UserProfile%\Local Settings\TEMP

Our system TEMP variable is %SystemRoot%\TEMP

Thanks for the help
 
When our logon script runs, it seems to bomb out at one point. Below is the section where is stopping.

:SLOWNETTEMP
echo 13
pause
if not exist %TEMP%\SLOWNET.EXE goto SLOWNETSERVER
echo 14
pause
%TEMP%\SLOWNET.EXE %0 1000
if errorlevel 1 goto END

It will display the 14 and then go to the end and the client will not install.

Any suggestions?
 
Dave,
Have you looked in the wn_logon.log? It should be on the client machine in %windir%\ms\sms\logs directory.
Regards
 
well we seem to have found the problem. The line below seems to have been the cause.

if not exist %TEMP%\SLOWNET.EXE goto SLOWNETSERVER

All we did was add quotes around "%TEMP%\SLOWNET.EXE" and it now runs. It seemed to be having trouble with long file names. Now the script runs through to completion.

Thanks to everyone who responded
 
Do you have a Novel client installed on your workstations because certain versions of the client will cause smsls.bat to bomb?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top