Getting the Status of a Read-only Enterprise

Prerequisites

See Read-only State.

Procedure

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

    For a sample file, see enterprise_suspend_build.xml.

    <target name="statusReadOnly">
    <AMXAdminTask
    ...
    ...
    />
    </target>
  2. In the AMXAdminTask element of the statusReadOnly target, set the action attribute to statusReadOnly and the objectSelector attribute to Enterprise.
    <AMXAdminTask
    			remote="true"
    			propsFile="${instanceProperties}"
    			action="statusReadOnly"
    			dataFile="${dataFile}"
    			objectSelector="Enterprise"
    			failOnError="false"
    />
  3. Invoke the command-line interface on the build file.

Result

For a sample output, refer to Sample: Status of Read-only Enterprise.