aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc/osmo_bsc_vty.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-05-03 18:12:39 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-05-04 11:34:44 +0200
commit286ba0e68f0317c7e1d3d905101a1bc68a59d15f (patch)
treefe607bdbd8863f787cdb0c0267ccc5e14dc5f373 /openbsc/src/osmo-bsc/osmo_bsc_vty.c
parent0dc36f1e3aff5a5420bbf76ed9a28ca6cc5d98dd (diff)
bsc: Provide a show statistics command
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_vty.c')
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_vty.c11
1 files changed, 11 insertions, 0 deletions
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;
}