Skip to main content

We've Moved!

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

Managing events

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

Viewing events using the CLI

Commandweka events

Use the following command line to list events in the Content Software for File cluster:

weka events [--num-results num-results] [--start-time <start-time>] [--end-time <end-time>] [--severity severity] [--direction direction] [--fetch-order fetch-order] [--type-list type-list] [--exclude-type-list exclude-type-list] [--category-list category-list] [--cloud-time] [--show-internal] [--raw-units] [--UTC]
Parameters
NameTypeValueLimitationsMandatoryDefault
num-resultsIntegerMaximum number of events to displayPositive integer. 0 shows all eventsNo50
start-timeStringInclude events that occurred at this start time and laterFormat: 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:00No-365 days
end-timeStringInclude events that occurred up to this timeFormat: 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:00NoSet to a time represents 'now'
severityStringInclude events with this level of severity and higher'info', 'warning', 'minor', 'major' or 'critical'NoINFO
directionStringSort events by ascending or descending time'asc' or 'dsc'Noasc
fetch-orderStringFetch from end-time backwards or from start-time forwards'fw' or 'bw'Nobw
type-listStringFilter events by type (can be used multiple times)Use weka events list-types to see available typesNoNone
exclude-type-listStringFilter-out events by type (can be used multiple times)Use weka events list-types to see available types
category-listStringInclude only events matching the defined categoryCategories can be Alerts, Cloud, Clustering, Drive, Events, Filesystem, IO, InterfaceGroup, Licensing, NFS, Network, Node, ObjectStorage, Raid, Statistics, System, Upgrade, and UserNoAll
cloud-timeBooleanQuery and sort results by the digested time in the cloud NoFalse
show-internalBooleanAlso displays internal eventsNoFalse
raw-unitsBooleanPrint values in raw units (bytes, seconds, among others)NoHuman-readable format, for example, 1KiB 234MiB 2GiB
UTCBooleanPrint times in UTCNoHost's local time

Listing local events using the CLI

Commandweka events list-local

Use the following command line to list recent events on the specific host running the command from.

This command is helpful for the following cases:

  • No connectivity to the central monitoring site
  • No connectivity from a specific host
  • Hosts that are not part of the cluster
weka events list-local [--start-time <start-time>] [--end-time <end-time>] [--next next] [--stem-mode] [--show-internal] [--raw-units] [--UTC]
Parameters
NameTypeValueLimitationsMandatoryDefault
start-timeStringInclude events that occurred at this start time and laterFormat: 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:00no-365 days
end-timeStringInclude events that occurred up to this timeFormat: 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:00NoSet to a time represents 'now'
nextStringIdentifier to the next page of eventsAs returned in the previous call to weka events list-localNo
stem-modeBooleanDisplays events when the host has not been attached to the clusterNoFalse
show-internalBooleanAlso displays internal eventsNoFalse
raw-unitsBooleanPrint values in raw units (bytes, seconds, among others.)NoHuman-readable format, for example, 1KiB 234MiB 2GiB
UTCBooleanPrint times in UTCNoHost's local time

Triggering a custom event using the CLI

Commandweka events trigger-event

It can be useful to mark specific activities, maintenance work, or important changes/new usage of the system, and see that as part of the system events timeline.

To trigger a custom event, use:

weka events trigger-event <text>