![Cisco ASR 9000 Serie Скачать руководство пользователя страница 304](http://html.mh-extra.com/html/cisco/asr-9000-serie/asr-9000-serie_configuration-manuals_66679304.webp)
Mon Dec
3 12:30:39.798 UTC
#
# while true
> do
> logger -s alert -c 1 "LOGGING SUPRESS DUPLICATE TESTING "
> done
RP/0/RSP0/CPU0:router#
RP/0/RSP0/CPU0:router#
//*********************************************** MSGS ON REMOTE
SERVER*************************************************************
Message from syslogd@[12.24.50.70.2.2] at Mon Dec
3 05:01:59 2012 ...
[12.24.50.70.2.2] 663231: last message repeated 2 times
Dec
3 05:01:58 [12.24.50.70.2.2] 663230: RP/0/RP1/CPU0:Dec
3 12:52:09.773 : logger[65786]:
%OS-SYSLOG-1-LOG_ALERT_OWNER_PLANE :
LOGGING SUPRESS DUPLICATE TESTING
Dec
3 05:01:59 [12.24.50.70.2.2] 663231: last message repeated 2 times
Message from syslogd@[12.24.50.70.2.2] at Mon Dec
3 05:02:30 2012 ...
[12.24.50.70.2.2] 663232: last message repeated 110 times
Dec
3 05:02:30 [12.24.50.70.2.2] 663232: last message repeated 110 times
Message from syslogd@[12.24.50.70.2.2] at Mon Dec
3 05:04:31 2012 ...
[12.24.50.70.2.2] 663233: last message repeated 348 times
Dec
3 05:04:31 [12.24.50.70.2.2] 663233: last message repeated 348 times
Message from syslogd@[12.24.50.70.2.2] at Mon Dec
3 05:14:32 2012 ...
[12.24.50.70.2.2] 663234: last message repeated 1797 times
Dec
3 05:14:32 [12.24.50.70.2.2] 663234: last message repeated 1797 times
Syslog Message Destinations
Syslog message logging to the console terminal is enabled by default. To disable logging to the console
terminal, use the
logging console disable
command in global configuration mode. To reenable logging to the
console terminal, use the
logging console
command in global configuration mode.
Syslog messages can be sent to destinations other than the console, such as the logging buffer, syslog servers,
and terminal lines other than the console (such as vtys).
This table lists the commands used to specify syslog destinations.
Table 27: Commands Used to Set Syslog Destinations
Description
Command
Specifies the logging buffer as a destination for syslog
messages.
logging buffered
Specifies a syslog server host as a destination for
syslog messages. IPv4 and IPv6 are supported.
logging
{
hostname
|
ip-address
}
Specifies terminal lines other than the console as
destinations for syslog messages.
logging monitor
The
logging buffered
command copies logging messages to the logging buffer. The buffer is circular, so
newer messages overwrite older messages after the buffer is full. To display the syslog messages that are
logged in the logging buffer, use the
show logging
command. The first message displayed is the oldest message
in the buffer. To clear the current contents of the logging buffer, use the
clear logging
command. To disable
logging to the logging buffer, use the
no logging buffered
command in global configuration mode.
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
288
Implementing Logging Services
Syslog Message Destinations