Syslog Message Destinations - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

Syslog Message Destinations

Mon Dec
#
# 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
[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 :
Dec
Message from syslogd@[12.24.50.70.2.2] at Mon Dec
[12.24.50.70.2.2] 663232: last message repeated 110 times
Dec
Message from syslogd@[12.24.50.70.2.2] at Mon Dec
[12.24.50.70.2.2] 663233: last message repeated 348 times
Dec
Message from syslogd@[12.24.50.70.2.2] at Mon Dec
[12.24.50.70.2.2] 663234: last message repeated 1797 times
Dec
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
Command
logging buffered
logging {hostname | ip-address}
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
3 12:30:39.798 UTC
3 05:01:59 [12.24.50.70.2.2] 663231: last message repeated 2 times
3 05:02:30 [12.24.50.70.2.2] 663232: last message repeated 110 times
3 05:04:31 [12.24.50.70.2.2] 663233: last message repeated 348 times
3 05:14:32 [12.24.50.70.2.2] 663234: last message repeated 1797 times
3 05:01:59 2012 ...
LOGGING SUPRESS DUPLICATE TESTING
3 05:02:30 2012 ...
3 05:04:31 2012 ...
3 05:14:32 2012 ...
Description
Specifies the logging buffer as a destination for syslog
messages.
Specifies a syslog server host as a destination for
syslog messages. IPv4 and IPv6 are supported.
Specifies terminal lines other than the console as
destinations for syslog messages.
Implementing Logging Services

Advertisement

Table of Contents
loading

Table of Contents