ONTAP のSystem Managerダッシュボードの容量に相当するREST APIまたはCLIはどれですか?
環境
ONTAP System Manager 9.7以降
回答
ONTAP System Manager のダッシュボードの容量 には USED
、とのサイズが表示されます AVAILABLE
。
これらの値を取得するためのREST APIとCLIは次のとおりです。
- REST APIによる
USED
[<CLUSTER>/api/storage/cluster?fields=*]
- CLI
USED
::*> storage aggregate show-efficiency -aggregate <AGGREGATE> -fields aggregate,total-logical-used,total-physical-used,aggr-logical-used,aggr-physical-used,total-storage-efficiency-ratio
注: advanced権限が必要です。
- REST APIによる
AVAILABLE
[<CLUSTER>/api/storage/aggregates?fields=space,space.block_storage.inactive_user_data,*]
- CLI
AVAILABLE
::> df -A
例:
上のスクリーンショットに対応するREST APIとCLIの結果(使用容量は 7.32MB、使用可能容量は28.32GB )。
- REST API による
USED
[cluster2/api/storage/cluster?fields=*]
<snip>
{
"efficiency": {
"savings": 0,
"ratio": 1,
"logical_used": 7671808
},
</snip>
使用済み論理容量:7671808 == 7671808/1024/1024 == 7.32 MB
- CLI
USED
::*> 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
- REST APIによる
AVAILABLE
[cluster2/api/storage/aggregates?fields=space,space.block_storage.inactive_user_data,*]
データアグリゲートのみ(ルートアグリゲートなし):
<snip>
"space": {
"footprint": 25886720,
"block_storage": {
"size": 30439669760,
"available": 30404370432,
"used": 35299328,
"full_threshold_percent": 98
},
</snip>
使用可能スペース:30404370432/1024/1024/1024 == 28.32GB
- CLI
AVAILABLE
::> df -A
Aggregate kbytes used avail capacity
aggr1_cluster2_01 29726240 34332 29691908 0%
aggr1_cluster2_01/.snapshot 0 0 0 0%
使用可能スペース:29691908 == 29691908 / 1024 / 1024 == 28.32GB
追加情報
AdditionalInformation_text