Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Check the Commands That Users Are Entering

 

Purpose

A common set of operations you can check is when users log in to the router and the CLI commands they issue.

To check the commands that users are entering, follow these steps:



Configure the Log File for Tracking CLI Commands

Action

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:

Meaning

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

Description

info

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

notice

Log the configuration mode commands rollback and commit.

warning

Log when any software process restarts.



Display the Configured Log File

Purpose

To display the log file in configuration mode, enter the following command:

Action

For example:

Sample Output

Meaning

The sample output shows the CLI commands that were entered since the log file was configured.