You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
I have searched the open issues for this bug.
I have not included sensitive information in this report.
The text was updated successfully, but these errors were encountered:
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.
We are a bit confused what "once it is turned on" means.
When we remove the log commands line from the /etc/frr/frr.conf file and restart frr we still can't disable the logging.
At which point can we disable it "from the very start"?
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: