From f537298ccad65dfb64076c5a68895eb93743c432 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 27 Oct 2013 09:02:31 +0100 Subject: bts: Start creating statistics inside the BTS code --- src/pcu_vty.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/pcu_vty.c') diff --git a/src/pcu_vty.c b/src/pcu_vty.c index 66a351fd..77627fc9 100644 --- a/src/pcu_vty.c +++ b/src/pcu_vty.c @@ -274,6 +274,15 @@ DEFUN(cfg_pcu_gamma, return CMD_SUCCESS; } +DEFUN(show_bts_stats, + show_bts_stats_cmd, + "show bts statistics", + SHOW_STR "BTS related functionality\nStatistics\n") +{ + vty_out_rate_ctr_group(vty, "", bts_main_data_stats()); + return CMD_SUCCESS; +} + static const char pcu_copyright[] = "Copyright (C) 2012 by Ivan Kluchnikov and \r\n" " Andreas Eversberg \r\n" @@ -311,5 +320,7 @@ int pcu_vty_init(const struct log_info *cat) install_element(PCU_NODE, &cfg_pcu_gamma_cmd); install_element(PCU_NODE, &ournode_end_cmd); + install_element_ve(&show_bts_stats_cmd); + return 0; } -- cgit v1.2.3