enterprise_suspend_build.xml

The sample enterprise_suspend_build.xml available in TIBCO_HOME/administrator/3.4/samples/ is shown below.

<!-- example way push the note in case -D option is not used
	You can also pass note via -D while executing the script
	<property name="note" value="Taking a backup"/>
	-->
	<property name="note" value="No Description"/>

	<target name="setReadOnly">
		<AMXAdminTask
			remote="true"
			propsFile="${instanceProperties}"
			action="setReadOnly"
			dataFile="${dataFile}"
			objectSelector="Enterprise"
			options="note ${note}"
			force="false"
			failOnError="false"
		/>
	</target>
	
	<target name="unsetReadOnly">
		<AMXAdminTask
			remote="true"
			propsFile="${instanceProperties}"
			action="unsetReadOnly"
			dataFile="${dataFile}"
			objectSelector="Enterprise"
			failOnError="false"
		/>
	</target>
		
	<target name="statusReadOnly">
		<AMXAdminTask
			remote="true"
			propsFile="${instanceProperties}"
			action="statusReadOnly"
			dataFile="${dataFile}"
			objectSelector="Enterprise"
			failOnError="false"
		/>
	</target>
	
	<target name="suspend">
		<AMXAdminTask
			remote="true"
			propsFile="${instanceProperties}"
			action="suspend"
			dataFile="${dataFile}"
			objectSelector="Enterprise"
			options="suspendEnterpriseTimeoutInSec 1800,suspendCfTimeoutInSec 1800,note ${note}"
			force="false"
			failOnError="false"
		/>
	</target>
	
	<target name="unsuspend">
		<AMXAdminTask
			remote="true"
			propsFile="${instanceProperties}"
			action="unsuspend"
			dataFile="${dataFile}"
			objectSelector="Enterprise"
			failOnError="false"
		/>
	</target>
		
	<target name="status">
		<AMXAdminTask
			remote="true"
			propsFile="${instanceProperties}"
			action="status"
			dataFile="${dataFile}"
			objectSelector="Enterprise"
			failOnError="false"
		/>
	</target>
</project>