cpu-state

Displays CPU utilization statistics of the overall system

Resource URIs

URI Description
<base_URI>/operational-state/cpu-state Displays CPU utilization statistics of the overall system.

Usage Guidelines

Only GET operation is supported. Use of the Resource-Depth request header is recommended.

Examples

URI

The following example shows the complete cURL command and server response for the cpu-state GET operation.

http://host:80/rest/operational-state/cpu-state

curl -H "Accept: application/vnd.operational-state.resource+xml" -H "Resource-Depth: 6"  
-u "lab:Tester**"  http://10.20.229.40:80/rest/operational-state/cpu-state
<data xmlns="http://brocade.com/ns/rest" xmlns:y="http://brocade.com/ns/rest" y:self="/rest/operational-state">
<cpu-state xmlns="urn:brocade.com:mgmt:brocade-RAS-operational" y:self="/rest/operational-state/cpu-state">
  <summary y:self="/rest/operational-state/cpu-state/summary">
    <summary-cpu-load-average-one-min>2.54</summary-cpu-load-average-one-min>
    <summary-cpu-load-average-five-min>2.24</summary-cpu-load-average-five-min>
    <summary-cpu-load-average-fifteen-min>2.13</summary-cpu-load-average-fifteen-min>
    <summary-cpu-util-current>11.00</summary-cpu-util-current>
    <summary-cpu-util-current-user>6.00</summary-cpu-util-current-user>
    <summary-cpu-util-current-kernel>5.00</summary-cpu-util-current-kernel>
    <summary-cpu-util-current-iowait>.00</summary-cpu-util-current-iowait>
  </summary>
  <history y:self="/rest/operational-state/cpu-state/history">
    <cpu-load-average-one-min>2.54</cpu-load-average-one-min>
    <cpu-load-average-five-min>2.24</cpu-load-average-five-min>
    <cpu-load-average-fifteen-min>2.13</cpu-load-average-fifteen-min>
    <cpu-util-current>13.00</cpu-util-current>
    <cpu-util-current-user>6.00</cpu-util-current-user>
    <cpu-util-current-kernel>7.00</cpu-util-current-kernel>
    <cpu-util-current-iowait>.00</cpu-util-current-iowait>
    <cpu-util-1min>23.50</cpu-util-1min>
    <cpu-util-1min-user>10.50</cpu-util-1min-user>
    <cpu-util-1min-kernel>13.00</cpu-util-1min-kernel>
    <cpu-util-1min-iowait>.00</cpu-util-1min-iowait>
    <cpu-util-5min>16.20</cpu-util-5min>
    <cpu-util-5min-user>8.40</cpu-util-5min-user>
    <cpu-util-5min-kernel>7.80</cpu-util-5min-kernel>
    <cpu-util-5min-iowait>.00</cpu-util-5min-iowait>
    <cpu-util-15min>14.33</cpu-util-15min>
    <cpu-util-15min-user>7.30</cpu-util-15min-user>
    <cpu-util-15min-kernel>7.00</cpu-util-15min-kernel>
    <cpu-util-15min-iowait>.03</cpu-util-15min-iowait>
    <cpu-util-1hour>13.18</cpu-util-1hour>
    <cpu-util-1hour-user>6.38</cpu-util-1hour-user>
    <cpu-util-1hour-kernel>6.78</cpu-util-1hour-kernel>
    <cpu-util-1hour-iowait>.01</cpu-util-1hour-iowait>
    <cpu-util-5hour>11.60</cpu-util-5hour>
    <cpu-util-5hour-user>5.64</cpu-util-5hour-user>
    <cpu-util-5hour-kernel>5.96</cpu-util-5hour-kernel>
    <cpu-util-5hour-iowait>.00</cpu-util-5hour-iowait>
    <cpu-util-24hour>10.40</cpu-util-24hour>
    <cpu-util-24hour-user>5.14</cpu-util-24hour-user>
    <cpu-util-24hour-kernel>5.27</cpu-util-24hour-kernel>
    <cpu-util-24hour-iowait>.00</cpu-util-24hour-iowait>
    <cpu-util-72hour>.00</cpu-util-72hour>
    <cpu-util-72hour-user>.00</cpu-util-72hour-user>
    <cpu-util-72hour-kernel>.00</cpu-util-72hour-kernel>
    <cpu-util-72hour-iowait>.00</cpu-util-72hour-iowait>
    <cpu-util-process-history y:self="/rest/operational-state/cpu-state/history/cpu-util-process-history/5178">
      <cpu-process-id>5178</cpu-process-id>
      <cpu-process-name>hslagtd</cpu-process-name>
      <cpu-util-current>5.48</cpu-util-current>
      <cpu-util-1m>5.48</cpu-util-1m>
      <cpu-util-5m>5.48</cpu-util-5m>
      <cpu-util-15m>5.48</cpu-util-15m>
      <cpu-util-1h>5.48</cpu-util-1h>
      <cpu-util-5h>5.47</cpu-util-5h>
      <cpu-util-24h>5.46</cpu-util-24h>
      <cpu-util-72h>.00</cpu-util-72h>
    </cpu-util-process-history>
    <cpu-util-process-history y:self="/rest/operational-state/cpu-state/history/cpu-util-process-history/3890">
      <cpu-process-id>3890</cpu-process-id>
      <cpu-process-name>vrrpd</cpu-process-name>
      <cpu-util-current>2.58</cpu-util-current>
      <cpu-util-1m>2.58</cpu-util-1m>
      <cpu-util-5m>2.58</cpu-util-5m>
      <cpu-util-15m>2.58</cpu-util-15m>
      <cpu-util-1h>2.58</cpu-util-1h>
      <cpu-util-5h>2.58</cpu-util-5h>
      <cpu-util-24h>2.58</cpu-util-24h>
      <cpu-util-72h>.00</cpu-util-72h>
    </cpu-util-process-history>
    <cpu-util-process-history y:self="/rest/operational-state/cpu-state/history/cpu-util-process-history/3348">
      <cpu-process-id>3348</cpu-process-id>
      <cpu-process-name>emd</cpu-process-name>
      <cpu-util-current>.74</cpu-util-current>
      <cpu-util-1m>.74</cpu-util-1m>
      <cpu-util-5m>.74</cpu-util-5m>
      <cpu-util-15m>.74</cpu-util-15m>
      <cpu-util-1h>.74</cpu-util-1h>
      <cpu-util-5h>.74</cpu-util-5h>
      <cpu-util-24h>.74</cpu-util-24h>
      <cpu-util-72h>.00</cpu-util-72h>
    </cpu-util-process-history>
    <cpu-util-process-history y:self="/rest/operational-state/cpu-state/history/cpu-util-process-history/3870">
      <cpu-process-id>3870</cpu-process-id>
      <cpu-process-name>bgpd</cpu-process-name>
      <cpu-util-current>.34</cpu-util-current>
      <cpu-util-1m>.34</cpu-util-1m>
      <cpu-util-5m>.34</cpu-util-5m>
      <cpu-util-15m>.34</cpu-util-15m>
      <cpu-util-1h>.34</cpu-util-1h>
      <cpu-util-5h>.34</cpu-util-5h>
      <cpu-util-24h>.34</cpu-util-24h>
      <cpu-util-72h>.00</cpu-util-72h>
    </cpu-util-process-history>
...
</history>
  <top y:self="/rest/operational-state/cpu-state/top">
    <cpu-curr-time>15:44:18</cpu-curr-time>
    <cpu-system-uptime>&quot;2 days&quot;</cpu-system-uptime>
    <cpu-no-of-users>22</cpu-no-of-users>
    <cpu-load-average-one-min>0.</cpu-load-average-one-min>
    <cpu-load-average-five-min>2.42</cpu-load-average-five-min>
    <cpu-load-average-fifteen-min>2.22</cpu-load-average-fifteen-min>
    <cpu-total-task>231</cpu-total-task>
    <cpu-running-task>2</cpu-running-task>
    <cpu-sleeping-task>163</cpu-sleeping-task>
    <cpu-stopped-task>0</cpu-stopped-task>
    <cpu-zombie-task>1</cpu-zombie-task>
    <cpu-util-user>5.10</cpu-util-user>
    <cpu-util-kernel>5.10</cpu-util-kernel>
    <cpu-util-nice>.00</cpu-util-nice>
    <cpu-util-idle>89.70</cpu-util-idle>
    <cpu-util-iowait>.00</cpu-util-iowait>
    <cpu-util-hi>.00</cpu-util-hi>
    <cpu-util-si>.10</cpu-util-si>
    <cpu-util-st>.00</cpu-util-st>
    <cpu-total-mem>12071784</cpu-total-mem>
    <cpu-used-mem>5023680</cpu-used-mem>
    <cpu-free-mem>6187584</cpu-free-mem>
    <cpu-buffer-mem>860520</cpu-buffer-mem>
    <cpu-total-mem-swap>0</cpu-total-mem-swap>
    <cpu-used-mem-swap>0</cpu-used-mem-swap>
    <cpu-free-mem-swap>0</cpu-free-mem-swap>
    <cpu-cache-mem-swap>6608940</cpu-cache-mem-swap>
    <cpu-top-process-information y:self="/rest/operational-state/cpu-state/top/cpu-top-process-information/5178">
      <cpu-process-id>5178</cpu-process-id>
      <cpu-process-user>root</cpu-process-user>
      <cpu-process-priority>20</cpu-process-priority>
      <cpu-process-ni>0</cpu-process-ni>
      <cpu-process-virtual-mem>5352432</cpu-process-virtual-mem>
      <cpu-process-resident-mem>0.987g</cpu-process-resident-mem>
      <cpu-process-shared-mem>91220</cpu-process-shared-mem>
      <cpu-process-state>S</cpu-process-state>
      <cpu-process-cpuutil>6.60</cpu-process-cpuutil>
      <cpu-process-memutil>8.60</cpu-process-memutil>
      <cpu-process-running-time>1806:52</cpu-process-running-time>
      <cpu-process-cmd>hslagtd</cpu-process-cmd>
    </cpu-top-process-information>
    <cpu-top-process-information y:self="/rest/operational-state/cpu-state/top/cpu-top-process-information/3890">
      <cpu-process-id>3890</cpu-process-id>
      <cpu-process-user>root</cpu-process-user>
      <cpu-process-priority>20</cpu-process-priority>
      <cpu-process-ni>0</cpu-process-ni>
      <cpu-process-virtual-mem>1494004</cpu-process-virtual-mem>
      <cpu-process-resident-mem>111244</cpu-process-resident-mem>
      <cpu-process-shared-mem>71488</cpu-process-shared-mem>
      <cpu-process-state>S</cpu-process-state>
      <cpu-process-cpuutil>2.20</cpu-process-cpuutil>
      <cpu-process-memutil>.90</cpu-process-memutil>
      <cpu-process-running-time>852:20.52</cpu-process-running-time>
      <cpu-process-cmd>vrrpd</cpu-process-cmd>
    </cpu-top-process-information>
    <cpu-top-process-information y:self="/rest/operational-state/cpu-state/top/cpu-top-process-information/21973">
      <cpu-process-id>21973</cpu-process-id>
      <cpu-process-user>root</cpu-process-user>
      <cpu-process-priority>20</cpu-process-priority>
      <cpu-process-ni>0</cpu-process-ni>
      <cpu-process-virtual-mem>21428</cpu-process-virtual-mem>
      <cpu-process-resident-mem>2740</cpu-process-resident-mem>
      <cpu-process-shared-mem>2224</cpu-process-shared-mem>
      <cpu-process-state>R</cpu-process-state>
      <cpu-process-cpuutil>2.20</cpu-process-cpuutil>
      <cpu-process-memutil>.00</cpu-process-memutil>
      <cpu-process-running-time>0:00.04</cpu-process-running-time>
      <cpu-process-cmd>top</cpu-process-cmd>
    </cpu-top-process-information>
</cpu-top-process-information>
...
  </top>
  <all-partition y:self="/rest/operational-state/cpu-state/all-partition">
    <cpu-allpart-load y:self="/rest/operational-state/cpu-state/all-partition/cpu-allpart-load/%22SW/0:%22">
      <cpu-blade-name>SW/0:</cpu-blade-name>
      <cpu-load-average-1min>2.38</cpu-load-average-1min>
      <cpu-load-average-5min>2.22</cpu-load-average-5min>
      <cpu-load-average-15min>2.12</cpu-load-average-15min>
    </cpu-allpart-load>
    <cpu-allpart-util y:self="/rest/operational-state/cpu-state/all-partition/cpu-allpart-util/%22SW/0:%22">
      <cpu-blade-name>SW/0:</cpu-blade-name>
      <cpu-util-current>10.29</cpu-util-current>
      <cpu-util-user>5.10</cpu-util-user>
      <cpu-util-kernel>5.18</cpu-util-kernel>
      <cpu-util-iowait>.01</cpu-util-iowait>
    </cpu-allpart-util>
  </all-partition>
  <process-list y:self="/rest/operational-state/cpu-state/process-list">
    <list-cpu-load-average-one-min>2.38</list-cpu-load-average-one-min>
    <list-cpu-load-average-five-min>2.22</list-cpu-load-average-five-min>
    <list-cpu-load-average-fifteen-min>2.12</list-cpu-load-average-fifteen-min>
    <list-cpu-util-current>9.00</list-cpu-util-current>
    <list-cpu-util-current-user>5.00</list-cpu-util-current-user>
    <list-cpu-util-current-kernel>4.00</list-cpu-util-current-kernel>
    <list-cpu-util-current-iowait>.00</list-cpu-util-current-iowait>
    <cpu-process-list y:self="/rest/operational-state/cpu-state/process-list/cpu-process-list/5178">
      <cpu-process-id>5178</cpu-process-id>
      <cpu-process-name>&quot;hslagtd        &quot;</cpu-process-name>
      <cpu-process-util>5.35</cpu-process-util>
      <cpu-process-state>S</cpu-process-state>
      <cpu-process-start-time>&quot;17:26:54 Nov 19, 2019&quot;</cpu-process-start-time>
    </cpu-process-list>
    <cpu-process-list y:self="/rest/operational-state/cpu-state/process-list/cpu-process-list/3890">
      <cpu-process-id>3890</cpu-process-id>
      <cpu-process-name>&quot;vrrpd          &quot;</cpu-process-name>
      <cpu-process-util>2.52</cpu-process-util>
      <cpu-process-state>S</cpu-process-state>
      <cpu-process-start-time>&quot;17:26:39 Nov 19, 2019&quot;</cpu-process-start-time>
    </cpu-process-list>
    <cpu-process-list y:self="/rest/operational-state/cpu-state/process-list/cpu-process-list/3348">
      <cpu-process-id>3348</cpu-process-id>
      <cpu-process-name>&quot;emd            &quot;</cpu-process-name>
      <cpu-process-util>.72</cpu-process-util>
      <cpu-process-state>S</cpu-process-state>
      <cpu-process-start-time>&quot;17:26:31 Nov 19, 2019&quot;</cpu-process-start-time>
    </cpu-process-list>
    <cpu-process-list y:self="/rest/operational-state/cpu-state/process-list/cpu-process-list/3870">
      <cpu-process-id>3870</cpu-process-id>
      <cpu-process-name>&quot;bgpd           &quot;</cpu-process-name>
      <cpu-process-util>.33</cpu-process-util>
      <cpu-process-state>S</cpu-process-state>
      <cpu-process-start-time>&quot;17:26:39 Nov 19, 2019&quot;</cpu-process-start-time>
    </cpu-process-list>
    <cpu-process-list y:self="/rest/operational-state/cpu-state/process-list/cpu-process-list/5183">
      <cpu-process-id>5183</cpu-process-id>
      <cpu-process-name>&quot;mcagtd         &quot;</cpu-process-name>
      <cpu-process-util>.24</cpu-process-util>
      <cpu-process-state>S</cpu-process-state>
      <cpu-process-start-time>&quot;17:26:54 Nov 19, 2019&quot;</cpu-process-start-time>
    </cpu-process-list>
...
</process-list>
</cpu-state>
</data>

History

Release version History
18r.2.00 This API call was introduced.