Viewing events using the CLI

Content Software for File CLI Reference

Version
4.2.x
Audience
anonymous
Part Number
MK-HCSF001-03

Command

weka 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

Name Type Value Limitations Mandatory Default
num-results Integer Maximum number of events to display Positive integer. 0 shows all events No 50
start-time String Include events that occurred at this start time and later Format: 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:00 No -365 days
end-time String Include events that occurred up to this time Format: 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:00 No Set to a time represents 'now'
severity String Include events with this level of severity and higher 'info', 'warning', 'minor', 'major' or 'critical' No INFO
direction String Sort events by ascending or descending time 'asc' or 'dsc' No asc
fetch-order String Fetch from end-time backwards or from start-time forwards 'fw' or 'bw' No bw
type-list String Filter events by type (can be used multiple times) Use weka events list-types to see available types No None
exclude-type-list String Filter-out events by type (can be used multiple times) Use weka events list-types to see available types    
category-list String Include only events matching the defined category Categories can be Alerts, Cloud, Clustering, Drive, Events, Filesystem, IO, InterfaceGroup, Licensing, NFS, Network, Node, ObjectStorage, Raid, Statistics, System, Upgrade, and User No All
cloud-time Boolean Query and sort results by the digested time in the cloud   No False
show-internal Boolean Also displays internal events   No False
raw-units Boolean Print values in raw units (bytes, seconds, among others)   No Human-readable format, for example, 1KiB 234MiB 2GiB
UTC Boolean Print times in UTC   No Host's local time