Table of ContentsView in Frames

Sorting the statistics

You can sort the statistics by any counter to diagnose a performance issue or identify a hot spot. For example, you might want to collect volume statistics and sort by total operations to get a list of most active volumes.

Steps

  1. Switch to the advanced privilege level by using the set -privilege advanced command.
  2. View the sample data by using the statistics show command.
    Example
    In this example, the output shows the volumes by volume name, read operations, and write operations, and sorts the output by read_ops counter:
     ::>statistics show -object volume -counter read_ops|write_ops -filter "vserver_name=vs1,read_ops>15" -sort-key read_ops -sort-order ascending
    
    Object: volume
    Instance: vol1
    Start-time: 05/23/2014 4:00 PM
    End-time: 05/23/2014 4:10 PM
    Cluster: cluster1
    Number of Constituents: 1 (complete_aggregation)
      Counter                            Value 
      ---------------------------- ----------- 
      read_ops                              20   
      write_ops                             90  
    
    Object: volume
    Instance: vol2
    Start-time: 05/23/2014 4:00 PM
    End-time: 05/23/2014 4:10 PM
    Cluster: cluster1
    Number of Constituents: 1 (complete_aggregation)
      Counter                            Value 
      ---------------------------- ----------- 
      read_ops                              40    
      write_ops                             30