getPartitionMirrorStats

Returns statistics for the specified mirror group.

Request

<getPartitionMirrorState>
   <mirrorID/>
</getPartitionMirrorState>

Reply

<getPartitionMirrorStats>
   <result value=" ">
      <description/>
   </result>
   <mirrorGroupStatus/>
   <mirrorGroupPercent/>
   <numMirrors/>
   <mirrorInfo>
      <hotFixID/>
      <mirrorPercent/>
   </mirrorInfo>
</getPartitionMirrorStats>

Elements

mirrorID

Specifies the mirror group ID for which you want the statistics.

result

Specifies an error value or 0 (for no error).

description

Specifies a text description of the result.

mirrorGroupStatus

Specifies the status bits for the entire mirror group (see Mirror Group Statuses).

mirrorGroupPercent

Specifies the lowest remirror percentage of any partition in the entire mirror group. If the entire group is fully synchronized, this is 100. If one of the partitions is 63% synchronized and another partition is 77% synchronized, the percentage returned is 63.

numMirrors

Specifies the number of partitions in the mirror group.

mirrorInfo

Repeats for each partition in the mirror group.

hotFixID

Specifies the HotFix ID of the partition.

mirrorPercent

Specifies the remirror complete percentage for the partition.

Example

A nssRequest packet to get the partition mirror statistics on mirror group 20 is as follows:

<nssRequest>
   <partition>
      <getPartitionMirrorStats>
         <mirrorID>20</mirrorID>
      </getPartitionMirrorStats>
   </partition>
</nssRequest>

The following nssReply packet to the get partition statistics command has two partitions with HotFix IDs of 19 and 16, and both partitions are 100% synchronized with the mirror group:

<nssReply>
   <partition>
      <getPartitionMirrorStats>
         <mirrorGroupStatus>7</mirrorGroupStatus>
         <mirrorGroupPercent>100</mirrorGroupPercent>
         <numMirrors>2</numMirrors>
         <mirrorInfo>
            <hotFixID>19</hotFixID>
            <mirrorPercent>100</mirrorPercent>
         </mirrorInfo>
         
         <mirrorInfo>
            <hotFixID>16</hotFixID>
            <mirrorPercent>100</mirrorPercent>
         </mirrorInfo>
         <result value="0">
            <description/>success</description>
         </result>
      </getPartitionMirrorStats>
   </partition>

   <result value="0">
      <description/>zOK</description>
   </result>
</nssReply>