if %errorlevel%==7 goto noaccess
if %errorlevel%==10 goto parerror
if %errorlevel%==11 goto memerror
if %errorlevel%==0 goto old-ok
@echo.
@echo Undefined returncode!
goto endchk
rem
rem ********************************************************
rem * Old Flashs (prepared) detected Cancel them
rem ********************************************************
rem
:statenok
@echo.
@echo Unknown Flash States or flash states "prepared" for server %1 avail-
able
@echo Who has started them ? Please check!
@echo After continue the old flashs are canceled
pause
@echo Cancel flash states for server %1
gfcli -A -N %1 -L %2 -P %3 -F %1.txt
if %errorlevel%==1 goto nothtodo
if %errorlevel%==2 goto timeout
if %errorlevel%==3 goto statenok
if %errorlevel%==5 goto gfierror
if %errorlevel%==6 goto nologop
if %errorlevel%==7 goto noaccess
if %errorlevel%==10 goto parerror
if %errorlevel%==11 goto memerror
if %errorlevel%==0 goto cancok
@echo.
@echo Undefined returncode!
goto chkend
:cancok
@echo.
@echo All jobs canceled for server %1
goto start1
rem
ServerView Update Management 249
7.1 GFCLI (Command-Line Interface)