
Thefollowing examples arebased on Windows. If a Linux shell is used,the
Linuxvariable $? must be queriedinstead of the %errrorlevel% Windows
variablesin orderto test thereturn value of the CLI command, for example:
GFCLI -S -N <system name> -U <path name>
if [ $? = 0 ]; then ....
File 1
@echo off
rem ********************************************************
rem * cli-exa.bat ******************************************
rem ********************************************************
rem * Batchfile to flash all components of PRIMERGY servers,supported
by
rem * GlobalFlash to theirnewest version.
rem * All servers have to belisted in a ServerList.The firmware mustbe
rem * available in localGlobalFlash FirmwareTree.
rem * Two otherbatch files are called:
rem * cli-init.bat: Check states andavailibility of a server and execute
rem * StartFlash for theserver
rem * cli-work.bat: Waitfor completion ofthe flash for each server
rem * -------------------------
rem * Input-parameters:
rem * The actual directoryhas to contain 2 Control-filesfor this batch:
rem * 1.)ServerList-file "serverls.txt"
rem * Each lineconsists of 3 fields:Server,user,password
rem * If the linebeginns with ";" inServerList, the linewill be
ignored
rem * 2.)File"fwpath.txt" withthe absolut path ofthe FirmwareTree
rem * Output-parameters:
rem * 1.)File"oklist.txt" withthe list of servers,which are updated
with-
rem * out anyerrors or which are notflashed because theyare actual
rem * 2.)Result-Files<servername>.txtfor each server
rem *******************************************************
rem
:start
ServerViewUpdate Management 245
7.1GFCLI (Command-LineInterface)