HP Insight Control for Linux 6.3 Release Notes
-->
<condition property="VMMCLIDir"
value="/opt/hpvmm/clientapi/bin" >
<not>
<os family="windows"/>
</not>
</condition>
<condition property="ShellCommand" value="cmd" >
<os family="windows"/>
</condition>
<condition property="ShellCommand" value="/bin/bash" >
<not>
<os family="windows"/>
</not>
</condition>
<condition property="VMMCLICommands" value="vmmclicapture.bat" >
<os family="windows"/>
</condition>
<condition property="VMMCLICommands" value="./vmmclicapture.sh" >
<not>
<os family="windows"/>
</not>
</condition>
</target>
<!-- Execute batch file if the CMS is windows -->
<target name="stage_window" depends="stage-conditions" if="os.windows">
<exec executable = "${ShellCommand}" dir = "${VMMCLIDir}"
append="true" output="${CLI_Output.log}">
<arg line ="/c ${VMMCLICommands}"/>
</exec>
</target>
<!-- Copy a VMM file to the logs directory if the CMS is windows. -->
<target name="stage-windows" depends="stage_window">
<copydir src = "${VMMLogDir}"
dest = "${SIM.logs.dir}/simcapture/vmm"
/>
</target>
<!-- Execute batch file if the CMS is non-windows -->
<target name="stage_nonwindow" depends="stage-conditions" unless="os.windows">
<exec executable = "${ShellCommand}" dir = "${VMMCLIDir}"
append="true" output="${CLI_Output.log}" >
<arg value ="${VMMCLICommands}"/>
</exec>
</target>
<!-- Copy a VMM file to the logs directory if the CMS is non-windows. -->
<target name="stage-nonwindows" depends="stage_nonwindow">
<copydir src = "${VMMLogDir}"
dest = "${SIM.logs.dir}/simcapture/vmm"
/>
</target>
<target name="stage" depends="stage-windows, stage-nonwindows" />
</project>
26 HP Insight Control virtual machine management scripts