volume qtree statistics

Contributors

Display qtree statistics

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

Description

This command displays NFS and CIFS operations statistics for qtrees. Note that qtree statistics are available only when the volume containing the qtree is online. This command is not supported on Infinite Volumes.

Statistics are cumulative values from the time the volume is brought online or when the statistics have been reset by using the "volume qtree statistics-reset " command.

The command output depends on the parameters specified with the command. If no parameters are specified, the command displays the following statistics information about all qtrees:

  • Vserver name

  • Volume name

  • Qtree name

  • NFS operations

  • CIFS operations

Note Qtree statistics are not persistent. If you restart a node, if a storage takeover and giveback occurs, or if the containing volume is set to offline and then online, qtree statistics are set to zero.

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.

| [-internal ]

If this parameter is specified, the output will also include the internal operation statistics. Internal operation is any operation on the qtree that originated within Data ONTAP software.

| [-no-reset ]

If this parameter is specified, the output will display the NFS and CIFS op statistics since the time the volume was online.

| [-no-reset-internal ]

If this parameter is specified, the output will also include the internal op statistics since the time the volume was online.

| [-instance ] }

If you specify the -instance parameter, the command displays detailed information about all fields.

[-vserver <vserver name>] - Vserver Name

If this parameter is specified, the command displays information about the qtrees on the specified Vserver.

{ [-volume <volume name>] - Volume Name

If this parameter is specified, the command displays information about the qtrees on the specified volume.

[-qtree <qtree name>] - Qtree Name

If this parameter is specified, the command displays information about the specified qtree.

| [-qtree-path <qtree path>] - Actual (Non-Junction) Qtree Path }

The qtree path argument in the format /vol/<volume name>/<qtree name> can be specified instead of specifying volume and qtree as separate arguments. The automatically created qtree0 can be represented as /vol/<volume name>.

Examples

The following example displays statistics information for all qtrees on the Vserver named vs0.

cluster1::> volume qtree statistics -vserver vs0
Vserver    Volume        Qtree        NFS Ops      CIFS Ops
---------- ------------- ------------ ------------ ----------
vs0        vol0          qtree1       10876        2678
vs0        vol1          qtree1a      16543        0
vs0        vol2          qtree2       0            0
vs0        vol2          qtree2a      0            0
4 entries were displayed.

The following example displays statistics information for qtrees on Vserver vs0 that have NFS ops more than 15000.

cluster1::> volume qtree statistics -vserver vs0 -nfs-ops >15000
Vserver    Volume        Qtree        NFS Ops      CIFS Ops
---------- ------------- ------------ ------------ ----------
vs0        vol1          qtree1a      16543        0