Using multistat to View the Output of Various stat Commands in Oracle Solaris 11.3

Version 1

    by Girish Chandra

     

    This article describes how to use multistat, an Oracle Solaris tool that helps Oracle Solaris administrators view the output of various Oracle Solaris commands such as vmstat, mpstat, and ipstat. Using this tool can help you deduce the state of the system, memory, CPU, and network by using one command. Prior to multistat, administrators had to run multiple commands and correlate their output one by one. The package described in this article is specifically for Oracle Solaris 11.3.

     

    Overview of multistat

     

    multistat is a single command encompassing multiple statistical commands. It gathers data from the Oracle Solaris kstat utility and DTrace framework. Output is color-coded based on previous values. For example, if a current value is greater than the corresponding previous value, it is displayed red, and if it is less than the previous value it is displayed green. If the current value is the same as the previous value, there is no change in the color.

     

    Because of these attributes, multistat is helpful for novice administrators.

     

    How to Download and Install the multistat Package

     

     

    Run the following commands to download and install the multistat.p5p file on to the system where you want to run the multistat utility. You can choose either the SPARC or x86 version, based on the system you have.

     

    root@s11u3-host:~# pkg list -g file:///export/home/jack/multistat.p5p
    NAME (PUBLISHER)                                  VERSION                    IFO
    system/tools/multistat (solaris)                  1.0                        ---
     
    root@s11u3-host:~# pkg install -g file:///export/home/jack/multistat.p5p pkg:/system/tools/multistat@1.0
               Packages to install:  1
           Create boot environment: No
    Create backup boot environment: No
     
    DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
    Completed                                1/1           1/1      0.0/0.0  8.2M/s
     
    PHASE                                          ITEMS
    Installing new actions                           5/5
    Updating package state database                 Done
    Updating package cache                           0/0
    Updating image state                            Done
    Creating fast lookup database                   Done
    Updating package cache                           3/3

     

    How to Run the multistat Utility

     

    The following steps help you run the multistat utility:

     

    • Use the following command to set the color scheme for the terminal:

      root@s11u3-host:~# export TERM=xterm-256color


    • Use the following command to run the utility:

      root@s11u3-host:~# /opt/multistat/bin/multistat 1


     

    Here is an example of the multistat output:

     

        memory          page           faults             cpu         network
       swap     free     pi  po   intr xcal csw sycal   usr sys idl    in     out
     32627320 28994200   0   0    1568  32  632  415     0   0  100    32.0  112.0
     32543656 28922780   0   0    2041  73  657 2279     0   0  100   302.0   6.9K
     32543656 28921876   0   0    2089   1  767  270     0   0  100   299.0  176.0
     32543656 28921868   0   0    2004  63  616  421     0   0  100   544.0  208.0
     32543656 28921868   0   0    2015  64  633  430     0   0  100   372.0  208.0
         
          memory          page           faults             cpu         network
       swap     free     pi  po   intr xcal csw sycal   usr sys idl    in     out
     32543656 28921860   0   0    1994  64  614 1811     0   0  100   545.0  192.0
     32543656 28921852   0   0    2045  63  665 2575     0   0  100   535.0  304.0
     32543656 28921852   0   0    2011  64  627 1360     0   0  100   222.0  192.0   
    ...

     

    The following image shows the color scheme in the terminal window when you use the multistat command:

     

    MultiStat-output.png

    Further Assistance

     

    For questions related to multistat, please send email to multistat_ww_grp@oracle.com.

     

    About the Author

     

    Girish Chandra has been working as principal software engineer in the Oracle Sustaining Group for the last eight years. He works on Fibre Channel device drivers such as Qlogic/Emulex and the Leadville stack. Prior to that he worked extensively on Oracle ZFS Storage Appliance and has been an expert in the area of identifying performance bottlenecks.

     

    Follow us:
    Blog | Facebook | Twitter | YouTube