Project

General

Profile

Actions

Bug #1702

closed

rate_ctr/counter unavailable over control interface

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

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
05/06/2016
Due date:
% Done:

0%

Spec Reference:

Description

When trying to get the value of (rate) counter using ./contrib/bsc_control.py error is returned:

./contrib/bsc_control.py -d localhost -g "rate_ctr *"
Got message: ERROR 1 Command not found

./contrib/bsc_control.py -d localhost -g "rate_ctr net.sms.submitted"
Got message: ERROR 1 Command not found

The rate_ctr variable is registered in libosmocore src/ctrl/control_if.c:ctrl_interface_setup_dynip() so it should be available to all osmocom programs using ctrl interface.

Curiously when running commands above, following list is traversed for matches:
rate_ctr <-> mnc
rate_ctr <-> mcc
rate_ctr <-> short-name
rate_ctr <-> long-name
rate_ctr <-> apply-configuration
rate_ctr <-> mcc-mnc-apply
rate_ctr <-> rf_locked
rate_ctr <-> number-of-bts
rate_ctr <-> subscriber-modify-v1
rate_ctr <-> subscriber-delete-v1
rate_ctr <-> subscriber-list-active-v1

while in case of
./contrib/bsc_control.py d localhost -g "net.sms.submitted"
it looks as follows:
net <
> rate_ctr
net <-> counter
net <-> mnc
net <-> mcc
net <-> short-name
net <-> long-name
net <-> apply-configuration
net <-> mcc-mnc-apply
net <-> rf_locked
net <-> number-of-bts
net <-> subscriber-modify-v1
net <-> subscriber-delete-v1
net <-> subscriber-list-active-v1

Lists are obtained from ctrl_cmd_get_element_match() in control_cmd.c

The tests were done against osmo-nitb so bsc_ctrl_node_lookup() from bsc_ctrl_lookup.c might be related

Actions #1

Updated by msuraev almost 8 years ago

  • Status changed from New to Rejected

False alarm - the proper use is
./contrib/bsc_control.py -d localhost -g "counter.net.sms.submitted"
The rate counters are allocated using rate_ctr_group_alloc() while "old" counters using osmo_counter_alloc()

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)