Skip to main content

volume quota policy rule count show

Contributors
Suggest changes

Display count of quota rules

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

This command displays various counts of quota policy rules defined within a quota policy. By default, the subtotal for each volume is displayed. Optionally, the command can provide the total rule count across the entire quota policy or detailed subtotals organized by qtree and quota rule type.

Parameters

{ [-fields <fieldname>,…​]

If you specify the -fields <fieldname>, …​ parameter, the command output also includes the specified field or fields. You can use '-fields ?' to display the fields to specify.

| [-detail ]

Displays rule count subtotals for each quota rule type. The subtotals for each type are computed for a specific volume and qtree.

| [-hierarchy ]

Displays rule count subtotals in hierarchical format with subtotals at the quota policy, volume, qtree, and quota rule type levels.

| [-total ]

Displays the total rule count for each Vserver and quota policy.

| [-instance ] }

Displays detailed information about all fields.

[-vserver <vserver name>] - Vserver

Displays quota rule counts for the specified Vserver.

[-policy-name <text>] - Policy Name

Displays quota rule counts for the specified quota policy.

[-volume <volume name>] - Volume Name

Displays quota rule counts for the specified volume.

[-qtree <qtree name>] - Qtree Name

Displays quota rule counts for the specified qtree.

[-type {tree|user|group}] - Type

Displays quota rule counts for the specified quota rule type.

[-count-where-policy-volume-qtree-type <integer>] - Qtree/Type Subtotal

Subtotal of rules matching the given Vserver, quota policy, volume, qtree, and quota rule type. If specified as input, only matching totals are displayed.

[-count-where-policy-volume-qtree <integer>] - Qtree Subtotal

Subtotal of rules matching the given Vserver, quota policy, volume, and qtree. All quota rule types are included. If specified as input, only matching totals are displayed.

[-count-where-policy-volume-type <integer>] - Volume/Type Subtotal

Subtotal of rules matching the given Vserver, quota policy, volume, and quota rule type. All qtrees are included. If specified as input, only matching totals are displayed.

[-count-where-policy-volume <integer>] - Volume Subtotal

Subtotal of rules matching the given Vserver, quota policy, and volume. All qtrees and quota rule types are included. If specified as input, only matching totals are displayed.

[-count-where-policy-type <integer>] - Policy/Type Subtotal

Subtotal of rules matching the given Vserver, quota policy, and quota rule type. All volumes and qtrees are included. If specified as input, only matching totals are displayed.

[-count-where-policy <integer>] - Policy Total

Total rule count matching the given Vserver and quota policy. All volumes, qtrees, and quota rule types are included. If specified as input, only matching totals are displayed.

Examples

The following example shows quota rule counts for Vserver vs0 , quota policy default . The total number of rules in quota policy default is 7500. There are two volumes with quota rules configured. Volume volume0 has a total of 1000 rules, and volume1 has a total of 6500 rules.

cluster1::> volume quota policy rule count show -vserver vs0 -policy-name default

Vserver: vs0               Policy: default
Rule
Volume                         Count
--------------------------  --------
volume0                         1000
volume1                         6500
2 entries were displayed.