From 286ba0e68f0317c7e1d3d905101a1bc68a59d15f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 3 May 2011 18:12:39 +0200 Subject: bsc: Provide a show statistics command --- openbsc/src/osmo-bsc/osmo_bsc_vty.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openbsc/src/osmo-bsc/osmo_bsc_vty.c b/openbsc/src/osmo-bsc/osmo_bsc_vty.c index 055f27ddb..0b1698e41 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_vty.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_vty.c @@ -325,6 +325,15 @@ DEFUN(cfg_net_rf_socket, return CMD_SUCCESS; } +DEFUN(show_statistics, + show_statistics_cmd, + "show statistics", + SHOW_STR "Statistics about the BSC\n") +{ + openbsc_vty_print_statistics(vty, bsc_gsmnet); + return CMD_SUCCESS; +} + int bsc_vty_init_extra(void) { install_element(CONFIG_NODE, &cfg_net_msc_cmd); @@ -344,5 +353,7 @@ int bsc_vty_init_extra(void) install_element(MSC_NODE, &cfg_net_msc_welcome_ussd_cmd); install_element(MSC_NODE, &cfg_net_rf_socket_cmd); + install_element_ve(&show_statistics_cmd); + return 0; } -- cgit v1.2.3