BSC VTY: Print some more of the already-generated statistics

This commit is contained in:
Harald Welte 2010-12-24 15:48:09 +01:00
parent eafe22ca72
commit 75e2defc7f
1 changed files with 7 additions and 0 deletions

View File

@ -563,6 +563,9 @@ DEFUN(show_stats,
struct gsm_network *net = gsmnet_from_vty(vty);
openbsc_vty_print_statistics(vty, net);
vty_out(vty, "Channel Requests : %lu total, %lu no channel%s",
counter_get(net->stats.chreq.total),
counter_get(net->stats.chreq.no_channel), VTY_NEWLINE);
vty_out(vty, "Location Update : %lu attach, %lu normal, %lu periodic%s",
counter_get(net->stats.loc_upd_type.attach),
counter_get(net->stats.loc_upd_type.normal),
@ -586,6 +589,10 @@ DEFUN(show_stats,
counter_get(net->stats.sms.delivered),
counter_get(net->stats.sms.rp_err_mem),
counter_get(net->stats.sms.rp_err_other), VTY_NEWLINE);
vty_out(vty, "Calls : %lu dialled, %lu alerted, %lu connected%s",
counter_get(net->stats.call.dialled),
counter_get(net->stats.call.alerted),
counter_get(net->stats.call.connected), VTY_NEWLINE);
return CMD_SUCCESS;
}