summaryrefslogtreecommitdiff
path: root/doc/manpages
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2021-04-14 09:59:09 -0400
committerGitHub <noreply@github.com>2021-04-14 09:59:09 -0400
commit1ff339ac05e94d3db4f13cce439152e403728478 (patch)
tree5186e95bea1eab3ec0c03ad93c3e55c7757b7f27 /doc/manpages
parent8a2ec9102f82c8f6f2bddec4a244ec9666d4624f (diff)
parentb993aae0d04d8a9480e8252510aad2f196e96469 (diff)
Merge pull request #8450 from ton31337/feature/frr_history_turn_on_off
vtysh: Set history file on demand
Diffstat (limited to 'doc/manpages')
-rw-r--r--doc/manpages/vtysh.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/manpages/vtysh.rst b/doc/manpages/vtysh.rst
index 3e496956c2..b930cb915d 100644
--- a/doc/manpages/vtysh.rst
+++ b/doc/manpages/vtysh.rst
@@ -53,6 +53,10 @@ OPTIONS available for the vtysh command:
When executing cli that does not invoke a vtysh shell, if an error ocurrs ignore it for purposes of return codes from vtysh.
+.. option:: -H, --histfile
+
+ Override the history file for vtysh commands. You can set ``vtysh -H /dev/null`` to turn logging of at all.
+
.. option:: -u, --user
Restrict access to configuration commands by preventing use of the "enable" command. This option provides the same limited "security" as password-protected telnet access. *This security should not be relied on in production environments.*
@@ -68,6 +72,10 @@ ENVIRONMENT VARIABLES
VTYSH_PAGER
This should be the name of the pager to use. Default is more.
+VTYSH_HISTFILE
+ Override the history file for vtysh commands. Logging can be turned off using ``VTYSH_HISTFILE=/dev/null vtysh``.
+ Environment is prefered way to override the history file path over command line argument (-H/--histfile).
+
FILES
=====
|INSTALL_PREFIX_SBIN|/vtysh