[MERGED] osmo-pcu[master]: vty: print class and TBFs for each MS

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Dec 10 14:21:28 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: vty: print class and TBFs for each MS
......................................................................


vty: print class and TBFs for each MS

It's handy for troubleshooting to get quick overview of per-MS TBF
allocations and MS [EGPRS] classes.

Change-Id: Ie79c20f86da6db4565654b0f5856f4fddd83ef96
---
M src/pcu_vty_functions.cpp
1 file changed, 6 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index 811801f..f1dd25c 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -119,12 +119,16 @@
 	llist_for_each(ms_iter, &bts->ms_store().ms_list()) {
 		GprsMs *ms = ms_iter->entry();
 
-		vty_out(vty, "MS TLLI=%08x, TA=%d, CS-UL=%s, CS-DL=%s, LLC=%zd, "
-			"IMSI=%s%s",
+		vty_out(vty, "MS TLLI=%08x, TA=%d, CS-UL=%s, CS-DL=%s, LLC=%zd, Cl=%d, E-Cl=%d,"
+			" TBF-UL=%s, TBF-DL=%s, IMSI=%s%s",
 			ms->tlli(),
 			ms->ta(), ms->current_cs_ul().name(),
 			ms->current_cs_dl().name(),
 			ms->llc_queue()->size(),
+			ms->ms_class(),
+			ms->egprs_ms_class(),
+			ms->ul_tbf() ? ms->ul_tbf()->state_name() : "NA",
+			ms->dl_tbf() ? ms->dl_tbf()->state_name() : "NA",
 			ms->imsi(),
 			VTY_NEWLINE);
 	}

-- 
To view, visit https://gerrit.osmocom.org/5206
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie79c20f86da6db4565654b0f5856f4fddd83ef96
Gerrit-PatchSet: 1
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list