Skip to main content

We've Moved!

Product Documentation has moved to docs.hitachivantara.com
Hitachi Vantara Knowledge

Managing statistics

How to manage statistics available in the Content Software for File system using the CLI. For a list of statistics, see List of statistics in the Content Software for File User Guide.

Listing statistic types using the CLI

Commandweka stats list-types

Use the following command line to obtain statistics definition information:

weka stats list-types [<name-or-category>] [--show-internal]
Parameters
NameTypeValueLimitationsMandatoryDefault
name-or-categoryStringName or category to filter byValid name or categoryNo
show-internalBooleanAlso displays internal statisticsNoFalse

Viewing statistics in realtime using the CLI

Commandweka stats realtime

Use the following command line to obtain the current performance-related statistics of the hosts, in a one-second interval:

weka stats realtime [<node-ids>] [--raw-units] [--UTC]
Parameters
NameTypeValueLimitationsMandatoryDefault
node-idsComma-separated stringsOnly show realtime stats of these nodesNo
raw-unitsBooleanPrint values in raw units (bytes, seconds, among others)NoHumanreadable format, for example, 1KiB 234MiB 2GiB
UTCBooleanPrint times in UTCNoHost's local time

Viewing statistics over time using the CLI

Commandweka stats

The collected statistics can help analyze system performance and determine the source of issues that may occur during Content Software for File system runs. Statistics are divided according to categories. When selecting a category, a list of the possible statistics is displayed, from which you can select the specific statistics.

NoteContent Software for File averages all statistics over one-second intervals. Consequently, the total value or other aggregates relate to a specific minute.

Use the following command line to manage filters and read statistics:

weka stats [--start-time <start-time>] [--end-time <end-time>] [--interval interval] [--resolution-secs resolution-secs] [--category category][--stat stat] [--node-ids node-ids] [--param param] [--accumulated] [--per-node] [--no-zeros] [--show-internal] [--raw-units] [--UTC]
Parameters
NameTypeValueLimitationsMandatoryDefault
start-timeStringStart time of the reported periodFormat: 5m, -5m, -1d, -1w, 1:00, 01:00, 18:30, 18:30:07, 2018-12-31 10:00, 2018/12/31 10:00, 2018-12-31T10:00, 9:15Z, 10:00+2:00Yes
end-timeStringEnd time of the reported periodFormat: 5m, -5m, -1d, -1w, 1:00, 01:00, 18:30, 18:30:07, 2018-12-31 10:00, 2018/12/31 10:00, 2018-12-31T10:00, 9:15Z, 10:00+2:00NoCurrent time
intervalStringPeriod of time to be reportedValid interval in seconds (positive integer number)Yes
resolution-secsStringLength of each interval in the reported periodMust be multiples of 60 secondsNo60
categoryStringSpecific categories for retrieval of appropriate statisticsValid existing categories: CPU, Object Store, Operations, Operations (NFS), Operations (Driver), and SSDNoAll
statStringStatistics namesValid statistics namesNoAll
node-idsStringNode idValid node-idNoAll
paramStringFor parameterized statistics, retrieve only the instantiations where the specified parameter is of the specified value. Multiple values can be supplied for the same key, for example, '-- param method:putBlocks -- param method:initBlock'Format: key:valNo
accumulatedBooleanDisplay accumulated statistics, not rate statisticsNoFalse
per-nodeBooleanDoes not aggregate statistics across nodesNoFalse
no-zerosBooleanFilters results where the value is 0NoFalse
show-internalBooleanAlso displays internal statisticsNoFalse
raw-unitsBooleanPrint values in raw units (bytes, seconds, among others.)NoHumanreadable format, for example 1KiB 234MiB 2GiB
UTCBooleanPrint times in UTCNo

Host's local time

Setting statistic retention using the CLI

Commandweka stats retention set

Use the following command line to set the statistics retention period:

weka stats retention set <--days days> [--dry-run]
Parameters
NameTypeValueLimitationMandatoryDefault
daysNumberThe number of days to keep the statistics.Should have enough free disk space per server.Yes
dry-runBooleanOnly test the required capacity per the retention period.No

Use weka stats retention status to view the current retention and weka stats retention restore-default to restore the default retention settings.