- Preface
- Configuration Management
- Administering the Cisco ME 1200 NID
- Configuring Notifications
- Zero Touch Provisioning
- Configuring Synchronous Ethernet
- Configuring Ethernet Virtual Connections
- Configuring Switch Ports
- Configuring Spanning-Tree Protocol
- Configuring Link Aggregation Control Protocol (LACP)
- Provisioning Link Layer Discovery Protocol
- Configuring SNMP
- Configuring PTP
- Configuring ACLs
- Configuring Quality of Service (QoS)
- Configuring Ethernet OAM, Link OAM, and CFM
- Configuring Performance Monitoring
- Configuring EPS
- Configuring ERPS
- Configuring L2CP
- Configuring MAC Security
- Configuring NTP
- Configuring Storm Control
- Configuring Syslog
- Configuring Dedicated Debug Shell
- Configuring SPAN
- Configuring RSPAN
- Configuring RFC 2544
- Configuring sFlow
- Configuring UDLD
- Configuring Flex Links
- Configuring Y.1564
- Configuring LST
- Configuring Security Access Control Lists
- Multicast Vlan Register
- Double-tagged management VLAN using IVID parameter
- Configuring LAG Aggregation
Configuring Syslog
This document describes the Syslog feature and configuration steps to implement Syslog.
- Prerequisites for Configuring Syslog
- Information About Syslog
- Enabling Syslog
- Clearing Syslog
- Verifying Syslog
Prerequisites for Configuring Syslog
Information About Syslog
Syslog is a method to collect messages from devices to a server running a syslog daemon. A syslog service simply accepts messages, and stores them in files or prints them according to a simple configuration file. This form of logging is the best available for Cisco devices because it can provide protected long-term storage for logs. This is useful both in routine troubleshooting and in incident handling.
Enabling Syslog
Configuration Example
The example shows how to enable syslog:
Switch(config-controller-sysLog)# setSyslogProperties sysLogConf valid enable Switch(config-controller-sysLog)# setSyslogProperties sysLogConf level info Switch(config-controller-sysLog)# setSyslogProperties sysLogConf logServer valid enable Switch(config-controller-sysLog)# setSyslogProperties sysLogConf logServer host ipv4address 10.78.101.221 Switch(config-controller-sysLog)# setSyslogProperties review Switch(config-controller-sysLog)# setSyslogProperties commit Switch(config-controller-sysLog)# exit
Clearing Syslog
Configuration Example
The example shows how to clear syslog:
Switch(config-controller-sysLog)# clearSysLog clearLogLevelConf info Switch(config-controller-sysLog)# clearSysLog review Switch(config-controller-sysLog)# clearSysLog commit Switch(config-controller-sysLog)# clearSysLog clearLogLevelConf error Switch(config-controller-sysLog)# clearSysLog review Switch(config-controller-sysLog)# clearSysLog commit Switch(config-controller-sysLog)# clearSysLog clearLogLevelConf warning Switch(config-controller-sysLog)# clearSysLog review Switch(config-controller-sysLog)# clearSysLog commit Switch(config-controller-sysLog)# exit
Verifying Syslog
Use the following command to verify the syslog status on the controller.
-
showLogLevelConf
This command displays the syslog configuration status on the NID. The following is a sample output from the command:
Switch(config-controller-sysLog)# showSysLog showLogLevelConf Switch(config-controller-sysLog)# showSysLog review
Commands in queue: showSysLog showLogLevelConf
Switch(config-controller-sysLog)# showSysLog commitClearing Socket 0 Clearing Socket 0 ShowSysLog_Output.showLogLevelResponse.hostMode = true ShowSysLog_Output.showLogLevelResponse.hostAddress = '10.78.101.221' ShowSysLog_Output.showLogLevelResponse.logLevel = 'info' ShowSysLog_Output.showLogLevelResponse.noOfLogEntries.InfoCounter = 40 ShowSysLog_Output.showLogLevelResponse.noOfLogEntries.warningCounter = 0 ShowSysLog_Output.showLogLevelResponse.noOfLogEntries.errorCounter = 0 ShowSysLog Commit Success!!!
Feedback