Cisco Catalyst 2000 Configuration Handbook page 217

Catalyst series lan switching
Table of Contents

Advertisement

196 Cisco LAN Switching Configuration Handbook
d. (Optional; IOS only) Use a specific source address for syslog messages:
e. (Optional) Limit the messages logged to the SNMP history table:
(Optional) Log messages to the switch buffer:
3.
(global) logging buffered [size]
All system messages are saved in a section of switch memory. The message buffer
remains intact until the switch is powered off or the buffer is cleared with the clear
logging command. The maximum buffer size can be given as size; Supervisor IOS:
4096 to 2,147,483,647 bytes, default 4096 bytes.
Caution The buffer size varies between Catalyst switch platforms. By logging to a buffer
on a Supervisor IOS switch, you can use system resources that can also be needed for the
operational aspects of the switch. Be prudent when setting the maximum buffer size so
that you don't waste system memory.
(Optional; IOS only) Log messages to a file on the switch:
4.
(global) logging file [flash:]filename [max-file-size] [min-file-size] level
System messages are stored to a file named filename (text string) located on the sys-
tem flash: device. The file can be constrained to a maximum size max-file-size
(4096 to 2,147,483,647 bytes, default 4096) and a minimum size min-file-size (1024
to 2,147,483,647 bytes, default 2048). Messages with a severity level less than or
equal to level (0 to 7 or a name from Table 12-1, default 7 or debugging) are append-
ed to the file.
The Supervisor IOS also enables you to enter the level as a name. Most physical
state transitions (ports and modules up or down) are logged at level 5, whereas
hardware or software malfunctions are reported at level 3.
(global) logging source-interface type number
An IOS switch can use the IP address of a specific interface as the source address
in syslog packets. This can be useful if there are many interfaces, but you want to
see all syslog messages from a switch appear as a single switch address.
(global) logging history level
(global) logging history size number
Messages sent as traps to an SNMP management station can be lost. Therefore,
messages that are less than or equal to the specified severity level can also be
saved to a history table for future review. The level is a number (0 to 7) defined
in Table 12-1. By default, only one message is kept in the history table. You can
change this by specifying the size keyword with the number of message entries
(1 to 500).

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents