Enabling And Disabling The Logging Time Stamp; Setting The Logging Buffer Size; Limiting The Number Of Syslog Messages - Cisco WS-C2948G-GE-TX Configuration Manual

Catalyst 4500 series switch
Table of Contents

Advertisement

Configuring System Message Logging on the Switch
This example shows how to set the logging severity level to 5 for all facilities (for the current session
only):
Console> (enable) set logging level all 5
All system logging facilities for this session set to severity 5(notifications)
Console> (enable)
This example shows how to set the default logging severity level to 3 for the cdp facility:
Console> (enable) set logging level cdp 3 default
System logging facility <cdp> set to severity 3(errors)
Console> (enable)

Enabling and Disabling the Logging Time Stamp

To enable or disable the logging time stamp, perform this task in privileged mode:
Task
Step 1
Enable or disable the logging time stamp.
Step 2
Verify the logging time-stamp state.
This example shows how to enable the time-stamp display on system logging messages:
Console> (enable) set logging timestamp enable
System logging messages timestamp will be enabled.
Console> (enable)

Setting the Logging Buffer Size

To set the number of messages to log to the logging buffer, perform this task in privileged mode:
Task
Step 1
Set the number of messages to log to the logging
buffer.
Step 2
Verify the system message logging configuration. show logging [noalias]
This example shows how to set the logging buffer size to 200 messages:
Console> (enable) set logging buffer 200
System logging buffer size set to <200>
Console> (enable)

Limiting the Number of syslog Messages

You can limit the number of syslog messages that are sent to the history table and the SNMP network
management station based on severity. The default severity is set to warnings(4).
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
37-6
Chapter 37
Configuring System Message Logging
Command
set logging timestamp {enable | disable}
show logging [noalias]
Command
set logging buffer buffer_size
78-15908-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents