c:\Program Files\hyperic-hq-agent-4.6.6\bin>hq-agent.bat install
c:\Program Files\hyperic-hq-agent-4.6.6\bin>rem @echo off
c:\Program Files\hyperic-hq-agent-4.6.6\bin>setlocal
c:\Program Files\hyperic-hq-agent-4.6.6\bin>if "Windows_NT" == "Windows_NT" goto
nt
c:\Program Files\hyperic-hq-agent-4.6.6\bin>rem
c:\Program Files\hyperic-hq-agent-4.6.6\bin>rem Find the application home.
c:\Program Files\hyperic-hq-agent-4.6.6\bin>rem
c:\Program Files\hyperic-hq-agent-4.6.6\bin>rem c:\Program Files\hyperic-hq-agen
t-4.6.6\bin\ is location of current script under NT
c:\Program Files\hyperic-hq-agent-4.6.6\bin>set _AGENTHOME=c:\Program Files\hype
ric-hq-agent-4.6.6\bin\..\
c:\Program Files\hyperic-hq-agent-4.6.6\bin>cd c:\Program Files\hyperic-hq-agent
-4.6.6\bin\..\
c:\Program Files\hyperic-hq-agent-4.6.6>set ROLLBACK_PROPS=conf\rollback.propert
ies
c:\Program Files\hyperic-hq-agent-4.6.6>set AGENT_BUNDLE_PROP=set.HQ_AGENT_BUNDL
E
c:\Program Files\hyperic-hq-agent-4.6.6>rem look for the agent bundle property i
n the rollback properties file
c:\Program Files\hyperic-hq-agent-4.6.6>rem and invoke the bundle hq-agent.bat s
cript
c:\Program Files\hyperic-hq-agent-4.6.6>for /F "delims== tokens=1*" %i in (conf\
rollback.properties) do (if "%i" == "set.HQ_AGENT_BUNDLE" (if not EXIST bundles\
%j\bin\hq-agent.bat (echo Failed to find bundle script "c:\Program Files\hyperic
-hq-agent-4.6.6\bin\..\bundles\%j\bin\hq-agent.bat". ) else (if /I "install" ==
"set-property" (call bundles\%j\bin\hq-agent-nowrapper.bat install ) else (cal
l bundles\%j\bin\hq-agent.bat install ) ) ) )
c:\Program Files\hyperic-hq-agent-4.6.6>(if "# automatically generated upgrade r
ollback properties" == "set.HQ_AGENT_BUNDLE" (if not EXIST bundles\\bin\hq-agent
.bat (echo Failed to find bundle script "c:\Program Files\hyperic-hq-agent-4.6.6
\bin\..\bundles\\bin\hq-agent.bat". ) else (if /I "install" == "set-property" (
call bundles\\bin\hq-agent-nowrapper.bat install ) else (call bundles\\bin\hq-a
gent.bat install ) ) ) )
c:\Program Files\hyperic-hq-agent-4.6.6>(if "# do NOT edit manually!" == "set.HQ
_AGENT_BUNDLE" (if not EXIST bundles\\bin\hq-agent.bat (echo Failed to find bund
le script "c:\Program Files\hyperic-hq-agent-4.6.6\bin\..\bundles\\bin\hq-agent.
bat". ) else (if /I "install" == "set-property" (call bundles\\bin\hq-agent-now
rapper.bat install ) else (call bundles\\bin\hq-agent.bat install ) ) ) )
c:\Program Files\hyperic-hq-agent-4.6.6>(if "set.HQ_AGENT_BUNDLE" == "set.HQ_AGE
NT_BUNDLE" (if not EXIST bundles\agent-4.6.6\bin\hq-agent.bat (echo Failed to fi
nd bundle script "c:\Program Files\hyperic-hq-agent-4.6.6\bin\..\bundles\agent-4
.6.6\bin\hq-agent.bat". ) else (if /I "install" == "set-property" (call bundles
\agent-4.6.6\bin\hq-agent-nowrapper.bat install ) else (call bundles\agent-4.6.
6\bin\hq-agent.bat install ) ) ) )
\java\jre7 nebyl nyní očekáván.
c:\Program Files\hyperic-hq-agent-4.6.6>set HQ_JAVA_HOME
HQ_JAVA_HOME=c:\program files (x86)\java\jre7
c:\Program Files\hyperic-hq-agent-4.6.6>