メインコンテンツまでスキップ

ONTAP System Manager Dashboard Capacity using RestAPI and CLI

Views:
5
Visibility:
Public
Votes:
0
Category:
ontap-system-manager
Specialty:
om
Last Updated:

Applies to

ONTAP System Manager (SM.NEXT) 9.7 and above

Answer

ONTAP System Manager Dashboard Capacity

 

----------------------------------------------------------------

Screenshot:

ocsm_kb_dashboard_capacity_numbers.png

----------------------------------------------------------------

RESTAPI Used:

[cluster2/api/storage/cluster?fields=*]

AND

[cluster2/api/storage/aggregates?fields=space,space.block_storage.inactive_user_data,*]

 

ONTAP CLI Used:

cluster2::*> storage aggregate show-efficiency -aggregate aggr1_cluster2_01 -fields aggregate,total-logical-used,total-physical-used,aggr-logical-used,aggr-physical-used,total-storage-efficiency-ratio

AND

cluster2::*> df -A

----------------------------------------------------------------

Calculation:

OCSM Screenshot Shows Above:
7.32 MB
28.32 GB

How it get calculated:

----------------------------------------------------------------

7.32 MB derived from RestApi:

[cluster2/api/storage/cluster?fields=*]

<snip>
{
"efficiency": {
    "savings": 0,
    "ratio": 1,
    "logical_used": 7671808  <<<<----
},

</snip>

Logical_used: 7671808 == 7671808/1024/1024 == 7.32 MB

----

7.32 MB derived from Cluster CLI:


cluster2::*> storage aggregate show-efficiency -aggregate aggr1_cluster2_01 -fields aggregate,total-logical-used,total-physical-used,aggr-logical-used,aggr-physical-used,total-storage-efficiency-ratio

aggregate                 total-logical-used     total-physical-used     total-storage-efficiency-ratio     aggr-logical-used     aggr-physical-used
-----------------             ------------------             -------------------             ------------------------------             -----------------             ------------------
aggr1_cluster2_01     7.32MB                     13.83MB                     1.00:1                                         13.83MB                   13.83MB


total-logical-used = 7.32 MB

----------------------------------------------------------------


28.32 GB derived from RestApi:

[cluster2/api/storage/aggregates?fields=space,space.block_storage.inactive_user_data,*]

 

Only Data Aggregates (No Root Aggregate):

<snip>
"space": {
"footprint": 25886720,
"block_storage": {
    "size": 30439669760,
    "available": 30404370432<<<-------
    "used": 35299328,
    "full_threshold_percent": 98
},
</snip>

Available Space: 30404370432/1024/1024/1024 == 28.32 GB

----

28.32 GB drived from Cluster CLI :

cluster2::*> df -A
Aggregate                           kbytes               used          avail         capacity
aggr0_unjoined                     3186052    3030024     156028          95%
aggr0_unjoined/.snapshot     167684         0             167684           0%
aggr1_cluster2_01             29726240     34332       29691908       0%     <<<<-------
aggr1_cluster2_01/.snapshot  0                  0              0                   0%
4 entries were displayed.

Available Space: 29691908 == 29691908/1024/1024 == 28.32 GB 
----------------------------------------------------------------------------

Additional Information

additionalInformation_text