Project

General

Profile

Actions

Bug #1730

closed

control interface: read rate couters doesn't work

Added by lynxis almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
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

Blocks Cellular Network Infrastructure - Feature #1651: document the control interface(s) of the various programsClosedlaforge03/11/2016

Actions
Actions #1

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
Actions #2

Updated by msuraev almost 8 years ago

  • Blocks Feature #1651: document the control interface(s) of the various programs added
Actions #3

Updated by laforge almost 8 years ago

  • Assignee set to msuraev
  • Priority changed from Normal to Urgent
Actions #4

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.

Actions #5

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 #6

Updated by laforge almost 8 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)