Fujitsu V6.10 Server User Manual


 
7 Command-Line Interface
File 3
rem ********************************************************
rem * cli-work.bat ************************
rem * ******************************************************
rem * Batch File to check states after flash of a special server
rem * If WaitForDone returned timeout, the server will be added to
rem * tmp-list (=WaitServerlist for next schedule)
rem * if WaitForDone returned with ready and no error the 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%==1 goto nothtodo
if %errorlevel%==2 goto timeout
if %errorlevel%==3 goto statenok
if %errorlevel%==4 goto readynok
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 ready-ok
@echo.
@echo Undefined returncode!
goto endwk
rem
rem ********************************************************
rem * Timeout in this phase is normal
rem * - during Flash there will be more Timeouts
rem * Server is set in tmplist to be scheduled next time
rem ********************************************************
rem
254 ServerView Update Management