Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Configure the Log File for Tracking CLI Commands



To configure the log file for tracking CLI commands, follow these steps:

  1. In configuration mode, go to the following hierarchy level:

  2. Configure the log file:

    For example:

  3. Configure the interactive-commands facility and severity level:

  4. Verify the configuration:

  5. Commit the configuration:


The configuration example shows that the log file cli-commands is configured with the interactive-commands facility at the info severity level. Table 1 lists and describes the severity levels.

Table 1: Severity Levels

Severity Level



Log all top-level CLI commands, including the configure command, and all configuration mode commands.


Log the configuration mode commands rollback and commit.


Log when any software process restarts.