To check whether SEA feature is enabled.
|
Router# dir disk0:
23 -rw- 6710888 May 16 2009 06:03:36 +00:00 sea_log.dat
|
By default, SEA is enabled and the command is not shown under
the “show running. To check the log file location, execute the
dir
[diskname]
command from EXEC command mode.
Note
| On PRE2, the default location to store the SEA log message
is disk0:.
|
|
To check the latest SEA log messages.
|
Router# show logging system
|
To check the latest SEA log messages, execute the
show
logging
system command from EXEC mode. The SEA log
messages are stored with the actual time-stamp, slot/sub-slot number, name of
software generating the system event, and the event message.
Tip
|
The sea_log.dat file is created as soon as the first SEA log
message is stored in the file.
|
|
To check the current location to store the sea_log.dat file.
|
Router# show logging system disk
SEA log disk: disk0:
|
If you are unsure of the disk currently storing the SEA event
log messages, execute the
show
logging
system
disk command. As shown in the example, it
displays the SEA log disk currently used to store the sea_log.dat file.
|
To check the last ‘n’ number of SEA event log messages.
|
Router# show logging system last 5
|
The system administrator can also check the desired number of
last messages stored in the sea_log.dat file. Use the
show
logging
system
last
5 command to view the last 5 messages
stored in the log file.
Tip
|
The valid range to display the last number of SEA messages is
1 to 10,000.
|
|
To change the location of the sea_log.dat file to a different
disk.
|
Router(config)# logging system disk disk1:
You are configuring a different disk from the current log disk.
|
To change the location of the sea_log.dat file execute the
command
logging
system
disk
diskname from global configuration mode.
Note
| After changing the disk, the new event log information is
logged to the new location (in this example disk1:) and the log event
information before the change disk is available at the old location (in this
case disk0:).
|
|
Copying the SEA event log messages to a target file.
|
Router# copy logging system rcp
Address or name of remote host []? 192.0.2.1
Destination username [Router]? username1
Destination filename [sea_log.dat]? /auto/tftpboot-users/username1/sea_log.dat
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
The advantage of SEA feature is that you can copy and back up
SEA event log messages at specific target file locations. Use the
copy
logging
system
target
filename command to copy the sea contents to the
desired location.
Note
| Copying the SEA event log file is useful when there is less
disk space available on the disk or the disk is almost full.
|
|
To clear the SEA event log messages stored on the disk.
|
Router# clear logging system
Clear logging system operation will take a while.
Do you want to continue? [no]: yes
|
After taking a back up of SEA event log messages, you can clear
the event log details stored at the default location using the
clear
logging
system
command.
Note
| Before clearing the event log messages, it is recommended to
take a back up of the SEA event log messages to a target file system.
|
|
Configuring a different disk to store the sea_log.dat file
without the disk being present, provides an error message.
|
Router(config)# logging system disk disk1:
disk1: does not exist in the system
|
Before changing the location of the disk, check if the target
disk is present on PRE2 or PRE4. If the disk is not present then the
logging
system
disk
disk1: command, generates an error message.
Note
| SEA will not automatically search for the disk, if the
default disk is not inserted.
|
|
Configuring bootflash: as the disk to store log messages on
PRE2, provides an error message.
|
Router(config)# logging system disk bootflash:
bootflash: is not allowed
|
The supported disk to store the sea_log.dat file is either
PCMCIA ATA flash disk or Compact Flash disk in PCMCIA jacket. If bootflash: is
configured to store the log messages on PRE2 using the logging system disk
bootflash: command, it generates an error message. In the example, a linear
flash disk is configured to store the SEA log messages, hence an error message
is shown.
Note
| The SEA event log messages cannot be stored on a linear
flash disk.
|
|
Changing the level of system log event messages inclusive of
and above ‘warning’ level to be stored in the sea_log.dat file.
|
Router(config)# logging cmts sea syslog-level warning
|
By default, the system log event message to be stored in the
log file is enabled with the severity-level of system log messages being set to
‘errors’. Use the
logging
cmts
sea
syslog-level
warning command to configure the system log
event messages inclusive of and above ‘warning’ level to be stored in the
sea_log.dat file.
|