Putting an Enterprise in a Read-only State

Prerequisites

See Read-only State.

Procedure

  1. In the build file, add a target named setReadOnly.

    For a sample file, see enterprise_suspend_build.xml.

    <target name="setReadOnly">
    <AMXAdminTask
    ...
    ...
    />
    </target>
  2. In the AMXAdminTask element of the set target, set the action attribute to setReadOnly and the objectSelector attribute to Enterprise.
    <AMXAdminTask
    			  remote="true"
    		  	propsFile="${instanceProperties}"
    		  	action="setReadOnly"
    		  	dataFile="${dataFile}"
    		  	objectSelector="Enterprise"
    	  		force="false"
    			  failOnError="false"
    		 />
  3. In the options attribute, you can specify a note.
    options="note ${note}"
    For more information about the note attribute, see CLI Attributes.
  4. Invoke the command-line interface on the build file.

Result

For a sample output, refer to Sample: Read-only State.