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

クォータレポートコマンドの出力単位を指定できますか。

Views:
46
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

環境

ONTAP 9

回答

  • quota report コマンド出力の単位は set -units <Unit> 、コマンドで設定できます。
  • set コマンドは quota report 、コマンドだけでなく、すべてのコマンド出力に影響します。
  1. set コマンドを実行して、現在のサイズ単位の設定を確認します。
  2. コマンドを実行set -unitsして、指定可能な値のサブグループをチェックしてください。
  3. set -units <Unit> コマンドを実行して単位を設定します。
  4. set -unitsコマンドを実行して、現在のサイズ単位の設定が変更されたことを確認します。
  5. 同じコマンドを使用して単位を変更することを確認します。

例:

cluster2::*>クォータレポート

Vserver: svm21

                   ----Disk----  ----Files-----   Quota
Volume   Tree    Type   ID     Used  Limit   Used   Limit   Specifier
-------  --------  ------  -------  -----  -----  ------  ------   ---------
vol1    qtree1   tree   1      4KB 550MB    5     -   qtree1

cluster2::*> set
User Name:        admin
Profile Name:      admin
Privilege Level:     diagnostic
Confirmation Messages: on
Show All Fields:     false
Show Field Separator:
Data Units:       auto
Pagination Rows:     32
Default Vserver:
Default Node:
Stop On Error:      false
Prompt Timestamp:

cluster2::*> set -units ?
  auto             Auto-scale data size for human readable output
  raw              Bytes without unit designation
  B               Bytes
  KB              Kilobytes
  MB              Megabytes
  GB              Gigabytes
  TB              Terabytes
  PB              Petabytes

cluster2::*> set -unit MB

cluster2::*> set
User Name:        admin
Profile Name:      admin
Privilege Level:     diagnostic
Confirmation Messages: on
Show All Fields:     false
Show Field Separator:
Data Units:       MB
Pagination Rows:     32
Default Vserver:
Default Node:
Stop On Error:      false
Prompt Timestamp:

cluster2::*> quota report
Vserver: svm21

                   ----Disk----  ----Files-----   Quota
Volume   Tree    Type   ID     Used  Limit   Used   Limit   Specifier
-------  --------  ------  -------  -----  -----  ------  ------   ---------
vol1    qtree1   tree   1      0MB 550MB    4     -   qtree1

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.