Update CTRL example
Use proper script new and repository location. Change-Id: I3c16f38ade6fcfadffd8d2573f71828119da055c
This commit is contained in:
parent
cdbaabae35
commit
3d2f7ffe40
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue