diff options
Diffstat (limited to 'doc/manpages')
| -rw-r--r-- | doc/manpages/vtysh.rst | 8 |
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 |
