mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 13:18:52 +00:00
[vtysh] Add 'show logging' command
2006-05-17 Paul Jakma <paul.jakma@sun.com> * vtysh.c: (general) Add 'show logging' command.
This commit is contained in:
parent
9c37851eac
commit
dbf7d13d06
@ -1,3 +1,7 @@
|
|||||||
|
2006-05-17 Paul Jakma <paul.jakma@sun.com>
|
||||||
|
|
||||||
|
* vtysh.c: (general) Add 'show logging' command.
|
||||||
|
|
||||||
2006-01-11 Erik Smit <zoiah@zoiah.net>
|
2006-01-11 Erik Smit <zoiah@zoiah.net>
|
||||||
|
|
||||||
* vtysh.c: (vtysh_config_from_file) fix regression from
|
* vtysh.c: (vtysh_config_from_file) fix regression from
|
||||||
|
@ -1312,6 +1312,26 @@ ALIAS (vtysh_exit_interface,
|
|||||||
"Exit current mode and down to previous mode\n")
|
"Exit current mode and down to previous mode\n")
|
||||||
|
|
||||||
/* Logging commands. */
|
/* Logging commands. */
|
||||||
|
DEFUN (vtysh_show_logging,
|
||||||
|
vtysh_show_logging_cmd,
|
||||||
|
"show logging",
|
||||||
|
SHOW_STR
|
||||||
|
"Show current logging configuration\n")
|
||||||
|
{
|
||||||
|
unsigned int i;
|
||||||
|
int ret = CMD_SUCCESS;
|
||||||
|
char line[] = "show logging\n";
|
||||||
|
|
||||||
|
for (i = 0; i < VTYSH_INDEX_MAX; i++)
|
||||||
|
{
|
||||||
|
fprintf (stdout,"Logging configuration for %s:\n", vtysh_client[i].name);
|
||||||
|
ret = vtysh_client_execute (&vtysh_client[i], line, stdout);
|
||||||
|
fprintf (stdout,"\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
DEFUNSH (VTYSH_ALL,
|
DEFUNSH (VTYSH_ALL,
|
||||||
vtysh_log_stdout,
|
vtysh_log_stdout,
|
||||||
vtysh_log_stdout_cmd,
|
vtysh_log_stdout_cmd,
|
||||||
@ -2327,6 +2347,9 @@ vtysh_init_vty (void)
|
|||||||
install_element (ENABLE_NODE, &vtysh_start_bash_cmd);
|
install_element (ENABLE_NODE, &vtysh_start_bash_cmd);
|
||||||
install_element (ENABLE_NODE, &vtysh_start_zsh_cmd);
|
install_element (ENABLE_NODE, &vtysh_start_zsh_cmd);
|
||||||
|
|
||||||
|
/* Logging */
|
||||||
|
install_element (ENABLE_NODE, &vtysh_show_logging_cmd);
|
||||||
|
install_element (VIEW_NODE, &vtysh_show_logging_cmd);
|
||||||
install_element (CONFIG_NODE, &vtysh_log_stdout_cmd);
|
install_element (CONFIG_NODE, &vtysh_log_stdout_cmd);
|
||||||
install_element (CONFIG_NODE, &vtysh_log_stdout_level_cmd);
|
install_element (CONFIG_NODE, &vtysh_log_stdout_level_cmd);
|
||||||
install_element (CONFIG_NODE, &no_vtysh_log_stdout_cmd);
|
install_element (CONFIG_NODE, &no_vtysh_log_stdout_cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user