From 87f6dc504d5d227ea66a4da37b350c2fc3df212b Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 18 Aug 2017 12:50:13 -0400 Subject: *: Add 'show debugging' command from vtysh Allow vtysh to query every daemon about its debugging status in one go. Signed-off-by: Donald Sharp --- pimd/pim_cmd.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'pimd/pim_cmd.c') diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 3bffaf855..9c79fd87e 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -7254,14 +7254,17 @@ DEFUN (no_debug_msdp_packets, ALIAS(no_debug_msdp_packets, undebug_msdp_packets_cmd, "undebug msdp packets", UNDEBUG_STR DEBUG_MSDP_STR DEBUG_MSDP_PACKETS_STR) -DEFUN (show_debugging_pim, - show_debugging_pim_cmd, - "show debugging pim", - SHOW_STR - DEBUG_STR - PIM_STR) +DEFUN_NOSH (show_debugging_pim, + show_debugging_pim_cmd, + "show debugging [pim]", + SHOW_STR + DEBUG_STR + PIM_STR) { + vty_out(vty, "PIM debugging status\n"); + pim_debug_config_write(vty); + return CMD_SUCCESS; } -- cgit v1.2.3