[Contents] [Prev] [Next] [Index] [Report an Error]


Step 1: 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. [edit]
    
    user@host# edit system syslog 
    
    
    
  3. Configure the log file:
  4. [edit system syslog]
    
    user@host# edit file filename
    
    
    

For example:

[edit system syslog]
user@host# edit file cli-commands

  1. Configure the interactive-commands facility and severity level:
  2. [edit system syslog filename]
    
    user@host# set interactive-commands info 
    
    
    
  3. Verify the configuration:
  4. [edit system syslog]
    
    user@host# show 
    
    file cli-commands {
    
        interactive-commands info;
    
    }
    
    
    
  5. Commit the configuration:
  6. user@host# commit
    

What It Means

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


Table 47: 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.



[Contents] [Prev] [Next] [Index] [Report an Error]