-
Notifications
You must be signed in to change notification settings - Fork 298
/
README
32 lines (26 loc) · 1.53 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Usage: snabb config purge-alarms [OPTION]... ID STATE
Adds a new operator-state in an alarm.
Available options:
-s, --schema SCHEMA YANG data interface to request.
-r, --revision REVISION Require a specific revision of the YANG module.
-f, --format Selects output format (yang or xpath). Default: yang.
--print-default Forces print out of default values.
-h, --help Displays this message.
Filtering options:
--by-severity [severity-spec:value].
Severity spec: 'is', 'below', 'above'.
Value: 'indeterminate', 'minor', 'warning', 'major', 'critical'.
--by-older-than [age-spec:value].
Age spec: 'seconds', 'minutes', 'hours', 'days', 'weeks'.
Value: integer.
--by-operator-state-filter [state:user].
State (optional): 'none', 'ack', 'closed', 'shelved', 'un-shelved'.
User (optional): string.
Given an instance identifier and an alarm state ('any', 'cleared' or 'not-cleared')
remove all alarms that match the filtering options.
Typical usage:
$ sudo ./snabb config purge-alarms lwaftr any
$ sudo ./snabb config purge-alarms --by-severity above:minor lwaftr any
$ sudo ./snabb config purge-alarms --by-older-than minutes:5 lwaftr cleared
See https://github.com/Igalia/snabb/blob/lwaftr/src/program/config/README.md
for full documentation.