Cisco 11503 Administration Guide - Page 138
Logging CLI Commands, Showing Log Files, Showing Log Activity
UPC - 746320664958
View all Cisco 11503 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 138 highlights
Logging CLI Commands Chapter 4 Using the CSS Logging Features Logging CLI Commands 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: 1. Set the logging level of the netman subsystem to info-6. Enter: (config)# logging subsystem netman info-6 2. Enable logging of commands through the logging commands enable 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 Showing Log Files 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 Showing Log Activity 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. 4-18 Cisco Content Services Switch Administration Guide OL-5647-02