Go to main content

Using Oracle® Solaris 11.4 StatsStore and System Web Interface

Exit Print View

Updated: February 2019
 
 

Using the sstore Command in Interactive Mode

Invoking the sstore command with no subcommand opens an interactive, shell-like environment that enables you to quickly explore the statistics store namespace. See the sstore(1) man page for the full descriptions of commands that are supported in the sstore shell.

Example 4  Exploring Statistics in Interactive Mode

This example shows exploring the usage statistic in the cpu class in sstore interactive mode.

$ sstore
Interactive mode. Type help to see list of commands.
//: > help
sstore commands: capture export info list pwd select
sstore aliases:  cat cd ls
other commands:  alias help history exit quit shell !
//: > alias
alias cat=capture
alias cd=select
alias ls=list
//: > cd class.cpu
//:class.cpu//: > ls
event.adm-action
event.alert
event.fault
res.id/0
res.id/1
res.id/2
res.id/3
stat.context-switches
stat.interrupt-count
stat.interrupt-time
stat.involuntary-context-switches
stat.system-calls
stat.thread-migrations-away
stat.traps
stat.usage
stat.xcalls
//:class.cpu//: > ls -l
//:class.cpu//:event.adm-action CPU admin event
//:class.cpu//:event.alert      CPU alert event
//:class.cpu//:event.fault      CPU fault event
//:class.cpu//:res.id/0 cpu instance
//:class.cpu//:res.id/1 cpu instance
//:class.cpu//:res.id/2 cpu instance
//:class.cpu//:res.id/3 cpu instance
//:class.cpu//:stat.context-switches    context switches
//:class.cpu//:stat.interrupt-count     interrupt count
//:class.cpu//:stat.interrupt-time      interrupt time
//:class.cpu//:stat.involuntary-context-switches        involuntary context switches
//:class.cpu//:stat.system-calls        system calls
//:class.cpu//:stat.thread-migrations-away      threads migrated to another strand
//:class.cpu//:stat.traps       traps
//:class.cpu//:stat.usage       cpu time
//:class.cpu//:stat.xcalls      cross calls
//:class.cpu//: > info stat.usage
 Identifier: //:class.cpu//:stat.usage
    $schema: //:stat
  stability: stable
  copyright: Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
description: cpu time
      units: milliseconds
         id: //:class.cpu//:stat.usage
   localize: description
 multiplier: 1000000
       type: counter
 partitions: cpu
 partitions: mode
 partitions: zone
 partitions: core
 partitions: chip
 partitions: pg
 partitions: lgroup
//:class.cpu//: > cd stat.usage
//:class.cpu//:stat.usage//: > cd part.mode
//:class.cpu//:stat.usage//:part.mode//: > cat
TIME                VALUE IDENTIFIER
2015-12-06T00:38:41  //:class.cpu//:stat.usage//:part.mode//:part.chip
                    0: 928387390.795053
2015-12-06T00:38:41  //:class.cpu//:stat.usage//:part.mode//:part.core
                    0: 232115281.350648
                    1: 232090768.075102
                    2: 232090682.574741
                    3: 232090658.794562
2015-12-06T00:38:41  //:class.cpu//:stat.usage//:part.mode//:part.cpu
                    0: 232115281.350648
                    1: 232090768.075102
                    2: 232090682.574741
                    3: 232090658.794562
^C//:class.cpu//:stat.usage//:part.mode//: > history
-------------------------[1]
help
-------------------------[2]
alias
-------------------------[3]
cd class.cpu
-------------------------[4]
ls
-------------------------[5]
ls -l
-------------------------[6]
info stat.usage
-------------------------[7]
cd stat.usage
-------------------------[8]
cd part.mode
-------------------------[9]
cat
//:class.cpu//:stat.usage//:part.mode//: > q
$