blob: 5f24746494bdf82a4a448ea945ddaf9eb2a9528e [file] [log] [blame]
Neels Hofmeyr25dd7852017-09-25 16:37:34 +02001== Running OsmoHLR
2
3The OsmoHLR executable (`osmo-hlr`) offers the following command-line
4arguments:
5
6=== SYNOPSIS
7
8*osmo-hlr* [-h|-V] [-d 'DBGMASK'] [-D] [-c 'CONFIGFILE'] [-s] [-T] [-e 'LOGLEVEL'] [-l 'DATABASE']
9
10=== OPTIONS
11
12*-h, --help*::
13 Print a short help message about the supported options
14*-V, --version*::
15 Print the compile-time version number of the OsmoBTS program
16*-d, --debug 'DBGMASK','DBGLEVELS'*::
17 Set the log subsystems and levels for logging to stderr. This
18 has mostly been superseded by VTY-based logging configuration,
19 see <<logging>> for further information.
20*-D, --daemonize*::
21 Fork the process as a daemon into background.
22*-c, --config-file 'CONFIGFILE'*::
23 Specify the file and path name of the configuration file to be
Daniel Willmann79efdf32018-10-23 18:17:28 +020024 used. If none is specified, use `osmo-hlr.cfg` in the current
Neels Hofmeyr25dd7852017-09-25 16:37:34 +020025 working directory.
26*-s, --disable-color*::
27 Disable colors for logging to stderr. This has mostly been
28 deprecated by VTY based logging configuration, see <<logging>>
29 for more information.
30*-T, --timestamp*::
31 Enable time-stamping of log messages to stderr. This has mostly
32 been deprecated by VTY based logging configuration, see
33 <<logging>> for more information.
34*-e, --log-level 'LOGLEVEL'*::
35 Set the global log level for logging to stderr. This has mostly
36 been deprecated by VTY based logging configuration, see
37 <<logging>> for more information.
38*-l, --database 'DATABASE'*::
39 Specify the file name of the SQLite3 database to use as HLR/AUC
40 storage
41
42=== Bootstrap the Database
43
Neels Hofmeyr849bfd02017-12-07 17:32:07 +010044If no database exists yet, OsmoHLR will automatically create and bootstrap a
45database file with empty tables. If no `-l` command-line option is provided,
46this database file will be created in the current working directory.
Neels Hofmeyr25dd7852017-09-25 16:37:34 +020047
Neels Hofmeyr849bfd02017-12-07 17:32:07 +010048Alternatively, you may use the `osmo-hlr-db-tool`, which is installed along
49with `osmo-hlr`, to bootstrap an empty database, or to migrate subscriber data
50from an old 'OsmoNITB' database. See `osmo-hlr-db-tool --help`.
Neels Hofmeyr25dd7852017-09-25 16:37:34 +020051
52=== Multiple instances
53
54Running multiple instances of `osmo-hlr` on the same computer is possible if
55all interfaces (VTY, CTRL) are separated using the appropriate configuration
56options. The IP based interfaces are binding to local host by default. In order
57to separate the processes, the user has to bind those services to specific but
58different IP addresses and/or ports.
59
60The VTY and the Control interface can be bound to IP addresses from the loopback
61address range, for example:
62
63----
64line vty
65 bind 127.0.0.2
66ctrl
67 bind 127.0.0.2
68----
69
70The GSUP interface can be bound to a specific IP address by the following
71configuration options:
72
73----
74hlr
75 gsup
76 bind ip 10.23.42.1
77----
78
79NOTE: At the time of writing, OsmoHLR lacks a config option to change the GSUP
80port, which is by default TCP port 4222.