Location of the DB of OpenBSC
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, List! OpenBSC saves his DB normally in the current directory, but I can overwrite this property with -l. Now I'd like to know WHERE OpenBSC created the DB, and what is his name. Is it possible? I searched in the telnet's commands but I found anything useful... Thanks a lot - -- _______________________________________________________________________ Luca Bertoncello Entwicklung Mail: bertoncello@netzing.de NETZING Solutions AG Tel.: 0351/41381 - 0 Kesselsdorfer Str. 216, 01169 Dresden Fax: 0351/41381 - 12 HRB 18926 / Ust.ID DE211326547 Mail: netzing.ag@netzing.de _______________________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFMH27kAXzltVKV/2wRAhf5AKCTWzNChFAa+p8NfWppobxLCOU91wCcCaAd Ez8o4AvIPuC0lvrSU89sBDo= =++RV -----END PGP SIGNATURE-----
Hi,
OpenBSC saves his DB normally in the current directory, but I can overwrite this property with -l. Now I'd like to know WHERE OpenBSC created the DB, and what is his name. Is it possible?
If the process is still running, you can inspect the open file descriptors in /proc/xxx/fd or with the lsof utility. Cheers, Sylvain
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Mon, 21 Jun 2010 16:00:41 +0200 schrieb Sylvain Munaut <246tnt@gmail.com>:
If the process is still running, you can inspect the open file descriptors in /proc/xxx/fd or with the lsof utility.
Of course, I can do it, but I hoped there is a "native method" in OpenBSC, to get this value... In bsc_hack.c I see the variable "database_name" is global. It should not be difficult to create a telnet command to inspect this value, or to give it in the output other commands (show?). Bye - -- _______________________________________________________________________ Luca Bertoncello Entwicklung Mail: bertoncello@netzing.de NETZING Solutions AG Tel.: 0351/41381 - 0 Kesselsdorfer Str. 216, 01169 Dresden Fax: 0351/41381 - 12 HRB 18926 / Ust.ID DE211326547 Mail: netzing.ag@netzing.de _______________________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFMH3R+AXzltVKV/2wRAkNLAKDnUhgHxG5k03d8HD2U17Y/FvTwVgCg11MP UJt5GZX59SxHJXkUkuUiy1U= =MPOT -----END PGP SIGNATURE-----
On 06/21/2010 09:53 PM, Luca Bertoncello wrote:
Hi, List!
OpenBSC saves his DB normally in the current directory, but I can overwrite this property with -l. Now I'd like to know WHERE OpenBSC created the DB, and what is his name. Is it possible?
I searched in the telnet's commands but I found anything useful...
you will have to do: ls -la /proc/`pidof bsc_hack`/fd/ and find the fd for sqlite, adding a vty command for printing the databasename should not be that hard either.
participants (3)
-
Holger Hans Peter Freyther -
Luca Bertoncello -
Sylvain Munaut