
7Command-LineInterface
File 3rem ********************************************************
rem * cli-work.bat ************************
rem * ******************************************************
rem * BatchFile to check states after flash of a special server
rem * If WaitForDone returned timeout, the serverwill be added to
rem * tmp-list (=WaitServerlistfor next schedule)
rem * if WaitForDone returned with ready and no errorthe server will be
rem * to oklist
rem * ------------------------------------------------------
rem * Input-parameters:
rem * - cli-work server(%1) user(%2)Password(%3)
rem ********************************************************
rem
:start
@echo off
echo off >%1.txt
gfcli -W -N%1 -L %2 -P %3 -F %1.txt
if %errorlevel%==1goto nothtodo
if %errorlevel%==2goto timeout
if %errorlevel%==3goto statenok
if %errorlevel%==4goto readynok
if %errorlevel%==5goto gfierror
if %errorlevel%==6goto nologop
if %errorlevel%==7goto noaccess
if %errorlevel%==10goto parerror
if %errorlevel%==11goto memerror
if %errorlevel%==0goto ready-ok
@echo.
@echo Undefined returncode!
goto endwk
rem
rem ********************************************************
rem * Timeoutin this phase is normal
rem * - duringFlash there will be moreTimeouts
rem * Serveris set in tmplist to be scheduled nexttime
rem ********************************************************
rem
254 ServerViewUpdate Management