diff options
author | sivasankari <Sivasankari.Theerthagiri@radisys.com> | 2016-12-08 17:15:17 +0530 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-12-09 12:05:43 +0000 |
commit | 5395073fff9870e82358721126062d501ea4ad31 (patch) | |
tree | 94d7f2feabef3140eb9179b1b3b8c7d2fd06692e /src/pcu_vty_functions.cpp | |
parent | cc4214a4290a1d764d511b90beb48d55332b2bd1 (diff) |
Add statistics in the ms and tbf level.
Adds DL throughput in show ms imsi <imsi_value>.
Adds the number of coding schemes counter and rlc nacked counter at TBf level.
Change-Id: Ia95b0404989b00db0e7ba416bc40d09ef41fde1c
Diffstat (limited to 'src/pcu_vty_functions.cpp')
-rw-r--r-- | src/pcu_vty_functions.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp index ca7f7ad7..4b4b36df 100644 --- a/src/pcu_vty_functions.cpp +++ b/src/pcu_vty_functions.cpp @@ -76,6 +76,13 @@ static void tbf_print_vty_info(struct vty *vty, gprs_rlcmac_tbf *tbf) vty_out(vty, " V(A)=%d V(S)=%d nBSN=%d%s", win->v_a(), win->v_s(), win->resend_needed(), win->window_stalled() ? " STALLED" : ""); + vty_out(vty, "%s", VTY_NEWLINE); + vty_out_rate_ctr_group(vty, " ", tbf->m_ctrs); + if(GprsCodingScheme::GPRS == tbf->ms()->mode()) { + vty_out_rate_ctr_group(vty, " ", dl_tbf->m_dl_gprs_ctrs); + } else { + vty_out_rate_ctr_group(vty, " ", dl_tbf->m_dl_egprs_ctrs); + } } vty_out(vty, "%s%s", VTY_NEWLINE, VTY_NEWLINE); } @@ -176,11 +183,15 @@ static int show_ms(struct vty *vty, GprsMs *ms) ms->ul_tbf()->tfi(), ms->ul_tbf()->state_name(), VTY_NEWLINE); - if (ms->dl_tbf()) + if (ms->dl_tbf()) { vty_out(vty, " Downlink TBF: TFI=%d, state=%s%s", ms->dl_tbf()->tfi(), ms->dl_tbf()->state_name(), VTY_NEWLINE); + vty_out(vty, " Current DL Throughput: %d Kbps %s", + ms->dl_tbf()->m_bw.dl_throughput, + VTY_NEWLINE); + } llist_for_each(i_tbf, &ms->old_tbfs()) vty_out(vty, " Old %-19s TFI=%d, state=%s%s", |