-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"no log commands" not accepted #18219
Comments
There was a decision made to not allow command logging to be turned off once it is turned on. This was to allow operators to prevent anyone from disabling logging to do something untracked. |
@donaldsharp Thank you for the quick response. Thanks |
@donaldsharp bump |
Do you have log commands enabled from the cli in /etc/frr/daemons? with |
daemons: Restarting the frr service still logs our commands. |
Description
Issue Summary:
When configuring FRR with no log commands in the running configuration, command history is still being recorded in /root/.history_frr. However, when executing show running-config, the log commands directive is not present, indicating that the configuration should be applied.
Version
How to reproduce
vtysh -> config -> "no log commands" -> exit -> write memory -> exit -> restart frr service -> commands still get logged into .history_frr
Expected behavior
Setting no log commands in FRR should prevent commands executed in vtysh from being logged in /root/.history_frr.
Actual behavior
Despite setting no log commands, commands entered in vtysh continue to be logged in /root/.history_frr. The only reliable workaround so far is to explicitly set: Environment="VTYSH_HISTFILE=/dev/null" in the FRR systemd unit file.
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: