Putting an Enterprise in a Read-only State
Before you begin See
Read-only State.
- Procedure
- In the build file, add a target named
setReadOnly
.For a sample file, see enterprise_suspend_build.xml.
<target name="setReadOnly"> <AMXAdminTask ... ... /> </target>
- In the
AMXAdminTask
element of theset
target, set theaction
attribute tosetReadOnly
and theobjectSelector
attribute toEnterprise
.<AMXAdminTask remote="true" propsFile="${instanceProperties}" action="setReadOnly" dataFile="${dataFile}" objectSelector="Enterprise" force="false" failOnError="false" />
- In the
options
attribute, you can specify anote
. - Invoke the command-line interface on the build file.
ResultFor a sample output, seeSample: Read-only State.