From 3d2f7ffe40c83b3af5e0bea1e6da100fb8682486 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 7 Dec 2017 15:56:25 +0100 Subject: [PATCH] Update CTRL example Use proper script new and repository location. Change-Id: I3c16f38ade6fcfadffd8d2573f71828119da055c --- common/chapters/control_if.adoc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/common/chapters/control_if.adoc b/common/chapters/control_if.adoc index c4d38d7..682483a 100644 --- a/common/chapters/control_if.adoc +++ b/common/chapters/control_if.adoc @@ -173,10 +173,10 @@ The old-style counters available via "+counter.*+" variables are superceeded by so its use is discouraged. There might still be some applications not yet converted to rate_ctr. -=== Control Interface python example: `bsc_control.py` +=== Control Interface python example: `osmo_ctrl.py` -In the `openbsc.git` repository, there is an example python script -called `openbsc/contrib/bsc_control.py` which implements the Osmocom +In the `osmo-python-tests` repository, there is an example python script +called `osmopy/osmo_ctrl.py` which implements the Osmocom control interface protocol. You can use this tool either stand-alone to perform control interface @@ -186,27 +186,27 @@ interface. ==== Setting a value -.Example: Use `bsc_control.py` to set the short network name of OsmoNITB +.Example: Use `osmo_ctrl.py` to set the short network name of OsmoBSC ---- -$ ./bsc_control.py -d localhost -s short-name 32C3 +$ ./osmo_ctrl.py -d localhost -s short-name 32C3 Got message: SET_REPLY 1 short-name 32C3 ---- ==== Getting a value -.Example: Use `bsc_control.py` to get the mnc of OsmoNITB +.Example: Use `osmo_ctrl.py` to get the mnc of OsmoBSC ---- -$ ./bsc_control.py -d localhost -g mnc +$ ./osmo_ctrl.py -d localhost -g mnc Got message: GET_REPLY 1 mnc 262 ---- ==== Listening for traps -You can use `bsc_control.py` to listen for traps the following way: +You can use `osmo_ctrl.py` to listen for traps the following way: -.Example: Using `bsc_control.py` to listen for traps: +.Example: Using `osmo_ctrl.py` to listen for traps: ---- -$ ./bsc_control.py -d localhost -m +$ ./osmo_ctrl.py -d localhost -m <1> ---- <1> the command will not return and wait for any TRAP messages to arrive