From 59b90bc44401dc0e4c5004b0fec677106bce8871 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Tue, 3 Nov 2015 16:21:40 +0100 Subject: stats/vty: Add selective show stats command Currently there is only the 'show stats' command which shows all counter and stat_item values. This can lead to many lines of output if there are per-subscriber rate counters. The new command added by this commit allows it to only show groups of a certain level (class_id), similar to the 'level' configuration command for stats reporter. The new command is show stats level (global|peer|subscriber) Sponsored-by: On-Waves ehf --- include/osmocom/vty/misc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom/vty') diff --git a/include/osmocom/vty/misc.h b/include/osmocom/vty/misc.h index f3b46dbd..97ad4a52 100644 --- a/include/osmocom/vty/misc.h +++ b/include/osmocom/vty/misc.h @@ -17,6 +17,8 @@ void vty_out_stat_item_group(struct vty *vty, const char *prefix, struct osmo_stat_item_group *statg); void vty_out_statistics_full(struct vty *vty, const char *prefix); +void vty_out_statistics_partial(struct vty *vty, const char *prefix, + int max_level); int osmo_vty_write_config_file(const char *filename); int osmo_vty_save_config_file(void); -- cgit v1.2.3