Write then read the “command” datastream of Resource.cmd to manage cluster resources:
<!ELEMENT ncsRequest (migrate|offline|online|alert)> <!ELEMENT migrate (resource, node)> <!ELEMENT offline (resource)> <!ELEMENT online (resource, node*)> <!ELEMENT alert (resource, (yes|no))> <!ELEMENT resource (#PCDATA)> <!ELEMENT node (#PCDATA)> <!ELEMENT yes EMPTY> <!ELEMENT noEMPTY>
<!ELEMENT ncsReply (failed|resource)> <!ELEMENT failed (#CDATA)> <!ELEMENT resource (name, state, incarnation, location, upSince)> <!ELEMENT name (#CDATA)> <!ELEMENT state (#CDATA)> <!ELEMENT incarnation (#CDATA)> <!ELEMENT location (#CDATA)> <!ELEMENT upSince (#CDATA)>