Specifications
Appendix B. UPS.CMD 77
Appendix B. UPS.CMD
001 @ECHO OFF
002 REM ***************************************************************************
003 REM
004 REM UPS Handling with Microsoft Cluster Server
005 REM ==========================================
006 REM
007 REM APC:
008 REM Martin Zustak
009 REM Peter Fuchs
010 REM
011 REM CSG:
012 REM Hendrik Ernst
013 REM Silvio Erdenberger
014 REM
015 REM IBM:
016 REM Arwed Tschoeke
017 REM
018 REM Version:
019 REM 2000-08-10
020 REM
021 REM Description:
022 REM This is the command file that will be launched by PowerChute plus with
023 REM different startup parameters.
024 REM
025 REM Usage:
026 REM UPS.CMD <parameter>
027 REM
028 REM where <parameter> is one of the following:
029 REM StartUp
030 REM UPSOnBattery
031 REM SingleUPSOnBattery
032 REM
033 REM Warning:
034 REM Before using this file in your cluster, you have to adapt the sections
035 REM marked with exclamation signs (!!!) for your cluster configuration!
036 REM There are four sections (1)-(4) which must be changed!
037 REM
038 REM ***************************************************************************
039
040 REM !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
041
042 REM (1) Enter your node names here!
043 SET NodeAName=NF8500L
044 SET NodeBName=NF8500R
045
046 REM !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
047
048 REM ---------------------------------------------------------------------------
049 IF %NodeAName% == %COMPUTERNAME% SET TheOtherNodeName=%NodeBName%
050 IF %NodeBName% == %COMPUTERNAME% SET TheOtherNodeName=%NodeAName%
051 REM ---------------------------------------------------------------------------
052
053 REM ---------------------------------------------------------------------------
054 :CheckParam1
055
056 IF s%1 == s GOTO ERROR1
057 IF %1 == StartUp GOTO StartUp










