Go to main content

Using Oracle® Solaris 11.4 StatsStore and System Web Interface

Exit Print View

Updated: November 2020
 
 

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 returns the average of the values of all of the specified statistics for each time stamp

  • op.avg(agg=all) returns in a single value the average of all of the values of all of the specified statistics over all specified time stamps

  • op.avg(agg=time) returns 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 the rate of bytes transmitted at each time stamp in the specified period:

$ sstore export -t 2020-08-26T20:27:28 -e 2020-08-26T20:27:32 \
> //:class.link/phys//:res.name/net0//:stat.//:s.[in-bytes,out-bytes]//:op.rate//:op.avg
TIME                VALUE IDENTIFIER
2020-08-26T20:27:28 1750.4253606931366 //:class.link/phys//:res.name/net0//:stat.//:s.[in-bytes,out-bytes]//:op.rate//:op.avg
2020-08-26T20:27:29 1750.4253606931366 //:class.link/phys//:res.name/net0//:stat.//:s.[in-bytes,out-bytes]//:op.rate//:op.avg
2020-08-26T20:27:30 1230.0049200196802 //:class.link/phys//:res.name/net0//:stat.//:s.[in-bytes,out-bytes]//:op.rate//:op.avg
2020-08-26T20:27:31 1227.9418727689435 //:class.link/phys//:res.name/net0//:stat.//:s.[in-bytes,out-bytes]//: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 2020-08-26T20:27:28 -e 2020-08-26T20:27:32 \
> //:class.link/phys//:res.name/net0//:stat.//:s.[in-bytes,out-bytes]//:op.rate//:op.avg(agg=all)
TIME                VALUE IDENTIFIER
2020-08-26T20:27:31 1269.5934733713102 //:class.link/phys//:res.name/net0//:stat.//:s.[in-bytes,out-bytes]//:op.rate//:op.avg(agg=all)

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

$ sstore export -t 2020-08-26T20:27:28 -e 2020-08-26T20:27:32 \
> //:class.link/phys//:res.name/net0//:stat.//:s.[in-bytes,out-bytes]//:op.rate//:op.avg(agg=time)
TIME                VALUE IDENTIFIER
2020-08-26T20:27:31 2502.187908717609  //:class.link/phys//:res.name/net0//:stat.in-bytes//:op.rate//:op.avg(agg=time)
2020-08-26T20:27:31 36.999038025011345 //:class.link/phys//:res.name/net0//:stat.out-bytes//:op.rate//:op.avg(agg=time)