Table of ContentsLibraryView in Frames

Using the stats command interactively in repeat mode

Using the stats command in repeat mode enables you to see a statistic every few seconds.

Step

  1. Enter the following command:stats show [-n num] [-i interval] object_def [object_def...]

    num specifies the number of times you want the command to be run. If this parameter is omitted, the command is repeated until you issue a break.

    interval specifies the interval between the iterations of the stats command. The default value is one second.

    object_def is one of the following values:
    • An object name (object_name). For example, stats show system.

      This returns statistics from all counters provided for all instances of the specified object.

    • The name of a specific instance (object_name:instance_name). For example, stats show processor:processor0.

      This returns statistics from all counters provided for the specified instance of the specified object.

    • The name of a specific counter (object_name:instance_name:counter_name). For example, stats show system:*:net_data_recv.
      Note: To see the statistic for all instances of the object, use an asterisk (*) for the instance name.

      To specify an instance name that includes spaces, enclose the name in double quotes ("name with spaces").

      To specify an instance name that contains a colon (:), repeat the colon (disk:20::00::00::20::37::de::4a::8e).

    • An asterisk (*)

      This returns statistics for all instances of all objects.

Example stats show command in repeat mode

The following command shows how your processor usage is changing over time:

stats show -i 1 processor:*:processor_busy
Instance processor_busy
                    %
processor0            32
processor1             1
processor0            68
processor1            10
processor0            54
processor1            29
processor0            51
...