Bug #1702
closedrate_ctr/counter unavailable over control interface
0%
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" > rate_ctr
it looks as follows:
net <
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