Data ONTAP enables you to control the format and destination of the output of the stats command. This could be useful if you are processing the information with another tool or script, or if you want to store the output in a file so you can process it at a later time.
The following example displays output in rows:
toaster> stats show qtree:*:nfs_ops qtree:vol1/proj1:nfs_ops:186/s qtree:vol3/proj2:nfs_ops:208/s
The -c option formats the output in columns and is the default only if the -I option is specified.
The following example displays output in columns:
toaster> stats show -c qtree:*:nfs_ops Instance nfs_ops /s vol1/proj1 143 vol3/proj2 408
If you are displaying multiple objects that have different counters, the column format may be difficult to read. In this case, use the row format.
In the following example, the same counter is listed as for the column output example, except that it is comma-delimited.
cli> stats show -d , -c qtree:*:nfs_ops Instance nfs_ops /s vol1/proj1,265 vol3/proj2,12
The command in the following example filters output of the stats show command with zero counter values: stats show -O print_zero_values=off