Skip to main content

NetApp_Insight_2020.png 

NetApp Knowledgebase

Is it possible to specify the unit of quota report command output?

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

Applies to

  • ONTAP 9

Answer

The units of quota report command output can set by set -units <Unit> command.
The set command effect to all command output, not only quota report command.
  1. Check the setting of current units of size by executing the set command.
  2. Check the specifiable values​ by executing the  set -units command.
  3. Set  the unit by executing the set -units <Unit> command.
  4. Confirm the change in the setting of current units of size by executing the  set -units command.
  5. Confirm the change the units by the same command.

Example:

cluster2::*> quota report

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

Additional Information