Actions
Bug #1730
closedcontrol interface: read rate couters doesn't work
Start date:
05/19/2016
Due date:
% Done:
100%
Spec Reference:
Description
the control interfaces for the rate_ctr doesn't works,
because it requires the name of a rate counter have to be in the format of 'foo.bar'.
cd openbsc/openbsc/contrib python2 bsc_control.py -d localhost -g "rate_ctr.per_hour.e1inp.hdlc.abort" -p 4249
produces the error
Got message: ERROR 1 Counter group not found.
because it tries to get the counter group 'e1inp.hdlc' instead of e1inp.
see http://git.osmocom.org/libosmocore/tree/src/ctrl/control_if.c#n554
Related issues
Updated by lynxis almost 8 years ago
- Subject changed from control interface: read couters doesn't work to control interface: read rate couters doesn't work
Updated by msuraev almost 8 years ago
- Blocks Feature #1651: document the control interface(s) of the various programs added
Updated by laforge almost 8 years ago
- Assignee set to msuraev
- Priority changed from Normal to Urgent
Updated by msuraev almost 8 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 90
Fix sent for review to gerrit: #274.
Note: the proper counter group name have to include index (see rate_ctr_group_alloc() and rate_ctr_group_upd_idx() in rate_ctr.h):
rate_ctr.per_hour.e1inp.0.alarm
rate_ctr.per_hour.e1inp.0.hdlc.abort
rate_ctr.per_hour.e1inp.0
The index is numerical value associated with particular counter (BVCI, TLLI, IMSI...) - by default use 0.
Updated by msuraev almost 8 years ago
- Status changed from In Progress to Resolved
- Assignee changed from msuraev to laforge
- % Done changed from 90 to 100
Fix has been merged to master.
Actions