Here is a sample request that retrieves node statistics for nodes in the system. In this example, statistics are collected on two nodes and two volumes on each node. Also, the management port network has been configured on each node.
Request with cURL command line
curl -ik -H "Authorization: HCP ZGVa3b9c17d52107f34fhdb83c7a5" -H "Accept: application/xml" "https://admin.hcp.example.com:9090/mapi/nodes/statistics?prettyprint"
Response body in XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<nodeStatistics>
<requestTime>1528292517330</requestTime>
<nodes>
<node>
<nodeNumber>17</nodeNumber>
<frontendIpAddresses>
<ipAddress>172.20.35.17</ipAddress>
<ipAddress>2001:623:0:0:222:11ff:fec7:6584</ipAddress>
</frontendIpAddresses>
<backendIpAddress>172.35.14.17</backendIpAddress>
<managementIpAddresses>
<ipAddress>172.20.45.17</ipAddress>
<ipAddress>2001:623:0:0:222:11ff:fec7:6585</ipAddress>
</managementIpAddresses>
<openHttpConnections>0</openHttpConnections>
<openHttpsConnections>0</openHttpsConnections>
<maxHttpConnections>255</maxHttpConnections>
<maxHttpsConnections>254</maxHttpsConnections>
<cpuUser>0.16</cpuUser>
<cpuSystem>0.08</cpuSystem>
<cpuMax>24</cpuMax>
<ioWait>0.02</ioWait>
<swapOut>0.0</swapOut>
<maxFrontEndBandwidth>1024000</maxFrontEndBandwidth>
<frontEndBytesRead>0.3</frontEndBytesRead>
<frontEndBytesWritten>0.2</frontEndBytesWritten>
<maxBackEndBandwidth>1024000</maxBackEndBandwidth>
<backEndBytesRead>7.22</backEndBytesRead>
<backEndBytesWritten>3.87</backEndBytesWritten>
<maxManagementPortBandwidth>1024000</maxManagementPortBandwidth>
<managementBytesRead>.75</managementBytesRead>
<managementBytesWritten>.7</managementBytesWritten>
<collectionTimestamp>1528292472000</collectionTimestamp>
<volumes>
<volume>
<id>example090</id>
<blocksRead>0.0</blocksRead>
<blocksWritten>24.8</blocksWritten>
<diskUtilization>0.0</diskUtilization>
<transferSpeed>0.57</transferSpeed>
<totalBytes>10217599</totalBytes>
<freeBytes>37887380</freeBytes>
<totalInodes>10443212</totalInodes>
<freeInodes>40083820</freeInodes>
</volume>
<volume>
<id>example091</id>
<blocksRead>138.93</blocksRead>
<blocksWritten>34.0</blocksWritten>
<diskUtilization>0.48</diskUtilization>
<transferSpeed>7.82</transferSpeed>
<totalBytes>10223583</totalBytes>
<freeBytes>37940648</freeBytes>
<totalInodes>10223616</totalInodes>
<freeInodes>38073632</freeInodes>
</volume>
</volumes>
</node>
<node>
<nodeNumber>173</nodeNumber>
<frontendIpAddresses>
<ipAddress>172.20.35.16</ipAddress>
<ipAddress>2001:623:0:0:222:11ff:fec7:6574</ipAddress>
</frontendIpAddresses>
<backendIpAddress>172.35.14.16</backendIpAddress>
<managementIpAddresses>
<ipAddress>172.20.45.16</ipAddress>
<ipAddress>2001:623:0:0:222:11ff:fec7:6575</ipAddress>
</managementIpAddresses>
<openHttpConnections>0</openHttpConnections>
<openHttpsConnections>0</openHttpsConnections>
<maxHttpConnections>255</maxHttpConnections>
<maxHttpsConnections>254</maxHttpsConnections>
<cpuUser>0.06</cpuUser>
<cpuSystem>0.06</cpuSystem>
<cpuMax>24</cpuMax>
<ioWait>0.0</ioWait>
<swapOut>0.0</swapOut>
<maxFrontEndBandwidth>1024000</maxFrontEndBandwidth>
<frontEndBytesRead>0.17</frontEndBytesRead>
<frontEndBytesWritten>0.1</frontEndBytesWritten>
<maxBackEndBandwidth>1024000</maxBackEndBandwidth>
<backEndBytesRead>5.2</backEndBytesRead>
<backEndBytesWritten>2.7</backEndBytesWritten>
<maxManagementPortBandwidth>1024000</maxManagementPortBandwidth>
<managementBytesRead>.32</managementBytesRead>
<managementBytesWritten>.27</managementBytesWritten>
<collectionTimestamp>1528292486000</collectionTimestamp>
<volumes>
<volume>
<id>example092</id>
<blocksRead>0.0</blocksRead>
<blocksWritten>6.8</blocksWritten>
<diskUtilization>0.0</diskUtilization>
<transferSpeed>0.27</transferSpeed>
<totalBytes>10473796</totalBytes>
<freeBytes>38456396</freeBytes>
<totalInodes>10458232</totalInodes>
<freeInodes>36383276</freeInodes>
</volume>
<volume>
<id>example093</id>
<blocksRead>13.93</blocksRead>
<blocksWritten>28.0</blocksWritten>
<diskUtilization>0.08</diskUtilization>
<transferSpeed>1.82</transferSpeed>
<totalBytes>10223583</totalBytes>
<freeBytes>37940648</freeBytes>
<totalInodes>10498423</totalInodes>
<freeInodes>38073632</freeInodes>
</volume>
</volumes>
</node>
</nodes>
</nodeStatistics>
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.