Go to main content

Using Oracle® Solaris 11.4 StatsStore and System Web Interface

Exit Print View

Updated: February 2019
 
 

Average Value

The op.avg operation operates on one or more resources and can take an optional agg argument. Time stamps are not matched across SSIDs.

  • op.avg gives the average of values for each time stamp that exists for all of the specified statistics

  • op.avg(agg=all) gives the average of values for each time stamp that exists for any of the specified statistics

  • op.avg(agg=time) gives the average of values for all time stamps for each specified statistic

The following example shows the average of the rate of bytes received and rate of bytes transmitted at each time stamp in the specified period:

$ sstore export -t 2016-03-10T13:18:34 -e 2016-03-10T13:18:38 \
> //:class.link/phys//:res.name/net0//:stat.*bytes//:op.rate//:op.avg
TIME                VALUE IDENTIFIER
2016-03-10T13:18:35 8778.502409667442 //:class.link/phys//:res.name/net0//:stat.obytes//:op.rate//:op.avg
2016-03-10T13:18:36 5069.138695990545 //:class.link/phys//:res.name/net0//:stat.obytes//:op.rate//:op.avg
2016-03-10T13:18:37 29.970778490971306 //:class.link/phys//:res.name/net0//:stat.obytes//:op.rate//:op.avg
2016-03-10T13:18:38 5457.80417042975 //:class.link/phys//:res.name/net0//:stat.obytes//:op.rate//:op.avg

The following example shows the average rate at which bytes were either received or transmitted over the specified period:

$ sstore export -t 2016-03-10T13:18:34 -e 2016-03-10T13:18:38 \
> //:class.link/phys//:res.name/net0//:stat.*bytes//:op.rate//:op.avg(agg=all)
TIME                VALUE IDENTIFIER
2016-03-10T13:18:38 4833.854013644677 //:class.link/phys//:res.name/net0//:stat.obytes//:op.rate//:op.avg(agg=all)

The following example shows the average bytes received over the specified period and the average bytes transmitted over the specified period:

$ sstore export -t 2016-03-10T13:18:34 -e 2016-03-10T13:18:38 \
> //:class.link/phys//:res.name/net0//:stat.*bytes//:op.rate//:op.avg(agg=time)
TIME                VALUE IDENTIFIER
2016-03-10T13:18:38 3146.217753278132 //:class.link/phys//:res.name/net0//:stat.obytes//:op.rate//:op.avg(agg=time)
2016-03-10T13:18:38 6521.490274011223 //:class.link/phys//:res.name/net0//:stat.rbytes//:op.rate//:op.avg(agg=time)