Skip to content

Commit

Permalink
Update lwAFTR query documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dpino committed Aug 26, 2016
1 parent 58691a2 commit b69925f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/program/lwaftr/query/README
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
Usage:
query [OPTIONS] [<pid>] [<counter-name>]
query [OPTIONS] [<id>] [<counter-name>]

Options:

-h, --help Print usage information.
-l, --list-all List all available counter names.

Display current statistics from lwAftr counters for a running Snabb instance
with <pid>. If <pid> is not supplied and there is only one Snabb instance,
"query" will connect to that instance.
Display current statistics from lwAFTR counters for a running Snabb instance
with <id>. <id> can be either a PID or a string ID:

* If it is a PID, <id> should exists at /var/run/snabb/<id>.
* If it is a string ID, <id> should match the value defined
in /var/run/snabb/*/nic/id.

If <pid> is not supplied and there is only one Snabb instance, "query" will
connect to that instance.

If <counter-name> is set, only counters partially matching <counter-name> are
listed.
Expand Down

0 comments on commit b69925f

Please sign in to comment.