vici: Add 'get|reset-counters' commands

This commit is contained in:
Tobias Brunner
2017-11-08 16:28:28 +01:00
parent 6f74b8748a
commit fdf33b0f1c
4 changed files with 191 additions and 1 deletions
+29
View File
@@ -682,6 +682,35 @@ List currently loaded algorithms and their implementation.
}
}
### get-counters() ###
List global or connection-specific counters for several IKE events.
{
name = <optional connection name, omit for global counters>
all = <yes to get counters for all connections, name is ignored>
} => {
counters = {
<name|empty for global counters> = {
<pairs of counter name and 64-bit counter value>
}
}
success = <yes or no>
errmsg = <error string on failure>
}
### reset-counters() ###
Reset global or connection-specific IKE event counters.
{
name = <optional connection name, omit for global counters>
all = <yes to reset counters for all connections, name is ignored>
} => {
success = <yes or no>
errmsg = <error string on failure>
}
## Server-issued events ##
Based on the packet layer, the vici plugin raises event messages using named