Logging CLI Commands
Logging CLI Commands
Showing Log Files
Showing Log Activity
Cisco Content Services Switch Administration Guide
4-18
When you want to keep track of all CLI commands entered from the CSS, you can
log them to the sys.log file. To log the CLI commands:
Set the logging level of the netman subsystem to info-6. Enter:
1.
(config)# logging subsystem netman info-6
Enable logging of commands through the logging commands enable
2.
command. This command logs each CLI command to the sys.log file. Enter:
(config)# logging commands enable
To disable logging CLI commands to the sys.log file, enter:
(config)# no logging commands
Use the show log command to display the contents in a log or trap log file, a list
of all log files, or the state of logging for CSS facilities. You can use the show log
command in all modes, including User mode.
When you use the show log command to send the log activity to your current
session, and you want to stop sending log activity, press any key on the terminal
or workstation. The show log command performs the same function as the
logging line command. You cannot run these commands at the same time.
This section includes the following topics:
Showing Log Activity
•
Showing Log Lists
•
Showing the Log State
•
Use the show log command and its options to send the log activity to your current
session or to display the contents in a log or trap log file. You can use the show
log command in all modes, including User mode.
Chapter 4
Using the CSS Logging Features
OL-5647-02