diff options
author | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2007-04-29 03:53:31 +0000 |
---|---|---|
committer | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2007-04-29 03:53:31 +0000 |
commit | c749b7227b331daaac23eb271698e4f60301619f (patch) | |
tree | 8d1e3274f70e8c386dd3b5eea80302f5dc87393c | |
parent | 1ed72e0b3a643fa1be6f1efa904965798a575cd1 (diff) |
[logging] Add new "log timestamp precision" command for subsecond timestamps
2007-04-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* vtysh.c: (vtysh_log_timestamp_precision,
no_vtysh_log_timestamp_precision) Implement new log timestamp
precision commands: send to all daemons.
(vtysh_init_vty) Install new log timestamp precision commands.
-rw-r--r-- | vtysh/ChangeLog | 7 | ||||
-rw-r--r-- | vtysh/vtysh.c | 26 |
2 files changed, 33 insertions, 0 deletions
diff --git a/vtysh/ChangeLog b/vtysh/ChangeLog index b9b78f5e..4ca5df94 100644 --- a/vtysh/ChangeLog +++ b/vtysh/ChangeLog @@ -1,3 +1,10 @@ +2007-04-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu> + + * vtysh.c: (vtysh_log_timestamp_precision, + no_vtysh_log_timestamp_precision) Implement new log timestamp + precision commands: send to all daemons. + (vtysh_init_vty) Install new log timestamp precision commands. + 2006-07-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu> * vtysh_main.c: (usage) Add new -d and -E options. And note that diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 9b7d300f..2b907ca2 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -1572,6 +1572,30 @@ DEFUNSH (VTYSH_ALL, } DEFUNSH (VTYSH_ALL, + vtysh_log_timestamp_precision, + vtysh_log_timestamp_precision_cmd, + "log timestamp precision <0-6>", + "Logging control\n" + "Timestamp configuration\n" + "Set the timestamp precision\n" + "Number of subsecond digits\n") +{ + return CMD_SUCCESS; +} + +DEFUNSH (VTYSH_ALL, + no_vtysh_log_timestamp_precision, + no_vtysh_log_timestamp_precision_cmd, + "no log timestamp precision", + NO_STR + "Logging control\n" + "Timestamp configuration\n" + "Reset the timestamp precision to the default value of 0\n") +{ + return CMD_SUCCESS; +} + +DEFUNSH (VTYSH_ALL, vtysh_service_password_encrypt, vtysh_service_password_encrypt_cmd, "service password-encryption", @@ -2408,6 +2432,8 @@ vtysh_init_vty (void) install_element (CONFIG_NODE, &no_vtysh_log_facility_cmd); install_element (CONFIG_NODE, &vtysh_log_record_priority_cmd); install_element (CONFIG_NODE, &no_vtysh_log_record_priority_cmd); + install_element (CONFIG_NODE, &vtysh_log_timestamp_precision_cmd); + install_element (CONFIG_NODE, &no_vtysh_log_timestamp_precision_cmd); install_element (CONFIG_NODE, &vtysh_service_password_encrypt_cmd); install_element (CONFIG_NODE, &no_vtysh_service_password_encrypt_cmd); |