forked from snabbco/snabb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request snabbco#941 from dpino/alarm-purge-alarms
Implement purge alarms
- Loading branch information
Showing
8 changed files
with
339 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README |
Oops, something went wrong.