
7Command-LineInterface
File 2rem *********************************************************
rem * cli-init.bat ************************
rem * ****************************************************
rem * BatchFile to check states ofa special server
rem * and to execute StartFlash if statesare ok
rem * ------------------------------------------------------
rem * Input-parameters:
rem * - cli-init server(%1) user(%2)Password(%3)
rem * - File "fwpath.txt"with the absolut pathof the FirmwareTree
rem *******************************************************
rem
:start
@echo off
rem
rem ********************************************************
rem * Return-File initialisation
rem ********************************************************
rem
@echo off>%1.txt
:start1
rem
rem ********************************************************
rem * "WaitForDone" tocheck whether thereare old flashs
rem * (prepared, ready)or not
rem * If thereare states, they arecanceled or ceaned
rem * If serveris not "online" Timeout occured
rem * Only a server withoutflash-states willbe token for flash
rem * Meansreturncode 1 is the onlyone to go on for flash!
rem ********************************************************
rem
gfcli -W -N%1 -L %2 -P %3 -F %1.txt
if %errorlevel%==1goto nostates
if %errorlevel%==2goto timeout
if %errorlevel%==3goto statenok
if %errorlevel%==4goto errors
if %errorlevel%==5goto gfierror
if %errorlevel%==6goto nologop
248 ServerViewUpdate Management