aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_vty.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-27 09:02:31 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:12 +0100
commitf537298ccad65dfb64076c5a68895eb93743c432 (patch)
treef3d9e5da32c0239c13fff3a90eca5d6902d7a723 /src/pcu_vty.c
parent61a0a04d2651211715dc5e379021da334606c229 (diff)
bts: Start creating statistics inside the BTS code
Diffstat (limited to 'src/pcu_vty.c')
-rw-r--r--src/pcu_vty.c11
1 files changed, 11 insertions, 0 deletions
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 <kluchnikovi@gmail.com> and \r\n"
" Andreas Eversberg <jolly@eversberg.eu>\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;
}