Step 1: Configure the Log File for Tracking CLI Commands
Action
To configure the log file for tracking CLI commands, follow these steps:
- In configuration mode, go to the following hierarchy level:
[edit]user@host#edit system syslog- Configure the log file:
[edit system syslog]user@host#edit filefilename[edit system syslog]user@host#edit file cli-commands
- Configure the interactive-commands facility and severity level:
[edit system syslogfilename]user@host#set interactive-commands info- Verify the configuration:
[edit system syslog]user@host#showfile cli-commands {interactive-commands info;}- Commit the configuration:
user@host#commitWhat It Means
The configuration example shows that the log file
cli-commandsis configured with theinteractive-commandsfacility at theinfoseverity level. Table 47 lists and describes the severity levels.