aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-22 16:43:14 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-22 16:43:14 +0100
commit0b316224829d172a76c1f6145568f8470b0a7dd6 (patch)
tree9323cd6a7ce41cea50730528c85dca0a7c63cbef
parenta310e532438196778b554132d69e78da933aaa81 (diff)
vty: Print the MSC status on the VTY for relay/cellmgr
-rw-r--r--src/vty_interface.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/vty_interface.c b/src/vty_interface.c
index f5eb0f1..c529e1c 100644
--- a/src/vty_interface.c
+++ b/src/vty_interface.c
@@ -333,6 +333,17 @@ DEFUN(show_linksets, show_linksets_cmd,
return CMD_SUCCESS;
}
+DEFUN(show_msc, show_msc_cmd,
+ "show msc",
+ SHOW_STR "Display the status of the MSC\n")
+{
+ vty_out(vty, "MSC link is %s and had %s.%s",
+ bsc.msc_link_down == 0 ? "down" : "up",
+ bsc.first_contact == 1 ? "no contact" : "contact",
+ VTY_NEWLINE);
+ return CMD_SUCCESS;
+}
+
void cell_vty_init(void)
{
cmd_init(1);
@@ -366,6 +377,10 @@ void cell_vty_init(void)
/* show commands */
install_element_ve(&show_stats_cmd);
install_element_ve(&show_linksets_cmd);
+
+ if (bsc.app != APP_STP) {
+ install_element_ve(&show_msc_cmd);
+ }
}
const char *openbsc_copyright = "";